haproxy专题学习

[root@hosts ha]# cat haproxy.cfg 
global
         log 127.0.0.1   local0
         log 127.0.0.1  local1 notice
         #log loghost    local0 info
         maxconn 4096
         #chroot /home/haproxy
         uid 99
         gid 99
         daemon
         nbproc 1
         pidfile /tmp/haproxy.pid
#         #debug
#         #quiet
#
 defaults
         log     127.0.0.1       local3
         mode    http
         option  httplog
         option  httpclose
         option  dontlognull
         option  forwardfor
         option  redispatch
         retries 2
         maxconn 2000
         balance roundrobin
  #cookie SERVERID insert indirect
  cookie JESSIONID prefix
         stats enable
         stats   uri     /haproxy-stats
         contimeout      5000
         clitimeout      50000
         srvtimeout      50000
#
 listen  http_proxy 0.0.0.0:80
         #option  httpchk GET /ping.jsp
#
#         #server s2 192.168.0.102:8080 weight 3 check
         server s3 192.168.1.35:80 cookie app1 weight 1 check inter 2000 rise 2 fall 5
         server s1 192.168.1.166:80 cookie app2 weight 1 check inter 2000 rise 2 fall 5









本文转自 jxwpx 51CTO博客,原文链接:http://blog.51cto.com/jxwpx/330241,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值