摘要
面向数据的体系架构(DOA)为海量异构数据流通共享提供了新的有效解决方案。而数据注册中心(DRC)作为DOA的核心部件,它的访问性能尤为关键。针对高并发访问带来的DRC集群服务过载问题,采用Nginx反向代理负载均衡技术处理高并发访问。对Nginx的负载策略进行分析优化,提出一种由动态配置、负载收集、算法调度组成的动态负载均衡策略,并在负载调度模块对Nginx加权最小连接调度算法(WLC)进行改进,通过自适应权值不断调度下一个周期内性能最优的节点来处理请求。通过高并发性能测试验证了所提出的负载均衡策略在DRC集群中能更有效处理大流量的访问需求,提高集群的资源利用率和缩短请求响应时间。
The data-oriented architecture(DOA)provides a new effective solution for the circulation and sharing of massive heterogeneous data.The data registration center(DRC)is the core component of DOA,and its access performance is particularly critical.Aiming at the problem of DRC cluster service overload caused by high concurrent access,Nginx reverse proxy load balancing technology is used to handle high concurrent access.We analyze and optimize the load strategy of Nginx,propose a dynamic load balancing strategy consisting of dynamic configuration,load collection,and algorithm scheduling,and improve the Nginx weighted least connection scheduling algorithm(WLC)in the load scheduling module.The adaptive weight continuously schedules the node with the best performance in the next cycle to process the request.The high concurrency performance test verifies that the proposed load balancing strategy can more effectively deal with the access demand of large traffic in the DRC cluster,improve the resource utilization of the cluster and shorten the request response time.
作者
倪雅婷
杨文晖
苗放
黄安琪
蒋媛
NI Ya-ting;YANG Wen-hui;MIAO Fang;HUANG An-qi;JIANG Yuan(School of Computer and Network Security, Chengdu University of Technology, Chengdu 610059, China;Big Data Research Institute, Chengdu University, Chengdu 610106, China)
出处
《计算机与现代化》
2022年第4期58-64,共7页
Computer and Modernization
基金
国家自然科学基金资助项目(61071121)。