A large number of queries often appear 502 bad Gateway, how to handle
Source: Internet
Author: User
A large number of queries often appear 502 bad Gateway
Millions of data were checked directly Nginx 502 bad gateway. Another server is good. I cannot log on to the server to view the configuration. Ask you to get nginx+php comrades. What are the settings of your server? I sent it to the hardware department.
------Solution--------------------
502 is usually the php-fpm of the meal. This may be due to an excessive number of FPM connections or a longer program execution time.
However, you have a sentence to
check the millions of data directly Nginx 502 Bad gateway. lightly, no one can do the remedy.
------Solution--------------------
Insufficient memory, a high number of connections, and a full CPU to handle new connections in a timely manner can cause this 502
That's exactly what you're saying.
------Solution--------------------
Your technical department is too food! Check millions of data at a time.
------Solution--------------------
I this refresh time also appeared 502, also nginx+php,, configuration of the time Nginx inside also has set: Access time (below) and so on several parameters to set the time of these several parameters longer, another may be you in Nginx build time resources may not be enough, hope you have help!
I just happen to have this happen occasionally, let ops restart the service.
Fastcgi_buffer_size 128k;
Fastcgi_buffers 8 128k;
Fastcgi_busy_buffers_size 128k;
Fastcgi_temp_file_write_size 128k;
------Solution--------------------
PHP slow, nginx request half a day not to respond, nature will time out. See if there is a timeout configuration, about fastcgi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.