cull-idle

154 views
Skip to first unread message

Pietro Terna

unread,
Apr 29, 2017, 4:45:03 PM4/29/17
to jup...@googlegroups.com

    Dear All,

 

    at https://slapp.hopto.org:6789 I’m serving, via JupyterHub, my simulation shell https://github.com/terna/SLAPP

 

    This is for students and other people interested in trying the tool, without installing it locally.

 

    If a user leaves the connection without closing the notebook or without logging out nicely, JupyterHub can get stuck.

 

    To fix that problem, at https://github.com/jupyterhub/jupyterhub/tree/master/examples/cull-idle I found the interesting cull-idle service.


    It seems to me a possible solution to my problem.

 

    My question is: where can I find jupyterhub_config.py, to add the requested dictionary for cull-idle, and where can I place the file cull_idle_servers.py ?

 

    Many thanks in advance,


    best, Pietro


-- 
The world is full of interesting problems to be solved!

home page: http://terna.to.it

Have a look to: 
http://web-prod.santafe.edu/news-center/news/dangers-simplicity-complex-world

MinRK

unread,
May 2, 2017, 7:40:01 AM5/2/17
to Project Jupyter

On Sat, Apr 29, 2017 at 10:44 PM, Pietro Terna <pietro...@unito.it> wrote:


    Dear All,

 

    at https://slapp.hopto.org:6789 I’m serving, via JupyterHub, my simulation shell https://github.com/terna/SLAPP

 

    This is for students and other people interested in trying the tool, without installing it locally.

 

    If a user leaves the connection without closing the notebook or without logging out nicely, JupyterHub can get stuck.

 

    To fix that problem, at https://github.com/jupyterhub/jupyterhub/tree/master/examples/cull-idle I found the interesting cull-idle service.


    It seems to me a possible solution to my problem.

 

    My question is: where can I find jupyterhub_config.py, to add the requested dictionary for cull-idle, and where can I place the file cull_idle_servers.py ?

In the directory you linked is an example jupyterhub_config.py. You can put cull_idle_servers.py anywhere you like, as long as you pass the path to that file in the service declaration in jupyterhub_config.py. You could put it in the same directory as your jupyterhub_config.py, for instance.

-Min

 

    Many thanks in advance,


    best, Pietro

-- 
The world is full of interesting problems to be solved!

home page: http://terna.to.it

Have a look to: 
http://web-prod.santafe.edu/news-center/news/dangers-simplicity-complex-world

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/2c78d045-2c76-a033-fa94-d4e6da58b6f8%40unito.it.
For more options, visit https://groups.google.com/d/optout.

Pietro Terna

unread,
May 2, 2017, 4:19:05 PM5/2/17
to jup...@googlegroups.com
    Many thanks.

    Last (I hope) question: --timeout is expressed in seconds?

    Best, Pietro

Il 02/05/17 13:39, MinRK ha scritto:
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

MinRK

unread,
May 3, 2017, 8:29:29 AM5/3/17
to Project Jupyter
On Tue, May 2, 2017 at 10:18 PM, Pietro Terna <pietro...@unito.it> wrote:
    Many thanks.

    Last (I hope) question: --timeout is expressed in seconds?

yes, it is seconds and the default is 600 (ten minutes)
 

-- 
The world is full of interesting problems to be solved!

home page: http://terna.to.it

Have a look to: 
http://web-prod.santafe.edu/news-center/news/dangers-simplicity-complex-world

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages