arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.25484cs.DC
收藏

SHADOW: 有状态微服务的无缝切换与零停机编排工作负载迁移

SHADOW: Seamless Handoff And Zero-Downtime Orchestrated Workload Migration for Stateful Microservices

Technische Universität Berlin(柏林工业大学)

Hai Dinh-Tuan

AI总结:

针对Kubernetes中有状态微服务迁移的停机问题,提出基于ShadowPod策略和CRIU检查点的SHADOW框架,实现零停机、零消息丢失的迁移,在280次实验中恢复阶段减少92%,总迁移时间减少77%。

摘要:

在Kubernetes中迁移有状态微服务需要谨慎的状态管理,因为容器重启时内存状态会丢失。对于StatefulSet管理的工作负载,身份约束禁止两个具有相同序号的Pod同时运行,这加剧了问题,迫使进行顺序的停止-恢复循环,导致不可避免的停机。本文提出SHADOW(Seamless Handoff And Zero-Downtime Orchestrated Workload Migration),一个Kubernetes原生框架,将基于消息的有状态微服务迁移(MS2M)方法实现为Kubernetes Operator。SHADOW引入了ShadowPod策略,其中在目标节点上从CRIU检查点镜像创建一个影子Pod,同时源Pod继续服务流量,允许在消息重放期间并发操作。对于StatefulSet工作负载,使用ExchangeFence机制的标识交换过程重新检查点影子Pod,创建一个StatefulSet拥有的替换Pod,并排空两个消息队列,以保证切换期间零消息丢失。在裸金属Kubernetes集群上进行的评估,包括四种配置和七种消息速率下的280次迁移运行,表明与相同StatefulSet工作负载上的顺序基线相比,ShadowPod策略将恢复阶段减少高达92%,消除服务停机,并将总迁移时间减少高达77%,所有280次运行中零消息丢失。

英文摘要:

Migrating stateful microservices in Kubernetes requires careful state management because in-memory state is lost when a container restarts. For StatefulSet-managed workloads, the problem is amplified by identity constraints that prohibit two pods with the same ordinal from running simultaneously, forcing a sequential stop-restore cycle with unavoidable downtime. This paper presents SHADOW (Seamless Handoff And Zero-Downtime Orchestrated Workload Migration), a Kubernetes-native framework that implements the Message-based Stateful Microservice Migration (MS2M) approach as a Kubernetes Operator. SHADOW introduces the ShadowPod strategy, where a shadow pod is created from a CRIU checkpoint image on the target node while the source pod continues serving traffic, allowing concurrent operation during message replay. For StatefulSet workloads, an identity swap procedure with the ExchangeFence mechanism re-checkpoints the shadow pod, creates a StatefulSet-owned replacement, and drains both message queues to guarantee zero message loss during the handoff. An evaluation on a bare-metal Kubernetes cluster with 280 migration runs across four configurations and seven message rates shows that, compared to the sequential baseline on the same StatefulSet workload, the ShadowPod strategy reduces the restore phase by up to 92%, eliminates service downtime, and reduces total migration time by up to 77%, with zero message loss across all 280 runs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑