-
Notifications
You must be signed in to change notification settings - Fork 505
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
Configuring automatic shutdown and kernel culling #306
Comments
Thanks @cfecherolle for this detailed report! What does the command Voila should be able to pick up the configuration file located at When culling is enabled, there will be some logs showing when a kernel is culled to due inactivity:
|
Thank you for your quick reply!
You were right about Apart from this unrelated Docker stuff, I managed to make Voila use the right
What is this |
The Jupyter paths look good.
Yes that's a bit cumbersome, but that's because the files are loaded at startup and I suppose
Is the Docker image you are using based on an existing one from the jupyter docker stacks? It looks more like a permission issue. Also is voila used as standalone app or as a server extension? |
I see! Yes indeed, Voila is started as PID 1. I created a Even without knowing the role of this directory, I'll just add the Culling seems fine now, but I still don't know how to make the server shutdown after some inactivity, no logs about this specific property and no sign of auto-shutdown when I test it. Does Voila support this in standalone/Tornado mode? EDIT: I'm using Voila in standalone mode. |
I believe the In your Docker image, is voila started from a specific user or from the
|
Voila is started from the jovyan user 😄 Ok, we were pretty much set on standalone mode because we want to keep things as light as possible, so we will try and build some sort of inactivity purge with a Shell script wrapper to start Voila, maybe something like that. I'll keep an eye on the ExtensionApp roadmap to see how it goes, but we might as well find a workaround for now 😉 Thanks for your help! |
+1 for @Zsailer |
Yes, once the |
Closing as answered. @cfecherolle if you have any more question, feel free to post a comment here or open a new issue! |
Thank you !
Le mer. 2 oct. 2019 à 12:45, Jeremy Tuloup <notifications@github.com> a
écrit :
… Closed #306 <#306>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#306?email_source=notifications&email_token=AAYFZSFFC7WODCGM2I5HSJ3QMR3ULA5CNFSM4IDUWEDKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOT67YOLQ#event-2680129326>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYFZSBPHFZ4MZK36O33LDLQMR3ULANCNFSM4IDUWEDA>
.
|
Hello,
First of all, thank you for the amazing tool that is Voila, very useful and well-maintained! :)
I came here today because I have some issues regarding configuration for a standalone notebook launch.
I'm trying to edit my Voila config to set kernel culling (with
MappingKernelManager.cull_idle_timeout
andMappingKernelManager.cull_interval
) andNotebookApp.shutdown_no_activity_timeout
when there is no activity on my server.Unfortunately, I don't understand which config file is used, I've tried running the voila command using --Voila.log_level=DEBUG but it only displays tried folders, not the config file(s) which are actually used. The docs are sparse about this topic and I tried computing info from jupyter, notebook, and voila docs but it still doesn't work.
Theoretically, I could setup a voila.json file with content such as:
And it would set things up just fine.
I tried various places and config files:
~/.jupyter/voila.json
/usr/local/etc/jupyter/jupyter_notebook_config.d/voila.json
jupyter_notebook_config.py
) in various placesTo no avail.
Are these timeout and culling parameters supposed to log something when used with Voila? Did you manage to make them work? It has become frustrating to randomly create and edit config files without knowing what to set.
Thanks in advance for your help!
Have a nice day,
Cécile
The text was updated successfully, but these errors were encountered: