Ps:nginx/lvs/haproxy is currently the most widely used three load balancing software, I have been implemented in a number of projects, reference to some information, combined with some of their own experience, summed up.
The general use of load balancing is to use different technologies depending on the stage of the site's ascent. Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily P
Working with scenes
Using Haproxy to carry out load balancing, for data transmission under socket, non-HTTP access load balancing.Assuming that the scenario is as follows, Terminal 1 and Terminal 2 are responsible for collecting data and then want to forward the data to the server for analysis through the load balancer.Hope:1, when two terminals are working properly, but only one server (server 1), will send all the data to this server.2, when two te
Shell practice: use shell to automatically receive and load the haproxy configuration file, so that the configuration takes effect. haproxy automatically receives the configuration and loads 002. Introduction to the background receiving configuration process: 0031. It is a while 1 background process 0042. Currently, it is a 30 s check. Is there any new configuration? If yes, continue. If not, rest for 30 s.
Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily PV less than 10 million, with Nginx can be completely; if there are many machines, you can use DNS polling, LVS consumes more machines or more, large web sites or important services, and the server is relatively long, You can consider using LVS. One is through the hardware to carry out, the common hardware has more expensive F5 and array and other commercial load balancer, its
This section describes the knowledge of haproxy.
Haproxy provides high availability, Server Load balancer, and TCP and HTTP application-based proxy. It supports Virtual Hosts and is a free, fast, and reliable solution. Haproxy is especially suitable for websites with extremely high loads, which usually require session persistence or layer-7 processing.
Previously, we made a service that implements the LDAP query proxy through Haproxy + Keealived. I felt pretty good and decided to use it to proxy public Exchange requests. TMG is not updated, and the configuration is a little complicated, and the service will die if it does not move.
If you cannot understand the following information, go to my previous article Haproxy + keepalived to configure LDAP proxy.
The general use of load balancing is to use different technologies depending on the stage of the site's ascent. Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily PV less than 10 million, with Nginx can be completely; if there are many machines, you can use DNS polling, LVS consumes more machines or more, large web sites or important services, and the server is relatively long, You can consider using LVS. One is through the ha
Ps:nginx/lvs/haproxy is currently the most widely used three load balancing software, I have been implemented in a number of projects, reference to some information, combined with some of their own experience, summed up.The general use of load balancing is to use different technologies depending on the stage of the site's ascent. Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily PV
Ps:nginx/lvs/haproxy is currently the most widely used three load balancing software, I have been implemented in a number of projects, reference to some information, combined with some of their own experience, summed up.The general use of load balancing is to use different technologies depending on the stage of the site's ascent. Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily PV
: This article mainly introduces (summary) the advantages and disadvantages of NginxLVSHAProxy server load balancer software. For more information about PHP tutorials, see. PS: Nginx/LVS/HAProxy is currently the most widely used three load balancing software. I have implemented these software in multiple projects. I have referenced some materials and combined some of my experience in using it, to sum up.
Generally, server load balancer uses different
Prepare before deployment:Iptables and SELinux are not configured, turn offMount system image as local Yum source, modify Yum fileSource Package Preparation nginx.1.6.0.tar.gz haproxy-1.4.24.tar.gzExperimental Environment Description:Two nginx 192.168.100.110 and192.168.100.120 respectivelya haproxy to 192.168.100.160 1, respectively, on the three and three to build nginxYum-y install pcre-devel Zlib-d
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 four-layer load Balancing SetupHost Planning:Server 192.168.1.148 provides haproxy servicesBackstage Web1 192.168.1.150WEB2 192.168.1.136Installing with the source packageExtract:TAR-
In the production environment, the MongoDB shards are built, providing three mongos interfaces. However, there is no failover mechanism in MongoDB, the official recommendation is to deploy MONGOs and application servers together, multiple application servers will deploy multiple MONGOs instances, which is inconvenient. Check it out, there are several ways to make these three mongos interfaces available, reducing the pressure on a single interface. Commonly used are LVS and
The general use of load balancing is to use different technologies depending on the stage of the site's ascent. Specific application needs to be specific analysis, if it is small and medium-sized Web applications, such as the daily PV less than 10 million, with Nginx can be completely; if there are many machines, you can use DNS polling, LVS consumes more machines or more, large web sites or important services, and the server is relatively long, You can consider using LVS.One is through the hard
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 networ
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 thousands of concurrent connections. and its op
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
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.