SOMA: Transactional Migration of Live Python Sessions Across Heterogeneous Runtimes
Abstract
Stateful Python workloads accumulate hours of in-memory state bound to their initial runtime. When resource needs change or a runtime is reclaimed, continuing elsewhere requires preserving or rebuilding that state. We present SOMA, a session-oriented migration abstraction for Python workloads that preserves supported application state while transferring execution authority across heterogeneous runtimes, without periodic checkpointing or recomputation. Its mechanism reconstructs a portable capsule of namespace, files, and environment, preserves object and storage relationships, and commits each move transactionally. For planned moves, no acknowledged work is lost and an aborted migration leaves the source serving. The capsule substrate has supported 15K+ Clusy Notebook sessions and 2K+ Python jobs in Portal. Production spot jobs achieved average compute savings above 41% relative to equivalent on-demand machines. Matching hardware to each phase cuts measured job costs by up to 70%. Sharing a GPU between two sessions raises training utilization from 50% to 90%; migration to a larger GPU lets jobs continue after memory exhaustion.
Create a lesson
Metadata
- Comments
- 8 pages, 6 figures, 2 tables
Related papers
GDNShift: Live Migration and Joint State Scheduling for Gated DeltaNet Inference
Shared title terminologycs.DCHanqing Yu, Jiaqi Yang, Si Wu et al.
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Multi-Tier Autonomic Resource Orchestration Framework for Dynamic Service Elasticity across Federated Cloud Environments
Shared title terminologycs.DCNitin Sikri
When Should a Delegated Wallet Send Its Second Payment? Measuring EIP-7702 In-Flight Limits Across Ethereum Clients
Shared title terminologycs.DCSuhua Wang, Ruixin Yu, Zifan Wang et al.
Copula: Sound Sharing of Stochastic Nodes Across Runs of Agentic Systems
Shared title terminologycs.DCBowen Sun, Haizhong Zheng, Beidi Chen et al.
Device-Tier Heterogeneity in Federated Health-Risk Scoring: A Measured Study on Consumer Edge Nodes
Shared title terminologycs.DCEli Yune, Umer Majeed, Mahesh Balan