I have an Elastic Beanstalk instance running Ruby on Rails using Puma with Ruby 2.6 running on 64bit Amazon Linux/2.11.7, the instance is scaled to a c5.2xlarge and a database of db.m5.large.

The instance is unable to handle more than 500 concurrent GET requests against the home page without returning a 502 gateway status. There are no operations being carried out and the CPU utilisation usually remains around 30%.

I will typically get the following error from the NGINX logs:

connect() to unix:///var/run/puma/my_app.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xx.xx.xx.x, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:///var/run/puma/my_app.sock:/", host: "domain.com"

Please note: I have hidden my domain and IP for privacy reasons.

I have tried a number of solutions as well as contacted amazon support with no avail to the problem.

Any help would be greatly appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.