A Custom Load Balancing Algorithm Based on OpenResty
In order to solve the problem that the server response time is too long and the actual number of concurrent requests is too low due to the unbalanced load scheduling in the server cluster,a load balancing algorithm based on weighted polling algorithm and Analystic Hierarchy Process(AHP)is proposed.First,the load information of the server cluster is collected and periodically communicated with the load balancing server to synchronize the load of the cluster nodes,and then the corresponding weight is used according to the request type.Experimental results show that the proposed algorithm can effectively deal with high concurrency.
server clusterload balancingOpenRestyweighted round robin