MQTT服务器动态负载均衡的研究与应用
Research and Application of Dynamic Load Balancing in MQTT Server
DOI: 10.12677/SEA.2020.94029, PDF,  被引量    科研立项经费支持
作者: 李嘉钰:浙江理工大学信息学院,浙江 杭州
关键词: MQTT协议负载均衡改进算法权值修改Nginx技术MQTT Protocol Load Balancing Improved Algorithm Weight Modification Nginx Technology
摘要: MQTT其独特的优点在物联网技术得到广泛应用,但服务器处理大量的请求时,MQTT服务器可能会出现宕机等问题,本文从优化负载均衡入手,对消息队列、CPU利用率、内存利用率的比重系数进行分析,利用新的权值计算方法,使系统负载更加均匀地分发至集群各服务器,总体平均响应时间更短,通过实验数据表明负载差能由原来的8%下降到4%左右,提高了MQTT服务器集群系统的使用效率,具有一定的实用价值。
Abstract: The unique advantage of MQTT is widely used in the Internet of things technology, but when the server processes a large number of requests, MQTT server may have downtime and other problems. This paper starts with optimizing the load balance, analyzes the proportion coefficient of message queue, CPU utilization and memory utilization, and uses the new weight calculation method, making the system load more evenly distributed to the cluster servers, and the overall average response time is shorter. The experimental data show that the load difference can be reduced from the original 8% to about 4%. It improves the efficiency of MQTT server cluster system and has a certain practical value.
文章引用:李嘉钰. MQTT服务器动态负载均衡的研究与应用[J]. 软件工程与应用, 2020, 9(4): 262-271. https://doi.org/10.12677/SEA.2020.94029

参考文献

[1] 李新. 基于Web服务器集群的动态负载均衡算法改进及实现研究[D]: [硕士学位论文]. 长沙: 湖南大学, 2012.
[2] 覃川. 基于Nginx的Web服务器负载均衡策略改进与实现[D]: [硕士学位论文]. 成都: 西南交通大学, 2017.
[3] Gascon-Samson, J., Garcia, F.P. and Kemme, B. (2015) Dynamoth. A Scalable Pub/Sub Middleware for Latency-Constrained Applications in the Cloud. Distributed Computing Systems (ICDCS), IEEE 35th International Conference, Columbus, 29 June-2 July 2015, 15-18. [Google Scholar] [CrossRef
[4] 赵晔. 基于Nginx的Web后端服务器集群负载均衡技术的研究与改进[D]: [硕士学位论文]. 昆明: 昆明理工大学, 2017.
[5] 尹友磊. MQTT服务器负载均衡技术的研究与应用[D]: [硕士学位论文]. 上海: 上海师范大学, 2018.
[6] 王永辉. 基于Nginx高性能Web服务器性能优化与负载均衡的改进和实现[D]: [硕士学位论文]. 成都: 电子科技大学, 2015.
[7] Hu, S.P., Wen, F. and Lu, S.J. (2019) Design and Optimization of Nginx Sever Based on LNMP.
[8] 包晓安, 曹云棣, 张娜, 等. 基于格分布方差的多目标云工作流调度算法[J]. 电信科学, 2019, 35(2): 1-13.
[9] Liu, X.T., Zhang, T.L., Hu, N., Zhang, P. and Zhang, Y. (2020) The Method of Internet of Things Access and Network Communication Based on MQTT. Computer Communications, 153, 169-176.
[10] 马强. 虚拟化环境下基于OpenFlow的服务器集群动态负载均衡架构设计与实现[D]: [硕士学位论文]. 兰州: 兰州大学, 2014.
[11] 章文嵩. Linux服务器集群系统(四) [EB/OL]. http://www.ibm.com/developerworks/cn/linux/cluster/lvs/part4/index.html
[12] Ansari, N. (2017) Traffic Load Bal-ancing among Brokers at the IoT Application Layer. IEEE Transactions on Network and Service Management, 15, 489-502. [Google Scholar] [CrossRef
[13] Toumura, K. and Nemoto, N. (2013) A Scalable Server Load Balancing Method Using IP Address Stealing. Computer Software and Applications Conference, 22-26 July 2013, 1-5.
[14] 姚兆凡. 轻量级Web服务器Nginx的研究与优化[D]: [硕士学位论文]. 南京: 南京邮电大学, 2017.
[15] 金双喜, 李永, 吴骅, 等. 基于Kafka消息队列的新一代分布式电量采集方法研究[J]. 智慧电力, 2018, 46(2): 77-82.