CPC H04L 67/101 (2013.01) [H04L 41/12 (2013.01); H04L 47/125 (2013.01)] | 20 Claims |
1. A topology-aware load balancing method, comprising:
acquiring load balancing configuration information issued by a user, and determining, based on the configuration information, whether a plurality of backend service endpoints for load balancing are located on different nodes;
in response to determining that the plurality of backend service endpoints for load balancing are located on different nodes, for each of the different nodes, regularly issuing a command for polling the backend service endpoints on the respective node, and acquiring topology information of the different nodes, as well as health statuses and a link quality of the plurality of backend service endpoints;
calculating priorities of the plurality of backend service endpoints based on the topology information, the health statuses and the link quality, and configuring a service response endpoint for load balancing based on the priorities; and
in response to at least one of the topology information, the health statuses and the link quality being changed, recalculating priorities of the plurality of backend service endpoints, and adjusting the service response endpoint based on the priorities.
|