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

How to limit resources? #15

Open
leinad87 opened this issue Nov 13, 2019 · 1 comment
Open

How to limit resources? #15

leinad87 opened this issue Nov 13, 2019 · 1 comment

Comments

@leinad87
Copy link

With c.YarnSpawner.mem_limit and c.YarnSpawner.cpu_limit you can configure YARN limits for the notebook. The problem is that instead of generating errors when more space is allocated, YARN automatically kills the container so all the work is lost.

How can we limit the memory and cpu of the notebook to get errors when more memory is requested instead to avoid container kill?

@jcrist
Copy link
Member

jcrist commented Nov 14, 2019

Sorry, AFAIK there's not a clean way to handle this, your application would have to monitor its resource usage itself. Java can support this because it's VM supports setting memory usage limits, whereas Python's doesn't.

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

No branches or pull requests

2 participants