Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-4694]. Limit the number of running interpreter process #3698

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Mar 26, 2020

What is this PR for?

This is to limit the number of running interpreter process to protect zeppelin machine ran out of memory. By default, you can run at most 10 interpreter processes. To be noticed, this won't impact k8s mode.

What type of PR is it?

[Feature]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

  • CI pass and unit test is added

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Copy link
Contributor

@alexott alexott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -96,6 +100,11 @@ public int getPort() {

@Override
public void start(String userName) throws IOException {

if (TOTAL_RUNNING_PROCESS >= MAX_RUNNING_PROCESS) {
throw new IOException("You have reached the max number of running interpreter process: "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to change interpreter process to interpreter processes

@jongyoul
Copy link
Member

I don't think it's a critical issue but how about using AtomicInteger to count the number of processes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants