Discover sticky connections load balancing, include the articles, news, trends, analysis and practical advice about sticky connections load balancing on alibabacloud.com
Nginx is a server software that is also a high-performance HTTP and reverse proxy server, as well as a proxy mail server. In other words, we can publish the website on the Nginx, can realize the load balance (enhances the reply efficiency, avoids the server crashes), but also can realize the function as the mail server to send and receive the mail. And the most common is to use Nginx to achieve load
1 Load Balancer Product introductionHardware-based load balancing devices such as F5,BIG-IP,Software-based load balancer product Haproxy,lvs,nginxIn these software products, it is divided into the implementation of soft load based on operating system and the implementation o
nodes, then remove them from the list to solve the problem. However, because on the Internet, ISPs hosts a large number of DNS in the cache to conserve access time, DNS updates become so slow that some users may visit sites that no longer exist, or some new sites will not be accessed. Therefore, although the DNS rotation scheduling solves the load balancing problem to some extent, the change of this condit
several common scheduling algorithms for load Balancing clusters(1) Polling (Round Robin): The access requests are assigned in sequence to each node in the cluster (real server), equal to each server, regardless of the actual number of connections and system load of the server(2) Weighted polling (Weighted Round Robin
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 language
Haproxy is especially useful for Web sites that are heavily loaded, and often requ
application, select TCP. The TCP port that can be used on the forum starts from 1024. If you select HTTP, there is an option stickiness that may be useful to the application. In fact, Load balancer adds a cookie to the HTTP protocol to implement the session function.
3. Health Check
Another feature of load balancing, or feature, is that
Transferred from: http://blog.csdn.net/shaunfang/article/details/9091491Azure provides free load balancing for websites, cloud services, and virtual machines. What we need to pay attention to about load balancing is its handling of the session. In general, the traditional load
rotation analysis
A method based on client scheduling access
Scheduling method based on application-layer system load
A scheduling method based on IP addressIn the IP-based load scheduling algorithm. IP load Balancing technology is the most efficient
Four, LVS 10 scheduling algorithm1. Static Dispatch
The commercial license version of Nginx Plus is beginning to feature TCP load balancing. Starting with Nginx version 1.7.7, it is now a commercial fee version that you want to try and apply on the website. In other words, nginx in addition to the usual HTTP load balancing, Nginx increases the implementation of TCP prot
Reprint Please specify source: http://blog.csdn.net/smartbetter/article/details/53535435Nginx is a server software, is also a high-performance HTTP and reverse proxy server, but also a proxy mail server. In other words, we can publish the website on Nginx, can achieve load balance (improve the response efficiency, avoid the server crashes), but also can be used as mail server to send and receive mail and other functions. And the most common is to use
Load Balancing cluster (LB)How load Balancing clusters workWhen a user sends a request, the request is not immediately sent to the backend's real server (realservers), but is sent first to the Scheduler or Distributor (Director), and then the director, based on some scheduling algorithm, The request is sent to the back
check the nodes at certain intervals, and if there are damaged nodes, then remove them from the list to solve the problem. However, because on the Internet, ISPs hosts a large number of DNS in the cache to conserve access time, DNS updates become so slow that some users may visit sites that no longer exist, or some new sites will not be accessed. Therefore, although the DNS rotation scheduling solves the load bal
haproxy will be better than nginx load balancing speed, in concurrent processing is better than nginx.4. HAProxy supports the TCP protocol load balancing forwarding , can load balance MySQL read, the backend of the MySQL node detection and
virtual machine technology, respectively, 1 logical firewalls and 1 logical switches, and dual main mode, in case of export load balancing at any time business switching. Scheduling algorithmConsidering that most of the domestic products based on open source software for two of development, it is decided to trace from the open-source product LVS scheduling algorithm based on deep learning, and the learning
: Setting up a database) After the databases of 10.0.0.1 and 10.0.0.2 Two servers are added to the cluster, the virtual IP and port are established, the virtual IP is 10.0.0.15, the port is 5000, and then all the front-end application connections are made through the virtual IP, without regard to the backend architecture at all. You can decouple the front end from the backend, as shown in Figure5 and Figure6. (FIGURE5: Set virtual IP) (Figure6: Sett
when using a heavy Web server as a cluster node service (such as the Apache server), the algorithm has a discount on the effect of balancing the load. To reduce this negative impact, you can set the maximum number of connections per node (which is reflected by the threshold setting).3. 4 Minimum Missing methodIn the lowest missing method, the balancer records th
server can be very different and does not achieve true load balancing. The least Connection equalization algorithm has a data record for each server in the internal load, records the number of connections currently being processed by the server, and, when there is a new service connection request, assigns the current
LVS Load Balancing clusterTypes of clusters1, load Balancing cluster: To improve the corresponding ability of the application system, as far as possible to deal with more corresponding requests, less latency as the target, get the overall performance of high load concurrency
Basic load balancingAlgorithm, Mainly including the following (refer to F5 products ):
Random: The Load Balancing Method Randomly distributes the load to each available server, selects a server through the random number generation algorithm, and sends the connection to it. Although many
,ip6t_reject,nf_conntrack_ipv6,nf_defrag_ipv6
Characteristics of LVS Cluster
3.1 IP load balancing and load scheduling algorithm 1. IP Load Balancing TechnologyLoad balancing technology has a number of implementation scenarios,
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.