Haproxy socket tcp 通讯配置

global   
log  127.0.0.1 local2           
    pidfile  /home/ap/acs/webapps/haproxy/haproxy.pid     
    maxconn  4000   
    daemon    
	
defaults
	mode   tcp   
	log   global       
	option    tcplog                                                             
	option   dontlognull  
	option   redispatch  
	retries  3 
	timeout connect         10s
	timeout client          1m
	timeout server          1m
	maxconn                 3000
	
#admin console	
listen private_monitoring :1080
    mode http
    option httplog
    stats enable
    stats uri /stats
	stats refresh 1s
	
#listen visa ahs proxy
listen visa_ahs 0.0.0.0:9021
	mode tcp
    balance     roundrobin                            
	server  visaweb001 128.192.182.89:5432  check inter 2000 fall 3 weight 30 
	
#listen mastercard ahs proxy
listen mc_ahs 0.0.0.0:9022
	mode tcp
    balance     roundrobin                            
	server  mcweb001 128.192.182.89:6432  check inter 2000 fall 3 weight 30 
	

 

你可能感兴趣的:(Linux)