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
Are notebooks started from /services/ being culled ? #1622
Comments
@minrk It seems that culling notebooks in the /services/ path would require a Delete method. But according to http://petstore.swagger.io/?url=https://raw.githubusercontent.com/jupyterhub/jupyterhub/master/docs/rest-api.yml#/default Also a possible flaw, in line 75 the url seems to be deleting a user as per the rest api swagger docs?? |
Services don't get culled, since they are by definition meant to be always running. JupyterHub has no idea that some of its services might be notebook servers. As for culling individual kernels in the notebook server, that's a notebook feature, new in recent releases of the notebook. You can set c. MappingKernelManager.cull_idle_timeout = 600 and kernels that have been idle for ten minutes will be shutdown. |
I see now that I was missing both
from the managed services I was creating. (see example below) Otherwise the notebooks would just keep running for days. Example with 60 second and 30 second interval (only for test purposes)
Then starting a random notebook in the /service/reir20173 and leaving it idle for 60 seconds.
|
Closing this issue since it appears to be resolved. Thanks to all! |
jupyterhub/examples/cull-idle/cull_idle_servers.py
Line 2 in 4d6b30c
I have this script running on my server where I also start /services to run nbgrader/Formgrader for teachers and TA's.
Starting the course yesterday and running
netstat -lp
this morning reveales a lot of python processess running that are not apart of that and probably are notebooks started by users accessing the /services and starting notebooks there.Is this script managing to cull those notebooks as well as notebooks started on the /user side ?
Are notebooks started from /services/<service_name>/notebooks/<*.ipynb> being culled ?
From the looks of the script only HTTPRequest with methode DELETE seem to be going to the /users/ part.
The text was updated successfully, but these errors were encountered: