title: Connect failed: php_network_getaddresses: getaddrinfo failed: System error
body: <blockquote>
    <p>Connect failed: php_network_getaddresses: getaddrinfo failed: System
    error</p>
  </blockquote>
  
  <p>The <code>"System error"</code> part really throws me off.</p>
  
  <p>I've been battling this error for a few months, it is very sporadic. It appears to be coming from my database connector.</p>
  
  <p>Restarting <code>php-fpm</code> seems to alleviate the issue for ~24 hours until it starts acting up again. I had thought it was maybe hitting max children with <code>php-fpm</code>, but after checking <code>php-fpm</code> status, it is not.</p>
  
  <p>I've tried to correlate the error with the <code>syslog</code> and <code>nginx</code> error log for the application, I'm running out of ideas. Any ideas on how to troubleshoot this issue?</p>