免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4372 | 回复: 3
打印 上一主题 下一主题

haproxy timeout参数请教(急) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-03 16:25 |只看该作者 |倒序浏览
如下配置的三个时间contimeout 5000、 clitimeout 5000、srvtimeout 5000 这三个时间具体是指什么,到服务器的超时时间?到客服端的超时时间?怎么解释。检测后端服务器状态的时候是以那个超时时间算的。rise 3 fall 3 ,这里的fall 3次都没成功认为后端服务器就是down的,已哪个时间来考虑的。
个人觉得,clitimeout 5000、srvtimeout 5000 这两个时间应该和haproxy的在线连接有关。
谁能给个权威答案,感谢!

global
     maxconn 20480
     ulimit-n 65535
     daemon
     nbproc 1
     pidfile /var/run/haproxy.pid

defaults
     mode http

     log 127.0.0.1 local0
     option httplog
     option httpclose
     option forwardfor
     option dontlognull
     option redispatch

     retries 3
     timeout check 2000
     contimeout 5000
     clitimeout 5000
     srvtimeout 5000

     # stats
     stats uri /stats
     stats auth admin:admin
     stats refresh 10s
     stats realm haproxy\ statistic
     #stats admin if TRUE

frontend web
     bind *:80
     default_backend fdfs_lg_nginxcluster

backend fdfs_lg_nginxcluster
     balance roundrobin
     server nginx_192.168.56.91 192.168.56.91:81 check inter 2000 rise 3 fall 3 weight 5
     server nginx_192.168.56.93 192.168.56.93:81 check inter 2000 rise 3 fall 3 weight 5

论坛徽章:
0
2 [报告]
发表于 2014-10-08 15:24 |只看该作者
没人知道吗?

论坛徽章:
0
3 [报告]
发表于 2014-11-27 09:51 |只看该作者
回复 1# hejianbu437

client_timeout 是 app 连接 haproxy的时间
server_timeout 是haproxy 连接后端的时间.
   

论坛徽章:
0
4 [报告]
发表于 2014-12-03 01:03 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP