在集群环境下,为了提高虚拟机Xen的迁移效率,提出了一种面向可扩展集群环境的快速可靠的虚拟机迁移方法.通过在分布式文件系统GlusterFS中增加Heartbeat监测模块,实时监测集群环境中物理机节点的加入与退出,动态创建或修改GlusterFS文件系统的配置文件.为了使GlusterFS文件系统能够自动管理节点,设计实现了基于gSOAP的内部角色通信,比传统方法增加了动态挂(卸)载集群环境中物理机节点的功能,达到了实时更新文件存储的拓扑结构的目的,在保证迁移性能和文件可靠性的同时提高了系统的扩展能力.实验结果表明,该方法能够在虚拟机迁移过程中自动分配资源,在充分利用集群资源和保证文件完整性的前提下,提高了迁移效率.
In order to improve the efficiency of Xen virtual machine migration in cluster environments,a fast and reliable virtual machine(VM) migration solution is proposed based on GlusterFS for clusters with high scability.The Heartbeat mechanism is introduced into GlusterFS to monitor the changes of network topology and the information about node mount and node unmount.It can dynamically create and modify the GlusterFS configuration.The communication of inner roles is implemented by using gSOAP in order to automatically manage the nodes and mount(unmount) the dynamic physical nodes.The file storage topology then can be updated in real-time.The migration performance can provide more guarantee for system scalability without any loss of the reliability of FS.Some experiments were performed to verify the proposed method and the results show that it can automatically allocate system resources during the process of VM migration.The efficiency of VM migration and the utilization of cluster resources are also improved.