Centos install haproxy
Command
yum update -y yum install haproxy mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.default vi /etc/haproxy/haproxy.cfg
copy to haproxy.cfg
global ulimit-n 51200 defaults log global mode tcp option dontlognull timeout connect 1000ms timeout client 150000ms timeout server 150000ms frontend 80-in bind *:80 default_backend 80-out backend 80-out server server1 original Ip maxconn 20480
Auto start haproxy
sudo chkconfig haproxy on