jhub-apps icon indicating copy to clipboard operation
jhub-apps copied to clipboard

Named Servers not being shut down by JupyterHub Idle Culler

Open tylergraff opened this issue 1 year ago • 0 comments

Context

Named servers are not being shut down by the JupyterHub Idle Culler, regardless of settings passed in through the nebari config.

I traced this issue to jhsingle_native_proxy default behavior of reporting "fake" server activity to JupyterHub to prevent its servers from being shut down by the JupyterHub idle culler. Passing the --no-force-alive flag to jhsingle_native_proxy disables this "fake" activity reporting, and allows the idle culler to operate as expected.

Value and/or benefit

Implementing this change will allow unused/idle servers spawned via jhsingle_native_proxy to be culled (depending on idle culler configuration), which will save compute resources.

This behavior can be shut off by utilizing the following override in the nebari config:

jupyterhub:
  overrides:
    cull:
      removeNamedServers: false

Anything else?

No response

tylergraff avatar Feb 27 '24 19:02 tylergraff