最新版haproxy linux下的设置(haproxy-1.4.20 )
来源:互联网 发布:常见心理疾病 知乎 编辑:程序博客网 时间:2024/06/07 21:22
今天新项目中使用了最新版的haproxy(haproxy-1.4.20),但使用以前版本的配置却出现错误,负载效果没有反应。经过查阅它的文档将配置修改如下后就可以使用了:
globallog 127.0.0.1 local0#log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 chroot /usr/local/haproxyuid 99 gid 99 daemon nbproc 1 pidfile /usr/local/haproxy/logs/haproxy.pid #debug #quietdefaultslog 127.0.0.1 local3mode http option httplog option httpclose option dontlognulloption forwardforoption redispatch retries 2 maxconn 2000balance roundrobinstats uri /haproxy-stats contimeout 5000 clitimeout 50000 srvtimeout 50000 listen proxy1 0.0.0.0:8000modehttplog global cookie SERVERID insert indirectbalance roundrobinoption httpchkserver test 192.168.1.78:9090 cookie cookie1 check inter 300server test 192.168.1.78:8080 cookie cookie1 check inter 300contimeout3000clitimeout150000srvtimeout150000maxconn 60000redispatchretries3grace 3000optionforwardforoption httplogoption dontlognull
最新haproxy的安装与之前的版本差不多,请看我的博客:http://blog.csdn.net/zilong00007/article/details/7275235
- 最新版haproxy linux下的设置(haproxy-1.4.20 )
- linux下安装Haproxy
- Linux下HAProxy的均衡配置
- HAProxy系列—Linux下的安装
- haproxy
- HAProxy
- HAProxy
- HAProxy
- haproxy
- HAPROXY
- HAProxy
- HAProxy
- HAProxy
- HAproxy
- HAProxy
- haproxy
- haproxy
- HAProxy
- source insight快捷方式
- ADO接口之_RecordsetPtr
- Convert objects to JSON in C# using JavaScriptSerializer
- TinyXML:一个优秀的C++ XML解析器
- VC++------------判断指定目录是否存在,不存在则创建
- 最新版haproxy linux下的设置(haproxy-1.4.20 )
- DispatchAction
- 《Effective Java》学习心得
- Tcp socket返回值 Connection timed out
- android之程序自动更新的实现
- CSS链接
- 在 Eclipse 中使用 JSHint 检查 JavaScript 代码
- 多线程wait等待和notify唤醒
- 理解抽象类