The main functions of ANS load balancing are as follows:
Virtual service and workload high availability
Traffic can be forwarded to multiple backend servers through load balancing. Even if one backend server fails, other servers can continue to provide services.
Two server pools can be combined into a server pool group. If all members in the primary server pool fail, members in the secondary server pool can continue to provide services.
Each virtual service is made highly available by two LB virtual machines in an LB instance in primary-secondary mode, preventing the load balancing service from becoming unavailable due to a single point of failure. For higher reliability, use an LB instance group to prevent service unavailability caused by the failure of the entire LB instance.
Rich set of load balancing algorithms
Six load balancing algorithms are supported: round robin, weighted round robin, least connection, weighted least connection, source IP address hash, and destination IP address hash, flexibly meeting application load balancing requirements in different scenarios.
Proactive health checks
Backend server health status can be checked periodically. For L4 load balancing, the supported proactive health check methods are TCP, HTTP, UDP, and ICMP. For L7 load balancing, the supported proactive health check methods are TCP, HTTP, and gRPC.
When a backend server is detected as abnormal, client requests can be automatically forwarded to other healthy backend servers. When the abnormal backend server returns to normal operation, it can be automatically restored to the load balancing service to continue carrying workload traffic.
Session persistence
Source IP address-based: Within a specific period, all requests with the same source address are forwarded to the same backend server to ensure session continuity and stability.
Cookie-based: Within a specific period, all requests with the same cookie are forwarded to the same backend server to ensure session continuity and stability.
L4 load balancing supports only source IP address-based session persistence, while L7 load balancing supports both methods.
Workload traffic control
The peak ingress and egress traffic handled by virtual services can be flexibly controlled, preventing a single virtual service from occupying excessive network traffic resources and enabling reasonable resource allocation.
Client access control
Client IP addresses can be allowed or blocked using allowlists or blocklists, effectively protecting virtual service resources, preventing malicious requests, and improving the security and robustness of load balancing.
Concurrent connection control
The number of connections that a client is allowed to establish with a virtual service at any one time can be flexibly limited, preventing excessive resource consumption caused by malicious attacks.