I’m having an issue with Puma, it fails when it tries to restart itself. When this happens it kills all the Puma processes, resulting in nginx delivering a 502 Bad Gateway to our users. I’m able to start, stop & restart it with my /etc/init.d/puma script (it runs /usr/local/bin/run-puma), it just has issues when it restarts itself. The puma.log file doesn’t show anything just useful for troubleshooting, just
Puma starting in single mode…
-
Version 2.5.1, codename: Astronaut Shoelaces
-
Min threads: 16, max threads: 32
-
Environment: production
-
Listening on unix:///home/deploy/app/shared/sockets/puma.sock
and my workers. Any help would be greatly appreciated.
Also - i have whats probably a pretty dumb question. Is there a way for me to allocate more resources to Puma so it doesn’t need to restart itself so frequently? I’m currently only using around 25% of the server’s memory.
Thanks for the help