This paper Centos6.0
Haproxy provides high availability, load balancing, and proxies based on TCP and HTTP applications to support virtual hosts, a free, fast, and reliable solution. Haproxy is especially useful for Web sites that are heavily loaded, which typically require session maintenance or seven-tier processing. Haproxy is running on the current hardware and can support tens of thousands of concurrent connections altogether. and its operating mode makes it easy and secure to integrate into your current architecture while protecting your Web server from being exposed to the network.
Here are two haproxy responsible for backstage control, using keepalived to achieve hot standby; Here's the point:
It's disgusting.
role; host name; IP;
Haproxy1; Node1 192.168.244.147
Haproxy2; Node2 192.168.244.148
S1 (WEB1); Lv1 192.168.244.149
S2 (WEB2); Lv2 192.168.244.150
Haproxy's two servers provide vip:192.168.244.200