linux下haproxy1.6.3配置文件

来源:互联网 发布:矩阵连乘 动态规划 编辑:程序博客网 时间:2024/05/14 07:31

#haproxy版本 1.6.3

#配置文件

global  
        log 127.0.0.1   local3 notice
        maxconn 4096
        #chroot /usr/share/haproxy
        uid 0 
        gid 0 
        daemon  
        #debug  
        #quiet  
 
defaults
        log     global  
        mode    tcp    
        option  tcplog 
        option  dontlognull
        retries 3
        maxconn 2000
        option redispatch
        timeout connect 5000
        timeout client 50000
        timeout server 50000


#stats   uri    /haproxy
#stats  auth    test:test   #设置监控页面的用户和密码:test
 
listen  server_haproxy 
bind    192.168.1.104:8066
balance roundrobin
mode tcp
server server_01 192.168.1.105:8066  weight 3 check 
server server_02 192.168.1.107:8066  weight 3 check
0 0
原创粉丝点击