摘要
针对传统负载均衡算法不能满足MQTT服务器集群海量设备接入和快速建立连接的需求,提出一种基于Nginx的MQTT服务器集群动态反馈负载均衡算法,实现MQTT服务器集群系统负载均衡,降低用户请求响应时间。首先建立MQTT服务器的性能参数指标和负载参数指标,然后根据指标计算负载评价参数并归一化得到服务器各节点权值,最后通过权值更新模块将权值动态更新到负载均衡器中以调整服务器负载。实验结果表明,提出的动态反馈负载均衡算法负载均衡效果优于传统负载均衡算法,负载均衡度更小,用户请求延时更低。
The traditional load balancing algorithm can’t meet MQTT server cluster needs of the massive devices access and it can't create connection quickly.This paper proposes a dynamic feedback load balancing algorithm based on Nginx for MQTT server cluster to implement load balancing and reduce response time from user's request.Firstly,this paper establishes the performance and load parameters of MQTT server.Then,the load evaluation parameters are calculated and normalized according to the indicators to get weight.Finally,the weight is update dynamically through the weight update module to adjust the load of server.The Experiment result shows that the dynamic feedback load balance algorithm has better load balance effect than the traditional load balancing algorithm and smaller load balancing degree and lower request delay.
出处
《工业控制计算机》
2023年第4期81-83,共3页
Industrial Control Computer
基金
广西自然科学基金(2019GXNSFDA185010)。
关键词
负载均衡
动态反馈负载均衡算法
动态权值
load balancer
dynamic feedback load balancing algorithm
dynamic weight