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+keep
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://
Haproxy provides high availability, Load Balancing and proxies based on TCP and HTTP applications that support Virtual Host , it 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. Experiment (I.)Experimental purpose: Using
haproxy+keepalived Build WEB Cluster We have learned two Web cluster software nginx and LVS, they have their own characteristics, this chapter will introduce another cluster software haproxy, we will be on its scheduling algorithm, cluster environment, as well as the configuration of the cluster to explain. Haporxy is
Brief introductionHaproxy is a free and open source software written in the C language that provides high availability, load balancing, and application proxies based on TCP and HTTP. 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
Haproxy is a cluster scheduling tool that provides high availability, load balancing, and proxy software based on TCP (layer fourth) and HTTP (layer seventh) 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 proces
What is Haproxy?Haproxy is a free and open source 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 uses three servers to build a Web cluster, haproxy as a dispatch server, two Nginx server
Build a Web cluster using Haproxy
Case Overview: Haproxy is currently a popular cluster scheduling tool. In comparison, LVS performance is the best, but the construction of complex, Nginx upstream module support cluster function, but the cluster node health Check function is not strong, performance is not haproxy
1. Preface
The previous section implemented a technical solution based on LVS (DR) + keepalived cluster. However, in terms of usage and maintenance, it was found that it is more difficult to maintain and implement than the haproxy + keepalived technical solution, the haproxy + keepalived cluster for Web applications is sufficient. Therefore, we recommend the
/90/wKiom1Nkl9uBLSLkAAI7Nv82x7o994.jpg "title=" 111. PNG "alt=" wkiom1nkl9ublslkaai7nv82x7o994.jpg "/>Keepalived 2:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/25/90/wKioL1Nkl--RJs-GAAHu-Fe95vg162.jpg "title=" 222. JPG "alt=" wkiol1nkl--rjs-gaahu-fe95vg162.jpg "/>Let's simulate the first haproxy stop, and then look at the VIP will be all the way to keepalived 2:[[Email protected] ~]# service haproxy
What is Haproxy?Haproxy is a free and open source 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 uses three servers to build a Web cluster, haproxy as a dispatch server, two Nginx server
in the nginx-1.12.0 directory#cd nginx-1.12.0/#./configure --prefix=/usr/local/nginx \ //安装目录--user=nginx \ //用户--group=nginx //用户组5. Compiling and installing#make make install6. Add a home page file#cd /usr/local/nginx/html#echo “this is benet web”>test.html7. Establish a soft connection for easy management#ln –s /usr/local/nginx/sbin/nginx /usr/local/sbin8. Start Nginx#nginx9. Turn off the firewall and en
in the nginx-1.12.0 directory#cd nginx-1.12.0/#./configure --prefix=/usr/local/nginx \ //安装目录--user=nginx \ //用户--group=nginx //用户组5. Compiling and installing#make make install6. Add a home page file#cd /usr/local/nginx/html#echo “this is benet web”>test.html7. Establish a soft connection for easy management#ln –s /usr/local/nginx/sbin/nginx /usr/local/sbin8. Start Nginx#nginx9. Turn off the firewall and en
Overview:Haproxy is a cluster scheduling tool that provides high availability, load balancing, and proxy software based on TCP (layer fourth) and HTTP (layer seventh) 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.
This article provides a brief introduction to Web load balancing using Haproxy, including weight-based polling, configuring HTTPS for Haproxy, configuring HTTP redirection to HTTPS, and configuring Haproxy using stand-alone logs.First, the test environmentHAProxy:Host Name: Rh7-haproxyIP address: 192.168.10. -Operatin
Haproxy is currently a popular cluster scheduling tool. Haproxy comparison with LVs and NginxLVS Performance is the best, but the construction is relatively complexNginx upstream module support cluster function, but the cluster node health Check function is not strong, performance is not Haproxy GoodHTTP requestThe protocol used to access a
/-Default listening port: 80-Default Web directory:/usr/local/nginx/html
Next, set up the test page and start the Nginx serviceecho "
For convenience, the website is accessed directly using an IP address. The client accesses the http://192.168.100.201/test.html for testing.
The process of building Nginx server 2 and the installation steps of Nginx server 1 are the same, the different place is to build the test page.echo "
Deploying
in the nginx-1.12.0 directory#cd nginx-1.12.0/#./configure --prefix=/usr/local/nginx \ //安装目录--user=nginx \ //用户--group=nginx //用户组5. Compiling and installing#make make install6. Add a home page file#cd /usr/local/nginx/html#echo “this is benet web”>test.html7. Establish a soft connection for easy management#ln –s /usr/local/nginx/sbin/nginx /usr/local/sbin8. Start Nginx#nginx9. Turn off the firewall and en
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.