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

UI to show resource usage (e.g. CPU, memory) if limits are set #1097

Closed
manics opened this issue May 1, 2020 · 2 comments · Fixed by jupyterhub/repo2docker#904
Closed

UI to show resource usage (e.g. CPU, memory) if limits are set #1097

manics opened this issue May 1, 2020 · 2 comments · Fixed by jupyterhub/repo2docker#904

Comments

@manics
Copy link
Member

manics commented May 1, 2020

Proposed change

Include a component in the default notebook UI that shows when excessive resources are being used.

This came to mind after a question in the UKRSE slack, where it turned out a notebook wouldn't run because it had hit the mybinder memory limit. I think it'd be nice if there was a way to see current resource usage along with the limits.

Alternative options

Who would use this feature?

  • New users to mybinder who aren't aware of the resource limits.
  • Existing users who may find it interesting to see the resource consumption of their notebooks

(Optional): Suggest a solution

It might be enough to include https://github.com/yuvipanda/nbresuse in repo2docker though I'll need to check whether it will correctly show the K8S resource limits. It's also undergoing heavy redevelopment at the moment, especially with regards to jupyterlab.

@betatim
Copy link
Member

betatim commented May 3, 2020

Sounds like a good idea. nbresuse should "just work" (I've used it on z2jh deployments). Do you know if it works with lab as well?

It would be something to add to repo2docker so maybe we should move the issue there (by creating a new one because AFAIK we can't move across orgs).

@jtpio
Copy link
Contributor

jtpio commented May 11, 2020

Do you know if it works with lab as well?

Lab shows the memory usage in the status bar if the nbresuse data is available:

image

There are also some alternative frontends using nbresuse but displaying the data differently:

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

Successfully merging a pull request may close this issue.

3 participants