基于FCSAN心跳的电力云平台虚拟机HA实现
2020-09-26田富强佘文魁胡波
田富强 佘文魁 胡波


摘 要:随着业务系统上云规模的不断扩大,云平台对虚拟机可用性要求越来越高。为了进一步提升虚拟机的可用性,减少业务停机时间,平台需要在短时间内将虚拟机及业务恢复运行,同时必须防止因判定条件不充分导致虚拟机脑裂。这依赖于HA(High Availability)对资源池中众多计算节点的状态进行实时准确的判定。针对电力云平台虚拟机HA,本文全新提出通过FCSAN的逻辑卷心跳信号来增强对主机状态感知的方案。经测试,该方案相比仅通过以太网络来确认主机心跳信号的方式要更可靠。
关键词:基础设施及服务 高可用 虚拟机 心跳 光纤存储
中图分类号:TP302 文献标识码:A 文章编号:1674-098X(2020)07(a)-0117-04
Abstract: With the continuous expansion of cloud scale on business systems, cloud platforms have increasingly higher requirements on the availability of virtual machines. In order to further improve the availability of virtual machines and reduce business downtime, the platform needs to resume the virtual machines and services within a short period of time. At the same time, it must prevent the virtual machine from being split due to insufficient judgment conditions. This relies on HA (High Availability) to accurately determine the state of many computing nodes in the resource pool in real time. For the power cloud platform virtual machine HA, this paper proposes a new solution to enhance the host state awareness through the FCSAN logical volume heartbeat signal. After testing, this scheme is more reliable than the way to confirm the host heartbeat signal only through the Ethernet network.
Key Words: Infrastructure and services; High availability; Virtual machines; Heartbeat; Fiber storage
在大型云平臺中,往往以数千台设备来承载数万个虚拟机运行,任意一台物理设备和环境的故障都可能导致多个虚拟机承载业务的中断。虚拟机HA的任务是在短时间内将所有故障虚拟机恢复运行。目前,各种云平台虚拟机HA的方案大同小异,主要还是采用心跳机制,IPMI在本场景上仅可用于识别物理机电源状态,信息不充分。多数云平台采用分布式存储,其节点间通信方式为以太网,当以太网络不稳定时缺少第三方的判定依据,容易对虚拟机误操作导致脑裂。VMware的HA方案借助其vmfs,通过虚拟机文件锁来避免脑裂,但VMware需要较高的购买费用。
在电力云平台资源池的架构中,物理服务器被划分为多个集群,一个机房通常会配备一台或多台FCSAN来存放虚拟机磁盘镜像。……
