according to the load balancing type (active/active, active/standby ,...), the user can only see a single IP Address outside. As for how many servers are there, the user does not need to know (like the concept of cluster and cloud computing ).
Figure 1 distributed user vs server farm (Web server farm)
Figure 2 the red arrow shows the Failover architecture (HA), which has different functions than
Balancing method in LVs.IP load Balancing can be used with hardware devices or software implementations. The main products of hardware equipment is F5-BIG-IP-GTM (abbreviation F5), software products are mainly LVs, HAProxy, NginX. Which LVs, Haproxy can work on the 4-7 floo
identify the user's language when the user accesses your domain name, and then select the corresponding language server group for load Balancing.
A load balancer is often referred to as a four-layer switch or a seven-layer switch. The four-layer switch mainly analyzes the IP layer and the TCP/UDP layer to achieve four-layer traffic
Vaguely or many years ago, was responsible for a relatively large project (China Telecom BDC), load balancing is indispensable. Hardware asked a lot of vendors, software has also tried some influential tools. According to the company at that time, the background of the project and the actual situation, the choice is the hardware scheme, the purchase of equipment is F5
Load BalancerIt can be a dedicated device or an application that runs on a common server. Distribute requests to servers that have the same content or provide the same services. Special purpose devices are generally only Ethernet interfaces, which can be said to be a multi-layer switch. The load balancer is typically assigned a virtual IP address, and all requests from the client are done for the virtual IP
from the entire LVS structure, director server is the core of the entire LVS, currently, the operating system for director server can only be Linux and FreeBSD, The linux2.6 kernel can support LVS without any setup, and FreeBSD as a Director server is not a lot of applications, performance is not very good. For real Server, almost all system platforms, Linux, Windows, Solaris, AIX, BSD series can be very well supported.3.4 Balancing StrategyLVS suppo
Transferred from: https://www.cnblogs.com/xrq730/p/5154340.htmlWhat is load balancingLoad balancing, the English name is load Balance, refers to the multiple servers in a symmetric way to form a collection of servers, each server has an equivalent status, can be provided separately from external services without the assistance of other servers. With a
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
Load BalancingMainstream open source software: LVS, keepalived, Haproxy, Nginx and so on;OSI Layer: LVS (4), Nginx (7), Haproxy (4, 7);The Keepalived load balancing function is actually the LVSLVS Load balancer can distribute other ports than 80, such as MySQL, while Nginx only supports HTTP, https, mail;LVS Introducti
The basic algorithms for load balancing are as follows (refer to F5 products):
Random: Load Balancing method randomly distributes the load to each available server, selects a server by the random number generation algorit
Dubbo is integrated and used with Zookeeper and SpringMVC (load balancing and fault tolerance) and dubbozookeeper
With the development of the Internet, the scale of website applications is constantly expanding, and conventional vertical application architectures cannot cope with this problem. distributed service architectures and mobile computing architectures are imperative. Dubbo is a distributed service
What is load balancing
Load balancing, the English name is load Balance, refers to the multiple servers in a symmetric way to form a collection of servers, each server has an equivalent status, can be provided separately from external services without the assistance of othe
There are two ways to implement the site load, one is to buy hardware to achieve, such as hardware F5 to Citrix Netscalar, these devices are hundreds of thousands of, not the average person to play, the other is to use software to achieve, such as Nginx, Squid This kind has the reverse proxy function The software, this article Nginx installs realizes the load.
F
server request connection number; 3.4 hash (source address hash)
Based on the IP address hash calculation, get IP address.
Advantage: Forward requests from the same IP address to the same server during the same session, and implement session stickiness.
Disadvantage: Session will be lost after the target server is down; 3.5 weighted
On the basis of polling, random, least-link, Hash ' Algorithms, the load server is allocated by weighting the way.
Adva
The load master can provide many kinds of load balancing methods, that is, we often call the scheduling method or algorithm:Round robin (Round Robin)This method loops the received requests to each machine in the server cluster, which is the active server. If this is the case
The difference between four and seven layers of load balancing
four layersThe so-called four layer is the fourth layer in the ISO reference model. Four-layer load balancing is also called four-layer switch, it is mainly through the analysis of IP layer and TCP/UDP layer of traffic implementation based on IP plus port
member (node) in the queue has the same status. The rotation method simply rotates and selects members in the group. In the load balancing environment, the balancer sends new requests to the next node in the node queue in turn. In this continuous and cyclical manner, each cluster node is selected in turn under the same status. This algorithm is widely used in DNS domain name round
-speed cache technology of the proxy server to provide beneficial performance. However, it also has some questions. First, you must develop a reverse proxy server for each service. This is not an easy task. Although the reverse proxy server itself can achieve high efficiency, for each proxy, the proxy server must maintain two connections, one external connection and one internal connection, therefore, the load on the proxy server is very large for ext
number of users that can be supported by the cluster system and the time required to process a request.
Among the many existing methods of balancing server load, the following two methods are widely studied and used:
DNS Load Balancing Method Rr-dns (round-robin D
none are included then $request_uri make similar choices in, and so on.
Whichever way you choose to keep the session consistent, if the selected server is not available, the next server will continue processing in the server list according to the load Balancing algorithm (such as Round-robin).
Real-time Health check
As mentioned earlier, Nginx has two major func
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.