十.长连接超时设置(ngx_http_upstream_keepalive_module)
2014-11-06 13:41
711 查看
1.配置
upstream backend {
server 127.0.0.1:8080;
keepalive 32;
keepalive_timeout 30s; # 设置后端连接的最大idle时间为30s
}
该指令设置后端长连接的最大空闲超时时间,参数的时间单位可以是s(秒),ms(毫秒),m(分钟)。默认时间单位是秒。
upstream backend {
server 127.0.0.1:8080;
keepalive 32;
keepalive_timeout 30s; # 设置后端连接的最大idle时间为30s
}
该指令设置后端长连接的最大空闲超时时间,参数的时间单位可以是s(秒),ms(毫秒),m(分钟)。默认时间单位是秒。
相关文章推荐
- ngx_http_upstream_keepalive_module原理分析
- nginx 负载均衡之 ngx_http_upstream_hash_module
- Nginx 负载均衡模块 ngx_http_upstream_module 详述
- Nginx 负载均衡模块 ngx_http_upstream_module 详述
- AndroidHttpTransport 设置连接超时
- HttpClient 4.5版本设置连接超时时间
- ngx_http_upstream_keepalive
- 十二.健康检查模块功能(ngx_http_upstream_check_module)
- Android http连接设置超时无效
- nginx健康检测(ngx_http_upstream_check_module 淘宝)
- 如何在Http连接中设置超时?
- httpclient-4.X设置连接超时
- 如何设置android HttpPost 连接服务器超时
- nginx 负载均衡之 ngx_http_upstream_hash_module
- nginx 负载均衡之 ngx_http_upstream_hash_module
- Nginx 负载均衡模块 ngx_http_upstream_module 详述
- Android在Http连接中设置超时和代理?
- 使用 ngx_http_upstream_session_sticky_module 实现基于cookie的负载均衡
- HttpClient 4.5版本设置连接超时时间
- 常用java web容器http长连接超时设置