信息与电脑2024,Vol.36Issue(6) :38-40.

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

A Custom Load Balancing Algorithm Based on OpenResty

孙书豪 钟海丽
信息与电脑2024,Vol.36Issue(6) :38-40.

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

A Custom Load Balancing Algorithm Based on OpenResty

孙书豪 1钟海丽1
扫码查看

作者信息

  • 1. 长沙理工大学物理与电子科学学院,湖南长沙 410114
  • 折叠

摘要

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

Abstract

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.

关键词

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

Key words

server cluster/load balancing/OpenResty/weighted round robin

引用本文复制引用

出版年

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

信息与电脑

影响因子:1.143
ISSN:1003-9767
段落导航相关论文