The data plane of load balancing is deployed on one or more groups of virtual machines. Such a group of virtual machines is called an LB instance, and two LB instances can form an LB instance group to achieve high availability.
To use load balancing, you need to plan the number of LB instances or LB instance groups in advance, as well as the number and configurations of load balancer virtual machines within each LB instance.
The available number and configurations of load balancer virtual machines for each LB instance are as follows:
Count: 2, 3, or 4
Load balancer virtual machine configurations
| Configuration | L4 LB maximum capacity | L7 LB maximum capacity | System resources required by each load balancer virtual machine |
|---|---|---|---|
| Small |
|
|
|
| Medium |
|
|
|
| Large |
|
|
|
Estimating the number of LB instances or LB instance groups
The number of LB instances or LB instance groups that you can create depends on the ANS controller configuration, the load balancer virtual machine configuration, and the numbers of existing virtual services, server pools, and server members.
The following table shows the minimum number of LB instances or LB instance groups that you can create under each combination of ANS controller configuration and load balancer virtual machine configuration, based on the number of virtual services when each LB instance is configured with the maximum number of virtual services. Because an LB instance group uses primary-secondary mode, the number of resources that a single LB instance group can manage is calculated based on one LB instance. If an LB instance actually hosts fewer virtual services than the maximum, you may be able to create more LB instances or LB instance groups.
| ANS controller configuration | Small LB virtual machine | Medium LB virtual machine | Large LB virtual machine |
|---|---|---|---|
| Small | 5 | 3 | 1 |
| Medium | 14 | 7 | 3 |
| Large | 27 | 14 | 6 |
Requirements
According to high availability requirements, each load balancer virtual machine needs to be distributed on a different host in the ACOS HCI (AVE) cluster or ACOS Compute cluster. CPU exclusivity is enabled by default for load balancer virtual machines. The number of load balancer virtual machines cannot exceed the number of hosts in the cluster that can provide sufficient vCPU and memory for them.
You can calculate the number of resources that a single LB instance can manage as follows: Number of load balancer virtual machines × Number of virtual services, server pools, and server members that each load balancer virtual machine can manage ÷ 2. The overall manageable scope of load balancing is the sum of the manageable scopes of all LB instances. Select the configuration based on your service requirements. Both L4 LB and L7 LB features are supported; calculate based on the feature you plan to use. If an LB instance includes both L4 LB and L7 LB features, calculate according to the specifications required for L7 LB.
When using an LB instance group, ensure the primary and secondary instances have the same configuration and the same number of virtual machines. In addition, the amount of resources managed by the instance group cannot exceed the manageable scope of a single LB instance (either primary or secondary) to ensure that service takeover during failover proceeds smoothly and service continuity is maintained.
When a server pool group is used, because the server pool group consists of a primary server pool and a secondary server pool, it can manage twice as many server pools as a single server pool.