SLB(Server Load Balancing)

Server Load Balancing can be regarded as an extension of HSRP (Hot Standby Router Protocol) to achieve load balancing among multiple servers.
A virtual server represents a cluster of multiple real servers,
When a client initiates a connection to a virtual server, it is forwarded to a real server through a load balancing algorithm.
There are two load balancing algorithms:
Weighted round robin(WRR)和Weighted least connections(WLC),
WRR uses a weighted round-robin algorithm to allocate connections, and WLC allocates the next connection to a server with a small number of active connections through a certain weight.
The configuration is divided into two parts,
The first part is to use the slb serverfarm serverfarm_name command to define the SLB options, including specifying the real server address;
The second part is to use ip slb vserver virtual_server-name to specify the virtual server address.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326978691&siteId=291194637