Pressure test 502 Log error upstream timed out (110:connection timed out)

Source: Internet
Author: User

Environment Introduction
Server: centos6.5
Service: Nginx Proxy

Problem Description:

The development environment project of the pressure measurement development colleague It's okay, but the line machine hit%50, a lot of 502

Some PHP pages do not open, the page prompts the gateway timeout, and then find the log prompt as follows

2015/09/19 14:00:30 [ERROR] 1811#0: *319 upstream timed out (110:connection timed off) While reading response headers from Upstream, client:,, request: "get/invrenjie/image_new/myfiona/120913/my-1263/ Mins021_950.jpg http/1.1 ", Upstream:" Http://server:80/invrenjie/image_new/myfiona/120913/MY-1263/mins021_950.jpg ", Host:" "

The reason is that the time-out of Nginx proxy is too short
Proxy_connect_timeout 60;
Proxy_read_timeout 600;
Proxy_send_timeout 600;

Change to

Proxy_connect_timeout 600;
Proxy_read_timeout 600;
Proxy_send_timeout 600;

Then restart the Nginx

Pressure test 502 Log error upstream timed out (110:connection timed out)

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: 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.