arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.04781cs.DC
收藏

在科学网关和研讨会的XSEDE资源上大规模部署Xuyter Notebook

Deploying Jupyter Notebooks at scale on XSEDE resources for Science Gateways and workshops

Andrea Zonca, Robert S. Sinkovits

摘要:

笔记本电脑已经成为每个科学领域交互式计算的主流工具。Xuyter Notebook适合作为Science Gateway的配套应用程序,为用户提供更大的灵活性和后处理能力。此外,它们经常用于培训活动和研讨会,以提供对预先配置的交互式计算环境的即时访问。Applyter团队发布了ApplyterHub Web应用程序,以提供一个平台,多个用户可以登录并访问Applyter Notebook环境。当用户数量和内存需求较低时,可以很容易地在单个服务器上设置MyMysterHub。然而,当我们需要为数十或数百名用户提供大规模的笔记本电脑时,设置变得更加复杂。在本文中,我们将介绍三种在XSEDE资源上大规模部署MyterHub的策略。所有选项都在XSEDE Jetstream上的虚拟机上共享部署XeriyterHub。在第一个场景中,MysterHub连接到一台超级计算机,代表每个用户启动一个节点作业,并将Notebook从计算节点代理回用户的浏览器。在第二个场景中,在IRIS地震学联盟的XSEDE咨询中实现,我们以Swarm模式部署Docker来协调许多XSEDE Jetstream虚拟机,为Notebook提供持久存储和配额。在最后一个场景中,我们在Jetstream上安装了Kubernetes容器编排框架,以提供具有分布式文件系统的容错JuberneterHub部署,并能够扩展到数千个用户。在结论部分,我们提供了一个指向分步教程的链接,其中包含复制这些部署所需的所有命令和配置文件。

英文摘要:

Jupyter Notebooks have become a mainstream tool for interactive computing in every field of science. Jupyter Notebooks are suitable as companion applications for Science Gateways, providing more flexibility and post-processing capability to the users. Moreover they are often used in training events and workshops to provide immediate access to a pre-configured interactive computing environment. The Jupyter team released the JupyterHub web application to provide a platform where multiple users can login and access a Jupyter Notebook environment. When the number of users and memory requirements are low, it is easy to setup JupyterHub on a single server. However, setup becomes more complicated when we need to serve Jupyter Notebooks at scale to tens or hundreds of users. In this paper we will present three strategies for deploying JupyterHub at scale on XSEDE resources. All options share the deployment of JupyterHub on a Virtual Machine on XSEDE Jetstream. In the first scenario, JupyterHub connects to a supercomputer and launches a single node job on behalf of each user and proxies back the Notebook from the computing node back to the user's browser. In the second scenario, implemented in the context of a XSEDE consultation for the IRIS consortium for Seismology, we deploy Docker in Swarm mode to coordinate many XSEDE Jetstream virtual machines to provide Notebooks with persistent storage and quota. In the last scenario we install the Kubernetes containers orchestration framework on Jetstream to provide a fault-tolerant JupyterHub deployment with a distributed filesystem and capability to scale to thousands of users. In the conclusion section we provide a link to step-by-step tutorials complete with all the necessary commands and configuration files to replicate these deployments.

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

↑