Answer the question
In order to leave comments, you need to log in
How to avoid 502 Bad Gateway error?
Deployed server with NGINX -> uWSGI -> Django stack on OC Debian. When the number of requests increases to 150 requests per second, a 502 Bad Gateway error occurs. There is no load on the iron. Tried various configurations of uWSGI workers and tweaking the Linux networking stack, but all to no avail.
Answer the question
In order to leave comments, you need to log in
It looks like your backend is responding too slowly. Either optimize or increase the number of workers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question