Apache Load Balance Using Haproxy
Haproxy
HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing. Supporting tens of thousands of connections is clearly realistic with todays hardware. Its mode of operation makes its integration into existing architectures very easy and riskless, while still offering the possibility not to expose fragile web servers to the Net.
1. Preperation
For configuring haproxy you need the following setups. Here I used ACL.
1.1. Using ACL
The use of Access Control Lists (ACL) provides a flexible solution to perform content switching and generally to take decisions based on content extracted from the request, the response or any environmental status. The principle is simple
1.2. Load Balancer
Hostname: lb.example.com
IP: 192.168.0.110
1.3 Web Server 1
Hostname: http1.example.com
IP: 192.168.0.111
1.4. Web Server 2
Hostname: http2.example.com
IP: 192.168.0.112
1.5. First download and install haproxy
To get latest version click here
来源:http://shahidz.com/apache-load-balance-using-haproxy/
阅读全文
类别: apache专栏 查看评论
![item.html](http://www1.feedsky.com/t1/368375257/jxvip/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jxvip/~8066139/368375257/6172570/1/item.html)