Recent Friends Liu Xin website successfully online and operation, PV reached billion/day access, the most front-end use of haproxy+keepalived dual-machine load balancer/reverse agent, the entire site is very stable; it made me more determined haproxy+ Keepalived as the web's most front-end load equalizer Web site architecture design, here I also have a point to t
Preface: We KnowTomcat+nginxLoad Balancing cluster,LVsLoad Balancing clusterAndHaproxyto build a cluster, these three clusters are comparedLVsthe performance is the best, but the building is complexNginxof theUpstreamThe module supports clustering, but there is not much fault checking on the nodes of the cluster, and no performanceHaproxyWell, so it should be saidHarpoxyis also very good. So then we started using haproxy to build the cluster. One, top
. Disadvantages:-system administrators have a greater amount of work-because the service is based on its own architecture, the system administrator needs to be more concerned about the architecture.-Maintain backward compatibility-there are countless changes to the API approach during one year of maintenance. The problem is that these changes must not compromise backwards compatibility, or the code for each front-end site needs to be modified, and the programmer will work when all the sites are
Objective Software load Balancing is generally implemented in two ways: operating system-based soft load implementation and soft load balancing based on third-party applications. LVS is a kind of soft load based on Linux operating system, while Haproxy is a soft load based on third party application. Haproxy compared to the use of LVS is much simpler, but like LVs, hapr
I built the Tomcat+nginx load Balancer cluster, the LVM load Balancing cluster, I'm going to get a haproxy load Balancer cluster, the three clusters I have to realize the LVS performance is really good (DR) but in the construction process is too cumbersome, Nginx is the use of upstream module cluster but the cluster node failure check function is not enough performance and LVM is a bit far away, so today to a middle person haproxy.One , build
Haproxy is a free and open code software written in C that provides high availability, load balancing, and TCP and HTTP-based application proxies that can run on most major Linux operating systems.This experiment with three servers, one server installation haproxy implementation scheduling, another two servers to build Nginx to provide Web services, a client test
Access 192.168.1.121:8080650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/87/35/wKioL1fXyKWyUynlAABO4vtR5Js692.png "style=" float: none; "title=" 11.png "alt=" wkiol1fxykwyuynlaabo4vtr5js692.png "/>650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M00/87/35/wKioL1fXyKXBvvfZAABAAgOHbd0146.png "style=" float: none; "title=" 22.png "alt=" wkiol1fxykxbvvfzaabaagohbd0146.png "/>The load balancing configuration of the two methods is not perfect. later on, there is also a session sharin
of the data from 1.4.0 to 1.5.0:
1574 Day (4 yr 3 Mon)
version Development (one every 2 months on average)
540 Bugs Repair (387 added during 1.5, 153 affecting 1.4 as well)
2549 commits
683 Unique commit dates (at least-many days worked)
Up to $ commits per day
69712 lines removed, 122279 Lines added
Many extremely useful bug reports (too many to list)
Code/doc Contributors
Improvement Record: Http://www.haproxy.org/download/1.5/src/CHANGELOGDownload:tar.gz http://www.ha
. Prepare four hosts: IP address planning is4.49,4.50 (Haproxy), 4.51 (web), 4.52 (web)2, install Haproxy Software on 4.50, on 4.51 and 4.52Installing HTTPD SoftwareI. Common LB cluster1, modify the configuration file: Vim/etc/haproxy/haproxy.cfgDelete all content below 60 l
=" wkiol1bdew6bgiuwaabgceo6jkc660.jpg "/>4. Start the Haproxy service and pay attention to the firewall650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7C/F1/wKioL1bdHK-jZ_XEAABSaQUNeN0570.jpg "title=" Start Haproxy.jpg "alt=" Wkiol1bdhk-jz_xeaabsaqunen0570.jpg "/>Third, test the Web cluster effect1. The first time the client opens 192.168.1.60, the display is as follows:650) this.width=650; "src=
1. Introduction to HAproxy
HAproxy is a high-performance proxy server. It provides Lay4 and Lay7 proxies, featuring Healthcheck, Server Load balancer, and access control. It can support tens of thousands of concurrent connections with excellent performance. In addition, the HAproxy operating mode enables it to be easily and securely integrated into the current ar
1, Haproxy is a popular cluster scheduling tool, similar cluster scheduling tool has many, such as Nginx,lvs compared to, LVS performance is best, but build relatively complex, Nginx upstream module support cluster function, but the cluster node health Check function is not strong, Performance is not haproxy good.2, Haproxy: Easy to build, access control can be c
=" 4.png " alt= "Wkiol1xtpflckxzfaaenctzwfge483.jpg"/>2.Nginx the Operation control1) Check the configuration file650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/CA/wKiom1XtPJnS7J9FAAEFZq8_Pgs930.jpg "title=" 5.png " alt= "Wkiom1xtpjns7j9faaefzq8_pgs930.jpg"/>2) Start, Stop Nginx , if the server is already installed http wait service, should be deactivated to avoid conflicts650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/CA/wKiom1XtPOrA9hADAAHbXoUGjPc572.jpg "title="
Linux using haproxy to build a web cluster (2)Case TWO:First, experimental topological diagram650) this.width=650; "style=" Float:none; "title=" Picture 1.png "src=" https://s3.51cto.com/wyfs02/M00/9A/7A/ Wkiol1lwh0fqqow1aadcp5iqmy4560.png "alt=" Wkiol1lwh0fqqow1aadcp5iqmy4560.png "/>Second, Experimental Objectives: use keepalived+haproxy for dual standby and l
First, the experimental structureThis experiment consists of one haproxy and two Web servers, and finally realizes the high availability and load balance of two Web servers.
Haproxy
172.24.3.10
Web1
172.24.3.20
Web2
172.24.3.25
Second, the experime
Today's customer service consultation on the ground continued to receive users can not access the site, are prompted that the webpage can not access, Internet Explorer can not open the page, etc., due to the Friday when the haproxy for the following optimizationTimeoutclient 30sTimeout Http-keep-alive 10sOption Http-keep-aliveOption Http-server-closeOption NolingerThe first thing to exclude isOption Nolingerparameter, since this parameter forces the T
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.