首页|基于OpenResty的一种自定义负载均衡算法

基于OpenResty的一种自定义负载均衡算法

扫码查看
为了解决服务器集群中负载调度不均衡导致高并发情况下服务器响应时间过长以及实际并发数过低的问题,提出一种基于加权轮询算法以及层次分析法(Analystic Hierarchy Process,AHP)的自定义请求类型负载均衡算法.首先收集服务器集群的负载信息,其次定时与负载均衡服务器通信,同步集群节点的负载情况,最后根据请求类型使用对应的权重.实验结果表明,文章提出的算法能够有效应对高并发情形.
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

孙书豪、钟海丽

展开 >

长沙理工大学物理与电子科学学院,湖南长沙 410114

服务器集群 负载均衡 OpenResty 加权轮询

2024

信息与电脑
北京电子控股有限责任公司

信息与电脑

影响因子:1.143
ISSN:1003-9767
年,卷(期):2024.36(6)