本文已被:浏览 1286次 下载 2262次
Received:March 14, 2019 Revised:April 04, 2019
Received:March 14, 2019 Revised:April 04, 2019
中文摘要: 弹性伸缩是云计算的关键特征,它可以根据应用程序工作负载及时扩展计算资源以实现在高并发请求下应用的负载均衡.基于容器的微服务更应具有弹性伸缩功能从而在不同的工作负载条件下稳定运行.目前广泛使用的容器编排工具Kubernetes的弹性伸缩算法灵活性差,应对突发流量Pod会频繁进行扩展,并且扩展程度不能满足当前负载要求,会造成系统不稳定.针对这一问题,本文提出了一种自动缩放机制,将响应式扩展与弹性伸缩容忍度相结合,确保了系统的可靠性,大大提高了系统的灵活性,并具有很强的应用负载能力.实验测试表明,当系统面临大流量、高并发请求时,通过本文的方法实施弹性伸缩以后,失败请求率下降97.83%,保证了系统稳定性,能够很好的实现应用的负载均衡.
中文关键词: 云计算 docker Kubernetes 自动伸缩算法 弹性负载均衡
Abstract:Autoscaling is a key feature of cloud computing. It can expand computing resources in time according to application workload and achieve load balancing under high concurrent requests. Container-based micro-services should also have the function of autoscaling so as to have stably performance under different workloads. The elastic scaling algorithm of Kubernetes, a widely used container layout tool, has unsatifactory flexibility. Pod will expand frequently to deal with sudden traffic, and the scaling degree can not meet the current load requirements, which will make a system instability. To solve this problem, an automatic scaling mechanism is proposed, which combines the response expansion with the elastic scaling tolerance, and ensures the reliability of the system. Our method greatly improves the flexibility of the system, and is also competent when facing high application load. Experiments results show that when the system meet with heavy traffic and high concurrent requests, the failure request rate can decrease by 97.83% after carrying out the proposed method. So our method can ensure the stability of the system and realizes the load balancing of the application well.
文章编号: 中图分类号: 文献标志码:
基金项目:国家自然科学基金青年基金项目(61503312)
引用文本:
陈雁,黄嘉鑫.基于Kubernetes应用的弹性伸缩策略.计算机系统应用,2019,28(10):213-218
CHEN Yan,HUANG Jia-Xin.Elastic Scaling Strategy Based on Kubernetes Application.COMPUTER SYSTEMS APPLICATIONS,2019,28(10):213-218
陈雁,黄嘉鑫.基于Kubernetes应用的弹性伸缩策略.计算机系统应用,2019,28(10):213-218
CHEN Yan,HUANG Jia-Xin.Elastic Scaling Strategy Based on Kubernetes Application.COMPUTER SYSTEMS APPLICATIONS,2019,28(10):213-218