I have issues on my applications that cause the following error:
php_network_getaddresses: getaddrinfo failed: Try again
Basically, I'm getting this error when I try to connect on Rabbit, Redis and Mysql servers. The interesting point is that these errors start to happen when I start my wrk command to test the application performance.
If I try to make singles requests, I'm not getting any error. This shows that I don't have a DNS resolution error on my environment. When I start to get around 100 requests per second, the error starts to happen.
Making testing trying to figure out what is happening, I change from DNS to direct IP of the Rabbit, Redis, and MySQL and I'm not getting the error.
Another interesting point is that I have python applications running using the same environment and using the same DNS for the services and these applications don't get any error.
All application I'm getting error is under Kubernetes engine from Google Cloud.
And Im using (basically):
Also, I'm using the PHP:7.3-fpm-alpine docker image.