Haproxy 4层TCP模式配置
2015-07-31 17:47
489 查看
vi /usr/local/haproxy/etc/haproxy.cfg global maxconn 100000 log /dev/log local0 notice defaults mode tcp log global option redispatch stats enable retries 3 timeout connect 5000ms timeout client 50000ms timeout server 50000ms listen admin_stats :8964 mode http stats enable stats uri /monitor frontend bbs bind :29099 default_backend bbs backend bbs balance leastconn server bbs-app-1_16400 bbs-app-1.prod.com:16400 weight 1 maxconn 4096 check inter 1000 server bbs-app-2_16400 bbs-app-2.prod.com:16400 weight 1 maxconn 4096 check inter 1000 server bbs-app-03_16400 bbs-app-3.prod.com:16400 weight 1 maxconn 4096 check inter 1000 frontend www bind :29090 default_backend www backend www balance leastconn server bbs-app-1_16400 bbs-app-1.prod.com:16400 weight 1 maxconn 4096 check inter 1000 server bbs-app-2_16400 bbs-app-2.prod.com:16400 weight 1 maxconn 4096 check inter 1000 server bbs-app-03_16400 bbs-app-3.prod.com:16400 weight 1 maxconn 4096 check inter 1000
相关文章推荐
- linux更换硬盘后的网络设置
- testNG+httpclient接口测试
- .Net HttpWebRequest 方式 访问服务器
- linux_c 网络开发日记(4)多进程程序设计
- ios 网络请求总结加强对中文的处理 问题:URL不允许写中文 在GET请求中,相关代码段打断点以验证。
- HTTP协议详解(经典)
- ip别名及其在tcp压力测试时候的作用
- Yeelink:将复杂的传感器以极简的方式组到同一个网络内
- 欢迎使用CSDN-markdown编辑器
- LTE网络中SIB2(系统消息2)信息详解
- HTTP协议
- 【HttpClient4.5中文教程】【第一章 :基础】1.1执行请求(三)
- TCP/IP
- java 多线程 http://heipark.iteye.com/blog/1156011
- 面试准备--计算机网络(二)
- 对比iOS网络组件:AFNetworking VS ASIHTTPRequest
- Python SocketServer非阻塞TCP通讯
- This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- Linux的网络协议中的网卡缓冲区
- [HTTP那些事]JSON反序列化