504 Gateway Time-out

Source: Internet
Author: User
Project development almost, when deployed to the build environment, one of the features of a synchronized fan reported a mistake.

There are no problems with just a few dozens of fans, but when testing a fan with 5000 of the public number, the following error occurs.


Well, it's been a long time, so modify the server configuration

Proxy_connect_timeout 1800;
Proxy_send_timeout 1800;
Proxy_read_timeout 1800;

Decisively change the time configuration to half an hour, but the problem still exists, the internet looked under, it is possible that the process cache is too small, modify and then cache size.

The default fastcgi process response buffer is 8K, we can set a larger, in nginx.conf, add: Fastcgi_buffers 8 128k, which means setting the fastcgi buffer to 8 128k size space.

This changes a part of the public number, but what about the public number for more fans? You can't always modify the server configuration.

and follow the next blog, the use of anonymous threads

The above describes the 504 Gateway time-out, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.