R
R
Roman Kulshin2020-10-25 12:46:19
Django
Roman Kulshin, 2020-10-25 12:46:19

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

1 answer(s)
S
Sergey Gornostaev, 2020-10-25
@Gramor

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 question

Ask a Question

731 491 924 answers to any question