-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Document and possibly facilitate using the notebook's internal culling #2032
Comments
@minrk I would like to contribute to this issue. |
Hi @minrk . I am sorry for a delayed response. I need some clarification. Do let me know if I am on the right track. https://github.com/jupyterhub/jupyterhub/blob/master/docs/source/getting-started/services-basics.md Culling is implemented as an external service that checks for idle servers at a certain interval A secondary way to configure notebook in SingleUserNotebook would be to have a default |
@tuhina2020 @minrk Hey . Is this issue available to work on. I would like to help in this. |
This isn't done here in the jupyterhub/jupyterhub project, but the jupyterhub-idle-culler is now a standalone project that documents it in its README here: https://github.com/jupyterhub/jupyterhub-idle-culler#how-it-works
I think there are some good options for various deployments of JupyterHub to provide configuration files overall, doing that directly is probably the way to go than supporting all the options via environment variables.
This is done I think. I think this issue can be closed as resolved. I'll go for a close, please feel free to open a new issue with an idea of improvement to documentation etc. |
The notebook has its own internal idle-culling mechanisms, including shutting down idle kernels, shutting down itself when there's been no activity, and making decisions based on whether there are open connections or not. This is a lot more sophisticated, and offers much more granularity than the network-activity-based activity we have now.
For reference, we enable this config on mybinder.org. We should at least document how to set these values in notebook config.
As a second measure, we could consider if there are good ways to set these values in jupyterhub config (there may not be), such as using SingleUserNotebookApp to allow them to be set via env and simplified flags for idle shutdown strategies.
Additionally, we might update our activity tracking to use this data, so that each notebook periodically notifies the Hub of its 'current activity', so that idle-culling from the Hub API can make more informed decisions.
The text was updated successfully, but these errors were encountered: