中国科学技术大学学报 ›› 2018, Vol. 48 ›› Issue (9): 748-754.DOI: 10.3969/j.issn.0253-2778.2018.09.009

• 论著 • 上一篇    下一篇

一种Ceph块设备跨集群迁移算法

邵曦煜,李京,周志强   

  1. 中国科学技术大学计算机科学与技术学院,安徽合肥 230027
  • 收稿日期:2018-03-24 修回日期:2018-05-15 接受日期:2018-05-15 出版日期:2018-09-30 发布日期:2018-05-15
  • 通讯作者: 李京
  • 作者简介:邵曦煜,男,1993年生,硕士研究生,研究方向:云计算,E-mail:zjjhsxy@mail.ustc.edu.cn
  • 基金资助:
    作者简介: 邵曦煜,男,1993年生,硕士研究生,研究方向:云计算,E-mail:zjjhsxy@mail.ustc.edu.cn

Migration algorithm for Ceph block device cross clusters

SHAO Xiyu, LI Jing, ZHOU Zhiqiang   

  1. School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China
  • Received:2018-03-24 Revised:2018-05-15 Accepted:2018-05-15 Online:2018-09-30 Published:2018-05-15

摘要: 在虚拟机全系统在线迁移中,由于镜像文件数据量巨大,对整个迁移过程的效率有着关键的影响,因此优化迁移时间,成为虚拟机迁移技术的研究热点.对于以分布式存储系统(其中较为常见的是Ceph块设备)作为镜像文件存储方式的虚拟机进行迁移时,镜像文件需要经过源存储节点到源计算节点,再到目的计算节点,最后到目的存储节点.这种方式忽略了底层存储系统特点可以给迁移带来的好处,针对上述问题,提出了一种Ceph块设备跨集群迁移算法,采用源存储节点并行向目的存储节点迁移数据的方式,利用了存储节点的计算和网络能力.实验表明,该算法加快了迁移速度,同时适当增加存储节点数目能进一步提升算法效率.

关键词: 虚拟机, 在线迁移, 全系统, 分布式存储, Ceph块设备

Abstract: The migration time of huge image files is vital to the efficiency of the whole-system on-line migration of a virtual machine. Therefore, optimizing the migration time has become a hot research area in virtual-machine migration technology. For virtual machines based on a distributed storage system, in which the more common one is Ceph block device, image data must go from the source storage nodes to the source client nodes, then to the destination client nodes, and finally to the destination storage nodes. This way ignores the benefit from the storage system to the migration. Given the above problems, a migration algorithm for Ceph block device cross clusters is effective. Image data go from the source storage nodes to the destination storage nodes in parallel, which uses the network of storage nodes.The result of the experiment shows that this algorithm shortens the migration time,and a few more storage nodes can improve efficiency of this algorithm.

Key words: virtual machine, live migration, whole-system, distributed storage, Ceph block device

中图分类号: