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值。

 
1
2
3
4
5
location / {
        ...
        proxy_read_timeout 150;
        ...
    }

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.

最新文章

  1. html5上传图片(一)一跨域上传
  2. 激活jws.mono的图像处理
  3. mpt_voronoi demo
  4. python处理ha文件
  5. 微信公众平台开发(26) ACCESS TOKEN
  6. c++ 读写注册表
  7. 【解决方案】: hyper-v 导入虚拟机报这个错误 32784
  8. 不可变集合 Immutable Collections
  9. NServiceBus教程-消息传递与处理
  10. ARMv7 .n和.w指令宽度指示符后缀
  11. 禁止UINavigationController 左滑 返回的效果
  12. 一次plsql 问题记录
  13. Centos下安装配置LAMP(Linux+Apache+MySQL+PHP)
  14. iOS:KVO/KVC 的概述与使用
  15. perl中 wx返回的json需要encode_utf8($d);
  16. <input type=button> 跳转页面
  17. 通过udev创建ASM共享磁盘(RAC)
  18. 中国梦  每个农大人的梦
  19. Curl请求慢
  20. jsp篇 之 脚本元素

热门文章

  1. js精准时间迭代器(定时器)
  2. linux 开机自启脚本
  3. iOS 动画效果:Core Animation & Facebook's pop
  4. c++ map使用问题【运行结果不一样】
  5. Qt编写可拖动对象+背景地图+多种样式+多种状态(开源)
  6. How to install Wine on Ubuntu Linux 64bit
  7. eclipse安装maven时候如果conf文件夹中有setting文件则会以这个文件为主,如果自己设置了user的配置文件则会无效
  8. 使用 udev 管理 Linux 设备文件
  9. (转载)解决AndroidStudio导入项目在 Building gradle project info 一直卡住
  10. 【CF840E】In a Trap 分块