-based scale-out solution has a lot of good performance and reputation for nginx, and the application request router directly supported by IIS Microsoft on Windows is quite good, in bingocc, you can also directly place an order to order HTTP's elastic support for load balancing. However, the customer's requirements are unlimited. In the past two days, the customer hoped that we could support both HTTP and TCP load balancing, because the customer had a
advantage is not the other load balancerD, Haproxy support full transparent proxy (already have the typical characteristics of hardware firewall)E, Haproxy now more than the online MySQL cluster environment, we often use it as MySQL (read) load balancerF, with powerful monitoring server status of the page, in real-world we combine nagios for mail or SMS alarmExperimental topology:Lab Environment:
Deploy Haproxy 1.7.2, centos7.2haproxy
Original article published on cu:
Reference:
This article involves the installation of haproxy and simple configuration.I. Environment preparation 1. Operating System
CentOS-7-x86_64-Everything-15112. Haproxy version
As of, the haproxy stable version is 1.7.2: http://www.haproxy.o
First, HAProxy
1.haproxy Introduction
HAProxy is a free, fast, and reliable solution that provides high availability, load balancing, and proxy software based on TCP (layer fourth) and HTTP (layer seventh) applications that support virtual hosting.
Haproxy is a free and open source software written in C lan
Description
Operating system: CentOS 5.X 64-bit
Web server: 192.168.21.127, 192.168.21.128
Sites: Bbs.111cn.net and Sns.111cn.net deployed on two Web servers
To achieve the purpose:
Add two servers (main main mode) to achieve Web server load balancing through haproxy+keepalived
Architecture Planning:
Haproxy server: 192.168.21.129, 192.168.
not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepali
not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepali
to configure things, so do not need too much contact, greatly reducing the chance of human error.
Stable work, because of its own resistance to load is very strong, the self has a complete two-machine hot-standby program, such as Lvs+keepalived, but we in the implementation of the project is the most used or lvs/dr+keepalived.
No traffic, LVS only distributes the request, and the traffic does not go out from it, which guarantees that the performance of the Equalizer IO will not be affec
performance of the Equalizer IO will not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.
The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation, and now many sites in this area have a strong demand, this is the advantage of nginx/
chat room and so on. 1, the software itself Do not support regular expression processing, can not do static and dynamic separation of ; and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepalived. 2, if the site is a large application, lvs/dr+keepalived implementation is more complex, especially after the Windows server's machine, if implemented and config
, this ensures that the performance of the Equalizer IO will not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/
performance of the Equalizer IO will not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.Disadvantages of LVS1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/
traffic. LVS only distributes requests, but the traffic does not go out of it. This ensures that the I/O performance of the balancer will not be affected by the large traffic.5. a wide range of applications. because LVS works on layer 4, it can load balance almost all applications, including http, databases, and online chat rooms.
LVS has the following disadvantages:1. the software itself does not support regular expression processing and does not support static/dynamic separation. many website
, it can load balance almost all applications, including HTTP, databases, and online chat rooms.
LVS has the following Disadvantages:
1. software itselfRegular Expression Processing is not supported, and dynamic/static separation cannot be performed.But now many websites have strong requirements in this regard. This is the advantage of nginx/haproxy + keepalived.2. If there are a large number of website applications, the implementation of LVS/DR +
Haproxy provides high availability, load balancing, and proxies based on TCP and HTTP applications, supporting virtual hosting, which is a free, fast, and reliable solution. Haproxy is especially useful for Web sites that are heavily loaded, and often require session-hold or seven-tier processing. The haproxy runs on the current hardware and can support tens of t
regular expression processing, can not do static and dynamic separation, and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepalived.
If it is a large web site application, lvs/dr+keepalived implementation is more complex, especially after the Windows Server machine, if the implementation and configuration and maintenance process is more complex, relatively s
Haproxy is currently a popular cluster scheduling tool, similar cluster scheduling tool has many, such as LVS and Nginx, compared to the best performance of LVS, but the construction of relatively complex, Nginx upstream module support cluster function, but the cluster node health Check function is not strong, Performance is not hapr oxy good. The official website of Haproxy is http://
Introduction and orientation of Haproxy
Haproxy provides high availability , load Balancing , and proxies based on TCP and HTTP applications to support virtual hosts , a free, fast, and reliable solution. According to official data, its maximum limit supports 10G concurrency.
Haproxy is especially useful for Web sites that are heavily loaded, which typically r
of applications because LVS works on Layer 4, so it can load balance almost all applications, including HTTP, databases, online chat rooms, and more.The disadvantage of LVS is: the software itself does not support regular expression processing, can not do static and dynamic separation, and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepalived. If it is a large web site application, lvs/dr+keepalived imple
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.