Nginx/lvs/haproxy is currently the most widely used three load balancing software, the general use of load balancing with the increase in the size of the site according to different stages of the use of different technologies, specific application needs to be specific analysis. if it is a small and medium-sized Web application, such as the day PV less than 10 million, with Nginx can be completely, if a lot of machines, you can use DNS polling, LVS, th
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 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 loa
connection is changed to bridging mode
The third step: Configure the relevant configuration information of Haproxy;
Using the default configuration above ############## is possible #######################Frontend Web *:80 # * indicates that Haproxy listens to all addresses and listens on a port of 80# defines an access control that represents a URL with a. css. js. html. PHP end of
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
polling
Balance roundrobin
#rabbitmqCluster Node Configuration
Server rabbit1 192.168.0.1:5672 check inter 5000 rise 2 fall 2
Server rabbit2 192.168.0.2:5672 check inter 5000 rise 2 fall 2
Server rabbit3 192.168.0.3:5672 check inter 5000 rise 2 fall 2
#Configuring haproxy web monitoring to view statistics
Listen private_monitoring :8100
Mode http
Option httplog
Stats enable
#Set the
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
1, Haproxy introduction
The HAProxy is a high-performance tcp/http reverse proxy load Balancer server with the following features:
Complete HTTP request forwarding based on statically assigned cookies
Load balancing between multiple servers and session stickiness based on HTTP cookies
Primary and Standby server switchover
Accept access to specific ports for service mon
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
. html. PHP end of the separately dispatched to which server to access the ACL url_static path_end -I. CSS. js. html ACL url_dynamic path_end-i. PHP # Usr_backend represents the use of the backend service, if it means that the url_static is dispatched to this server if the condition is met use_backend staticifurl_static default_backend dynamicbackend Static # defines the server on which to call the back-end page on the servers Node1192.168.27.18: theCheck Inter theRise2Fall2Maxconn theBackend Dy
)
Platform:
Monitoring:
Icinga
Collectd
Application:
HAProxy with keepalived
Varnish
PHP (PHP-FPM) with Symfony2 Framework
Data storage:
MySQL (master-master) with HAProxy load balancing
Redis (Master-slave)
BackgroundAlmost a year ago, our friend came to our office with an intra
This series of articles focuses on learning and researching OpenStack Swift, including environment building, principles, architecture, monitoring, and performance.(1) OpenStack + Three-node Swift cluster + HAProxy + UCARP installation and configuration(2) Swift Principles and architecture(3) Swift monitoring(4) Swift performanceTo implement the system:Characteris
20capturerequestheaderrefererlen60default_backendserversbackend serversbalanceroundrobinserverweb1172.16.100.101:80checkmaxconn 3000serverweb2172.16.100.102:80checkmaxconn3000#haproxy-c -f/etc/haproxy/haproxy.cfg# Check configuration file #servicehaproxystart Access:/http 172.16.100.128 Two Web can poll the Toggle Access Monitoring Status page:http://172.16.100.
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
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://
. pid
Ults
Log global
Mode http
# Option httplog
Option dontlognull
Retries 3
Option redispatch
Maxconn 8000
Contimeout 3000
Clitimeout 30000
Srvtimeout 30000
Listen mysql
Bind 0.0.0.0: 3306 # proxy Port
Mode tcp # mode TCP
Option mysql-check # user root # mysql health check root is the mysql login Username
Balance roundrobin # Scheduling Algorithm
Server mysql1 1.1.1.21: 3306 check port 3306 # weight 1 check inter 1 s rise 2 fall 2 # health check plus check
Server mysql2 1.1.1.22: 3306 check p
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.