Skip to content

Commit 3eb712f

Browse files
committed
Enterprise Gateway incorporation proposal
1 parent c803857 commit 3eb712f

File tree

4 files changed

+139
-0
lines changed

4 files changed

+139
-0
lines changed
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Jupyter Enterprise Gateway Incorporation Proposal
2+
3+
## Problem
4+
5+
Founded in academia, the Jupyter projects provide a rich and highly popular set of applications for
6+
interacting with and iterating on large and complex applications. It has been truly ground-breaking.
7+
However, when we first attempted to build a Notebook service that could enable a large number of data
8+
scientists to run frequent and large workloads against a large Apache Spark cluster, we identified
9+
several requirements that were not currently available in the Jupyter open source ecosystem. We tried
10+
to use the Jupyter Kernel Gateway project, but we quickly realized that the JKG server became the
11+
bottleneck because the co-located Spark driver application for these kinds of workloads (in this case,
12+
the kernel process running on behalf of notebook cells) were extremely resource intensive. Toss in a team
13+
or organization of data scientists, and you quickly saturate the compute resources of the Kernel Gateway
14+
server.
15+
16+
Jupyter Enterprise Gateway enables Jupyter Notebook to launch and manage remote kernels in a distributed cluster,
17+
including Apache Spark managed by YARN, IBM Spectrum Conductor or Kubernetes. New platforms can be added via an
18+
extensibility layer that would handle specific capabilities of the underlying cluster manager.
19+
20+
## Proposed Enhancement
21+
22+
The incubating [Jupyter Enterprise Gateway project](https://github.com/jupyter-incubator/enterprise_gateway) has
23+
matured to the point where it addresses the issues noted above, and others. It should be considered for incorporation
24+
into the main Jupyter organization as an official Subproject.
25+
26+
## Detailed Explanation
27+
28+
29+
30+
31+
32+
### Current and Potential Use Cases
33+
34+
* Provision and manage kernels in a remote cluster.
35+
* Support kernels to be launched as a given user enabling multi-tenancy.
36+
37+
### Current Features
38+
39+
Jupyter Enterprise Gateway is a web server that provides headless access to Jupyter kernels within
40+
an enterprise. Built directly upon Jupyter Kernel Gateway, Jupyter Enterprise Gateway leverages all
41+
of the Kernel Gateway functionality in addition to the following:
42+
43+
* Adds support for remote kernels hosted throughout the enterprise where kernels can be launched in
44+
the following ways:
45+
* Local to the Enterprise Gateway server (today's Kernel Gateway behavior)
46+
* On specific nodes of the cluster utilizing a round-robin algorithm
47+
* On nodes identified by an associated resource manager
48+
* Provides support Apache Spark managed by YARN, IBM Spectrum Conductor or Kubernetes out of the box.
49+
Others can be configured via Enterprise Gateway's extensible framework.
50+
* Secure communication from the client, through the Enterprise Gateway server, to the kernels
51+
* Multi-tenant capabilities
52+
* Ability to associate profiles consisting of configuration settings to a kernel for a given user
53+
* Persistent kernel sessions
54+
55+
Below are some more details on the supported cluster platforms and specific capabilities:
56+
57+
#### Distributed Kernels in Apache Spark
58+
59+
Jupyter Enterprise Gateway enables Jupyter Notebook to launch and manage remote kernels in a distributed cluster. It
60+
leverages different resource managers to enable distributed kernels in Apache Spark clusters. One example shown below
61+
describes kernels being launched in YARN cluster mode across all nodes of a cluster.
62+
63+
64+
![Jupyter Enterprise Gateway leverages Apache Spark resource managers to distribute kernels](jupyter_enterprise_gateway.gif)
65+
66+
Note that, Jupyter Enterprise Gateway also provides some other value added capabilities such as : enhanced security and multiuser support with user impersonation.
67+
68+
![Jupyter Enterprise Gateway provides Enhanced Security and Multiuser support with user Impersonation](jupyter_enterprise_gateway_on_yarn.png)
69+
70+
#### Distributed Kernels in Kubernetes
71+
72+
Jupyter Enterprise Gateway support for Kubernetes enables decoupling the Jupyter Notebook Server and its kernels into multiple pods. This enables running Notebook server pods with minimally necessary resources based on the workload being processed.
73+
74+
![Jupyter Enterprise Gateway enable remote kernels on Kubernetes cluster](jupyter_enterprise_gateway_on_kubernetes.png)
75+
76+
77+
### Criteria for Incorporation
78+
79+
#### Have an active developer community that offers a sustainable model for future development.
80+
81+
The enterprise gateway reuses and extends classes from the Jupyter `kernel_gateway` and `notebook` Python package. By virtue of this implementation, it is largely sustained by development of the `jupyter/notebook` project. Minimal maintenance is required to ensure the enterprise gateway codebase continues to interoperate with future releases of the `notebook` package.
82+
83+
#### Have an active user community.
84+
85+
Enterprise gateway is a fundamental component in multiple IBM Cloud offerings, and has also been adopted in a few large companies that are providing Analytical and/or AI platform for it's internal/external customers.
86+
87+
Other then that, below are some stats that have been collected from the Jupyter Enterprise Gateway GitHub repository from October 14th 2017 - current:
88+
89+
- 7 releases
90+
- 10 contributors
91+
- 5 different organizations (based on current employment)
92+
- 205 commits (16,551 additions, 9,616 removals)
93+
- 59 Stars
94+
- 26 Forks
95+
- 10K+ pulls of primary docker image
96+
97+
#### Use solid software engineering with documentation and tests hosted with appropriate technologies.
98+
99+
The Enterprise Gateway has a suite of unit and integration tests that are run automatically on Travis on every PR and any commits to master.
100+
101+
The Jupyter Enterprise Gateway community provides multiple resources that both users and contributors can use:
102+
103+
- Source Code available at GitHub: https://github.com/jupyter-incubator/enterprise_gateway
104+
- Documentation available at ReadTheDocs: http://jupyter-enterprise-gateway.readthedocs.io/en/latest/
105+
- Automated builds available at Travis.CI: https://travis-ci.org/jupyter-incubator/enterprise_gateway
106+
- Releases available at PyPi.org: https://pypi.org/project/jupyter_enterprise_gateway/
107+
- Releases available at Conda Forge: https://github.com/conda-forge/jupyter_enterprise_gateway-feedstock
108+
- Related Docker Images available at Elyra organization at DockerHub: https://hub.docker.com/u/elyra/dashboard/
109+
110+
111+
#### Demonstrate continued growth and development.
112+
113+
See "Have an active developer community that offers a sustainable model for future development" and "Have an active user community" sections above.
114+
115+
#### Integrate well with other official Subprojects.
116+
117+
The Enterprise Gateway is a `jupyter/jupyter_core#Application` that uses programmatic APIs from `jupyter/notebook` to enable communication with Jupyter kernels like `ipython/ipykernel`. By definition, it integrates with other official Subprojects.
118+
119+
We are also looking for investigating deep integration with `JupyterHib` to decouple the kernel instances into specific pods in a kubernetes environment.
120+
121+
#### Be developed according to the Jupyter governance and contribution model.
122+
123+
The Enterprise Gateway is in the Jupyter Incubator, and under the Jupyter governance and contribution model since its inception.
124+
125+
#### Have a well-defined scope.
126+
127+
Jupyter Enterprise Gateway enables Jupyter Notebook to launch remote kernels in a distributed cluster, including Apache Spark managed by YARN, IBM Spectrum Conductor or Kubernetes.
128+
129+
#### Be packaged using appropriate technologies such as pip, conda, npm, bower, docker, etc.
130+
131+
The Enterprise Gateway is packaged using setup tools, released in both source and wheel format on PyPI, and installable using `pip`. It is also available in conda forge.
132+
133+
## Pros and Cons
134+
135+
136+
137+
## Interested Contributors
138+
139+
@parente, @rgbkrk
916 KB
Loading
35.9 KB
Loading
69.4 KB
Loading

0 commit comments

Comments
 (0)