andrews46
Flask + Gunicorn app repeatedly getting killed and restarting
Service ID: f9e8d800-7f5f-4cdf-a508-830ce6caf939
We have a Flask app deployed using the Gunicorn server; our start command in our Profile is:
web: gunicorn -w 1 --threads 300 server:app
We recently did a new deploy and started observing our worker getting repeatedly killed and restarted. Here is the error trace that keeps occurring after each restart:
At first we thought this was due to our code changes, but we have since rolled back to a previous deploy that was working fine before, and we are still observing the same restart issue. Our metrics show that memory usage has remained roughly the same, but CPU usage has spiked for some reason, even though traffic to our server has not significantly increased.30 replies