ElasticNotebook: Enabling Live Migration for Computational Notebooks

Author:

Li Zhaoheng1,Gor Pranav1,Prabhu Rahul1,Yu Hui1,Mao Yuzhou2,Park Yongjoo1

Affiliation:

1. Univ. of Illinois Urbana-Champaign

2. University of Michigan - Ann Arbor

Abstract

Computational notebooks (e.g., Jupyter, Google Colab) are widely used for interactive data science and machine learning. In those frameworks, users can start a session , then execute cells (i.e., a set of statements) to create variables, train models, visualize results, etc. Unfortunately, existing notebook systems do not offer live migration: when a notebook launches on a new machine, it loses its state , preventing users from continuing their tasks from where they had left off. This is because, unlike DBMS, the sessions directly rely on underlying kernels (e.g., Python/R interpreters) without an additional data management layer. Existing techniques for preserving states, such as copying all variables or OS-level checkpointing, are unreliable (often fail), inefficient, and platform-dependent. Also, re-running code from scratch can be highly time-consuming. In this paper, we introduce a new notebook system, Elastic-Notebook, that offers live migration via checkpointing/restoration using a novel mechanism that is reliable, efficient, and platform-independent. Specifically, by observing all cell executions via transparent, lightweight monitoring, ElasticNotebook can find a reliable and efficient way (i.e., replication plan ) for reconstructing the original session state, considering variable-cell dependencies, observed runtime, variable sizes, etc. To this end, our new graph-based optimization problem finds how to reconstruct all variables (efficiently) from a subset of variables that can be transferred across machines. We show that ElasticNotebook reduces end-to-end migration and restoration times by 85%-98% and 94%-99%, respectively, on a variety (i.e., Kaggle, JWST, and Tutorial) of notebooks with negligible runtime and memory overheads of <2.5% and <10%.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference120 articles.

1. Reproducible Notebook Containers using Application Virtualization

2. AndresHG. 2021. NLP GloVe BERT TF-IDF LSTM... Explained. www.kaggle.com/code/andreshg/nlp-glove-bert-tf-idf-lstm-explained/notebook. AndresHG. 2021. NLP GloVe BERT TF-IDF LSTM... Explained. www.kaggle.com/code/andreshg/nlp-glove-bert-tf-idf-lstm-explained/notebook.

3. Jason Ansel , Kapil Arya , and Gene Cooperman . 2009 . DMTCP: Transparent Checkpointing for Cluster Computations and the Desktop. In 2009 IEEE International Symposium on Parallel & Distributed Processing (IPDPS'09) . IEEE, IEEE Computer Society, Rome, Italy, 1--12. Jason Ansel, Kapil Arya, and Gene Cooperman. 2009. DMTCP: Transparent Checkpointing for Cluster Computations and the Desktop. In 2009 IEEE International Symposium on Parallel & Distributed Processing (IPDPS'09). IEEE, IEEE Computer Society, Rome, Italy, 1--12.

4. Microsoft Azure. 2023. Azure ML Studio. learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks. Microsoft Azure. 2023. Azure ML Studio. learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks.

5. Microsoft Azure. 2023. Microsoft Azure pay-as-you-go. azure.microsoft.com/en-us/pricing/purchase-options/pay-as-you-go/. Microsoft Azure. 2023. Microsoft Azure pay-as-you-go. azure.microsoft.com/en-us/pricing/purchase-options/pay-as-you-go/.

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Demonstration of ElasticNotebook: Migrating Live Computational Notebook States;Companion of the 2024 International Conference on Management of Data;2024-06-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3