计算机应用 ›› 2021, Vol. 41 ›› Issue (6): 1581-1588.DOI: 10.11772/j.issn.1001-9081.2020121913

所属专题: 2020年全国开放式分布与并行计算学术年会(DPCS 2020)

• 2020年全国开放式分布与并行计算学术年会(DPCS 2020) • 上一篇    下一篇

面向动态负载的集群容器部署方法

尹飞1, 龙玲莉1, 孔峥1, 邵涵2, 李鑫3, 钱柱中2   

  1. 1. 江苏方天电力技术有限公司, 南京 211102;
    2. 南京大学 计算机科学与技术系, 南京 210023;
    3. 南京航空航天大学 计算机科学与技术学院, 南京 211106
  • 收稿日期:2020-11-04 修回日期:2021-04-11 出版日期:2021-06-10 发布日期:2021-06-23
  • 通讯作者: 李鑫
  • 作者简介:尹飞(1978-),男,安徽马鞍山人,高级工程师,主要研究方向:电力信息化、云计算;龙玲莉(1984-),女,湖北武汉人,工程师,硕士,主要研究方向:电力信息化、云计算;孔峥(1986-),男,江苏扬州人,助理工程师,主要研究方向:电力信息化、云计算;邵涵(1994-),女,安徽黄山人,博士研究生,研究方向:分布式系统、计算机网络;李鑫(1987-),男,江西南昌人,副教授,博士,CCF会员,主要研究方向:云计算、边缘计算;钱柱中(1980-),男,江苏常熟人,教授,博士,CCF会员,主要研究方向:分布式系统、数据中心网络。
  • 基金资助:
    国家自然科学基金资助项目(61802182)。

Deployment method of dockers in cluster for dynamic workload

YIN Fei1, LONG Lingli1, KONG Zheng1, SHAO Han2, LI Xin3, QIAN Zhuzhong2   

  1. 1. Jiangsu Frontier Electric Technology Company Limited, Nanjing Jiangsu 211102, China;
    2. Department of Computer Science and Technology, Nanjing University, Nanjing Jiangsu 210023, China;
    3. College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing Jiangsu 211106, China
  • Received:2020-11-04 Revised:2021-04-11 Online:2021-06-10 Published:2021-06-23
  • Supported by:
    This work is partially supported by the National Natural Science Foundation of China (61802182).

摘要: 针对集群负载动态变化引发容器频繁迁移的问题,提出了一种基于资源预留的容器部署方法。首先,设计了基于马尔可夫链模型的单容器资源需求动态变化描述机制,用于刻画单容器的资源需求情况;其次,基于单容器马尔可夫链模型分析了多容器资源动态变化情况,以刻画容器资源需求态势;随后,基于多容器马尔可夫链提出了面向动态负载的容器部署与资源预留算法;最后,基于容器资源需求特征的分析对所提算法的性能进行了优化。基于国产软硬件环境构建了仿真实验环境,仿真结果表明,在资源冲突率方面,所提方法的性能接近最优的峰值配置策略RP,但所需宿主机数量、容器动态迁移次数明显比其更少;在资源利用率方面,所提方法的宿主机使用数量略多于最优的谷值配置策略RV,但动态迁移次数更少,资源冲突率更低;相较于峰谷配置策略RVP,所提方法在综合性能方面更佳。

关键词: 集群, 容器, 动态负载, 整合与迁移, 马尔可夫链

Abstract: Aiming at the problem of frequent migration of containers triggered by dynamic changes of cluster workload, a container deployment method based on resource reservation was proposed. Firstly, a dynamic change description mechanism of single-container resource demand based on Markov chain model was designed to describe the resource demand situation of single container. Secondly, the dynamic change of multi-container resource was analyzed based on the single-container Markov chain model to describe the container resource demand state. Thirdly, a container deployment and resource reservation algorithm for dynamic workload was proposed based on the multi-container Markov chain. Finally, the performance of the proposed algorithm was optimized based on the analysis of container resource demand characteristics. The simulation experimental environment was constructed based on the domestic software and hardware environment, and the simulation results show that in terms of resource conflict rate, the performance of the proposed method has the performance close to the optimal peak allocation strategy named Resource with Peak (RP), but its number of required hosts and container dynamic migration number are significantly less; in terms of resource utilization rate, the proposed method has the number of hosts used slightly more than the optimal valley allocation strategy named Resource with Valley (RV), but has less dynamic migration number and lower resource conflict rate; compared with the peak and valley allocation strategy named Resource with Valley and Peak (RVP), the proposed method has better comprehensive performance.

Key words: cluster, docker, dynamic workload, consolidation and migration, Markov chain

中图分类号: