DHSched: Stateless Control for Stateful Real-Time Avatar Serving

📅 2026-09-22
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
本文提出DHSched,一种无状态控制平面,通过无状态的Dispatch副本管理长期存在的有状态会话,解决了实时虚拟人服务中的会话所有权和执行权不一致的问题。
📝 Abstract
Real-time avatar services run long-lived, GPU-backed sessions that transform a continuous text stream into speech, facial motion, rendered video, and RTC media. Elastic operation repeatedly reassigns these sessions across Workers. A reassignment updates shared placement state while the previous GPU runtime and RTC connection remain alive, opening a gap between control-plane assignment and execution authority. A stateful controller serializes ownership by retaining per-session authority, placing that state on the controller's scaling and failover path. We present DHSched, a control plane that manages long-lived stateful sessions through stateless peer Dispatch replicas. DHSched externalizes session ownership as a generation identified by (WorkerID, epoch). Dispatch conditionally commits each generation. Infer-Controller claims and revalidates the same generation before releasing state-advancing input. A stale runtime loses execution authority even if it remains alive. DHSched ranks candidates from periodically refreshed load views while keeping capacity admission authoritative. Recovery advances the same generation path via source-epoch guards and source-independent reconstruction. DHSched runs in our production avatar-serving stack, which reached 49,987 concurrent live sessions. On 10 June 2026, it completed 9,927 session migrations with no observed dual-owner conflicts or capacity overshoots. At the production peak, CreateLive latency was 98.3 ms at P99 and PushText latency was 16.5 ms at P99. Across 100,000 randomized ownership runs, assignment-time, claim-only, and WorkerID-only protocols permit stale execution, while DHSched records no dual-owner or stale-generation release.
Problem

Research questions and friction points this paper is trying to address.

Real-time Avatar
Stateful Sessions
Elastic Operation
Control Plane
Execution Authority
Innovation

Methods, ideas, or system contributions that make the work stand out.

stateless control
session ownership externalization
generation-based validation
stale execution prevention
🔎 Similar Papers
No similar papers found.
X
Xin Wang
AiShiWeiLai Co., Ltd., Beijing 100094, China
Haitong Zhang
Haitong Zhang
College of Computer Science, Sichuan University, Chengdu 610065, China
X
Xianghong Li
AiShiWeiLai Co., Ltd., Beijing 100094, China
S
Shumin Lin
AiShiWeiLai Co., Ltd., Beijing 100094, China
X
Xianzheng Song
AiShiWeiLai Co., Ltd., Beijing 100094, China
L
Lin Wang
AiShiWeiLai Co., Ltd., Beijing 100094, China
Zhenyu Xu
Zhenyu Xu
Texas Tech University
Machine LearningProgram RepairLarge Language Model