zoukankan      html  css  js  c++  java
  • Nginx Upstream timed out (110: Connection timed out)

    Nginx Upstream timed out (110: Connection timed out) – 运维生存时间 http://www.ttlsa.com/nginx/nginx-upstream-timed-out-110-connection-timed-out/

    Nginx错误日志中,有大量的下列信息:

    Upstream timed out (110: Connection timed out) while reading response header from upstream

    这种情况主要在厦门两种情况下发生:

    1. nginx proxy

    需要适当的调整proxy_read_timeout值。

    2. Nginx作为php-fpm等等其他的有上游服务

    php-fpm作为nginx的upstream  php-fpm作为nginx的上游服务】

    在这种情况下,适当的调整fastcgi_read_timeout选项值

    Module ngx_http_core_module https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout

    Syntax: keepalive_timeout timeout [header_timeout];
    Default:
    keepalive_timeout 75s;
    Context: httpserverlocation

    The first parameter sets a timeout during which a keep-alive client connection will stay open on the server side. The zero value disables keep-alive client connections. The optional second parameter sets a value in the “Keep-Alive: timeout=time” response header field. Two parameters may differ.

    The “Keep-Alive: timeout=time” header field is recognized by Mozilla and Konqueror. MSIE closes keep-alive connections by itself in about 60 seconds.

  • 相关阅读:
    【BZOJ1135】[POI2009]Lyz
    【BZOJ5110】[CodePlus2017]Yazid 的新生舞会
    「BZOJ2882」工艺
    【BZOJ3626】[LNOI2014]LCA
    [Wc]Dface双面棋盘()
    【BZOJ3307】雨天的尾巴
    [NOI2012]骑行川藏
    【BZOJ4919】[Lydsy六月月赛]大根堆
    bzoj4184
    3237: [Ahoi2013]连通图 线段树分治
  • 原文地址:https://www.cnblogs.com/rsapaper/p/10220189.html
Copyright © 2011-2022 走看看