首页 | 本学科首页   官方微博 | 高级检索  
     

集群环境中微服务容器资源特征分析及优化
引用本文:姚庆安,刘力鸣,张鑫,金镇君,冯云丛,赵健. 集群环境中微服务容器资源特征分析及优化[J]. 计算机系统应用, 2023, 32(4): 129-140
作者姓名:姚庆安  刘力鸣  张鑫  金镇君  冯云丛  赵健
作者单位:长春工业大学 计算机科学与工程学院, 长春 130102
基金项目:吉林省科技发展规划重点研发项目(20200401076GX); 吉林省教育厅“十三五”科学技术研究规划项目(JJKH20200678KJ); 符号计算与知识工程教育部重点实验室2020年度开放基金(93K172020K05)
摘    要:在集群环境中部署微服务已经成为微服务部署的重要方式.由于不同种类服务对于CPU、内存、磁盘等资源的需求不同,导致集群中的节点产生资源碎片、出现资源消耗倾斜.如何提高集群资源利用率、降低集群能耗,成为继保障服务级别协议(service level agreement, SLA)之后的重大挑战.本文以阿里巴巴集团2021年发布的近两万个微服务的详细跟踪为数据样本,从容器资源使用情况、节点部署特征和资源消耗偏好等多个维度出发,分析其集群资源消耗特征,发现集群中出现了资源消耗倾斜的情况.通过进一步分析节点中容器部署情况发现容器资源分配不合理加剧了这一现象.基于此我们提出了一种使用深度双Q网络的模型,依据上游服务资源需求的实时变化,对容器资源分配进行优化.对比实验结果表明该方法可以在保证服务SLA的情况下有效提高容器资源利用率,改善节点资源消耗倾斜的情况.

关 键 词:微服务  负载特性  容器调度  云计算  深度强化学习
收稿时间:2022-09-03
修稿时间:2022-09-30

Analysis and Optimization of Microservice Container Resources in Cluster Environment
YAO Qing-An,LIU Li-Ming,ZHANG Xin,JIN Zhen-Jun,FENG Yun-Cong,ZHAO Jian. Analysis and Optimization of Microservice Container Resources in Cluster Environment[J]. Computer Systems& Applications, 2023, 32(4): 129-140
Authors:YAO Qing-An  LIU Li-Ming  ZHANG Xin  JIN Zhen-Jun  FENG Yun-Cong  ZHAO Jian
Affiliation:School of Computer Science and Technology, Changchun University of Technology, Changchun 130102, China
Abstract:Microservice deployment in a cluster environment has become an essential way. As different kinds of services have different demands on resources such as CPU, memory, and disk, it makes the nodes in the cluster produce resource fragments and become biased in resource consumption. How to enhance cluster resource utilization and reduce cluster energy consumption has become a major challenge after the service level agreement (SLA) is guaranteed. This study takes the detailed tracking of nearly 20000 microservices released by Alibaba Group in 2021 as data samples and analyzes their cluster resource consumption characteristics from multiple dimensions, such as container resource utilization, node deployment characteristics, and resource consumption preferences. As a result, the study finds that biased resource consumption occurs in the cluster. Further analysis of container deployment in the nodes reveals that this phenomenon is exacerbated by the inappropriate allocation of container resources. In view of this, this study proposes a model based on a deep dual-Q network to optimize container resource allocation according to the real-time changes of upstream service resource demands. The experimental results are compared, and it is shown that the method can effectively increase container resource utilization and ameliorate the bias of node resource consumption while serving SLA.
Keywords:microservice  load characteristic  container schedule  cloud computing  deep reinforcement learning
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号