API Doc
Search Docs...
⌘ K
ACOSABSAVEANSABDR

Data plane

The data plane is the core component for processing and forwarding requests. It exists as virtual machine instances, with the ANS network load balancer deployed on virtual machines in a multi-instance mode.

The data plane receives configuration information from the control plane and processes it according to specific rules. It can handle requests from multiple clients simultaneously and forward them to backend servers.

The data plane supports high availability and high concurrency, as described below.

High availability

  • Application high availability: Under normal conditions, all backend servers in a server pool participate in handling client requests. When a backend server in the server pool fails, client requests are no longer forwarded to that server; other healthy backend servers continue to handle requests. Even when server failures occur, applications continue to provide services normally.

  • Virtual service high availability: The Keepalived + Linux Virtual Server (LVS) mode is used to implement a highly available L4 load balancer, preventing service unavailability caused by load balancer virtual machine single points of failure and ensuring application stability and availability. Currently, you can configure two, three, or four load balancer virtual machines.

    • Each virtual service corresponds to one LB instance. Each instance consists of an active and a standby role, serving as the primary and secondary virtual services, respectively. At any given time, only the load balancer virtual machine hosting the primary virtual service receives client requests.

      • When two load balancer virtual machines are configured, the primary and secondary virtual services are deployed on separate virtual machines.
      • When three or four load balancer virtual machines are configured, the primary and secondary virtual services are deployed on the two virtual machines with the lowest current load.
    • The heartbeat detection mechanism periodically sends heartbeat signals to confirm whether a load balancer virtual machine is operating normally. When the load balancer virtual machine hosting the primary virtual service fails, the virtual IP (VIP) automatically migrates to the load balancer virtual machine hosting the secondary virtual service, ensuring that the virtual service remains available.

    The figure shows an example of high availability when three load balancer virtual machines are deployed. This mode effectively resolves the single point of failure issue for load balancer virtual machines. Load balancer virtual machines can also use the high availability mechanism for rolling upgrades. When a load balancer virtual machine is being upgraded, the VIP can be migrated to a normally operating virtual machine to ensure the virtual service is not affected by the upgrade, improving virtual service availability.

  • Cluster high availability: Supports cluster disaster recovery in primary-secondary mode. Within the two LB instances in an LB instance group, only one virtual machine in one instance has active virtual services at any given time. The control plane detects the health status of all LB instances to determine whether to trigger a disaster recovery failover. Once triggered, the VIP automatically migrates to a healthy LB instance to ensure services continue to operate normally.

High concurrency

The concurrent processing capacity of servers can be increased by adding more backend servers to handle growing volumes of concurrent client requests.

As shown in the figure, when the client request volume is 10 K/s, only two servers in the server pool are sufficient to meet clients' concurrent access needs, with a CPU utilization of 30%. When the client request volume grows to 100 K/s, the CPU utilization of the two servers spikes from 30% to 90%, and backend server resources are severely exhausted.

At this point, the load on existing servers can be reduced by adding new backend servers to better handle concurrent client requests. After adding one backend server, CPU utilization drops from 90% to 50%.

This horizontal scaling capability for handling high concurrency greatly reduces the risk of system crashes caused by sudden traffic spikes.