科学平台的检查点、还原和实时迁移
Checkpoint, Restore, and Live Migration for Science Platforms
摘要:
我们展示了一个完整的功能实现(每用户)检查点,恢复,和实时迁移功能的XuanyterHub平台。检查点--冻结和挂起磁盘运行状态(内存、寄存器、打开的文件等内容)的能力。--使系统能够将用户的HTTP会话快照到永久存储中。恢复功能将检查点会话带回到运行状态,以便以后在其他机器上继续执行。最后,实时迁移允许在不同的机器之间移动正在运行的Xueyter Notebook服务器,对分析代码透明,并且不断开用户连接。我们对这些功能的实现在系统级工作,几乎没有限制,典型的检查点/恢复时间为O(10秒),实时迁移的路径为O(1秒)。它开启了无数有趣的用例,特别是对于基于云的部署:从检查点空闲会话w/o中断用户的工作(实现4倍或更多的成本降低),在现场执行实例w。从回收时的透明迁移(额外成本降低高达3倍),到将工作负载自动迁移到理想的实例(例如,根据观察到的资源利用率,将分析迁移到具有更多或更少RAM或内核的机器)。我们展示的功能可以使科学平台完全具有弹性,同时保持出色的用户体验。
英文摘要:
We demonstrate a fully functional implementation of (per-user) checkpoint, restore, and live migration capabilities for JupyterHub platforms. Checkpointing -- the ability to freeze and suspend to disk the running state (contents of memory, registers, open files, etc.) of a set of processes -- enables the system to snapshot a user's Jupyter session to permanent storage. The restore functionality brings a checkpointed session back to a running state, to continue where it left off at a later time and potentially on a different machine. Finally, live migration enables moving running Jupyter notebook servers between different machines, transparent to the analysis code and w/o disconnecting the user. Our implementation of these capabilities works at the system level, with few limitations, and typical checkpoint/restore times of O(10s) with a pathway to O(1s) live migrations. It opens a myriad of interesting use cases, especially for cloud-based deployments: from checkpointing idle sessions w/o interruption of the user's work (achieving cost reductions of 4x or more), execution on spot instances w. transparent migration on eviction (with additional cost reductions up to 3x), to automated migration of workloads to ideally suited instances (e.g. moving an analysis to a machine with more or less RAM or cores based on observed resource utilization). The capabilities we demonstrate can make science platforms fully elastic while retaining excellent user experience.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。