计算机与现代化 ›› 2022, Vol. 0 ›› Issue (01): 17-22.

• 算法设计与分析 • 上一篇    下一篇

容器热迁移的快速内存同步技术

  

  1. (中国电子科技集团第十五研究所,北京100083)
  • 出版日期:2022-01-24 发布日期:2022-01-24
  • 作者简介:游强志(1997—),男,湖北通城人,硕士研究生,研究方向:计算机体系结构,分布式计算,E-mail: 2362798757@qq.com; 胡怀湘(1965—),男,湖南长沙人,研究员级高级工程师,硕士生导师,研究方向:计算机体系结构,网络存储,E-mail: huaixianghu@163.com; 陈相宇(1989—),男,硕士,研究方向:计算机体系结构,E-mail: jack_chi@126.com。

Fast Memory Synchronization Technology for Container Thermal Migration

  1. (Fifteenth Research Institute, China Electronic Technology Group Corporation, Beijing 100083, China)
  • Online:2022-01-24 Published:2022-01-24

摘要: 容器热迁移是云平台负载均衡技术的基础,也是集群故障管理、底层系统维护的重要保障。目前容器热迁移的实现主要基于checkpoint/restore机制,即对正在运行的容器做检查点操作,随后停止容器,传输镜像文件至目的主机后恢复,迁移消耗时间包括检查点时间、传输时间和恢复时间。为了减少容器热迁移的停机时间和减小传输消耗,本文设计并实现一种基于预拷贝(pre-copy)迁移算法的容器热迁移方案,并且采用快速内存同步关键技术,该技术包含3种方法:细粒度脏内存识别、脏内存压缩传输、提前合并增量内存。实验表明,本文所提出的方案及优化技术可以明显减少停机时间和传输开销。

关键词: 容器, 热迁移, 内存同步, 虚拟化

Abstract: Container hot migration is the basis of cloud platform load balancing technology, and also an important guarantee for cluster fault management and underlying system maintenance. At present, the implementation of container hot migration is mainly based on checkpoint/restore mechanism, that is to do checkpoint operation on the running container, then stop the container, transfer the image file to the destination host, and then recover. The migration time includes checkpoint time, transmission time and recovery time. In order to reduce the downtime of container hot migration and reduce the transmission consumption, this paper designs and implements a container hot migration scheme based on pre-copy migration algorithm, and adopts the key technology of fast memory synchronization, which includes three methods: fine-grained dirty memory identification, dirty memory compression and transfer, and merging incremental memory in advance. Experiments show that the proposed scheme and optimization technology can significantly reduce the downtime and transmission overhead.

Key words: container, thermal migration, memory synchronization, virtualization