Skip to content

Commit

Permalink
Adjust idle-culler settings
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusdc committed Mar 1, 2022
1 parent d107613 commit 3b55f1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,30 @@
# Extra config available at:
# https://zero-to-jupyterhub.readthedocs.io/en/1.x/jupyterhub/customizing/user-management.html#culling-user-pods

# Shut down the server after N seconds with no kernels or terminals running and no activity.
# c.NotebookApp.shutdown_no_activity_timeout = 400
# Timeout (in seconds) in which a terminal has been inactive and ready to
# be culled.
c.TerminalManager.cull_inactive_timeout = 10 * 60

c.TerminalManager.cull_inactive_timeout = 120
c.TerminalManager.cull_interval = 60
# The interval (in seconds) on which to check for terminals exceeding the
# inactive timeout value.
c.TerminalManager.cull_interval = 1 * 60

# cull_idle_timeout: timeout (in seconds) after which an idle kernel is
# considered ready to be culled
c.MappingKernelManager.cull_idle_timeout = 3 * 60
c.MappingKernelManager.cull_idle_timeout = 10 * 60

# cull_interval: the interval (in seconds) on which to check for idle
# kernels exceeding the cull timeout value
c.MappingKernelManager.cull_interval = 90
c.MappingKernelManager.cull_interval = 1 * 60

# cull_connected: whether to consider culling kernels which have one
# or more connections
c.MappingKernelManager.cull_connected = True

# cull_busy: whether to consider culling kernels which are currently
# busy running some code
c.MappingKernelManager.cull_busy = False
c.MappingKernelManager.cull_busy = False

# Shut down the server after N seconds with no kernels or terminals
# running and no activity.
c.ServerApp.shutdown_no_activity_timeout = 10 * 60
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ cull:
enabled: true
users: false # --cull-users
removeNamedServers: false # --remove-named-servers
timeout: 300 # --timeout 3600
every: 100 # --cull-every 600
timeout: 1800 # --timeout 3600
every: 600 # --cull-every 600
concurrency: 10 # --concurrency
maxAge: 0 # --max-age

0 comments on commit 3b55f1e

Please sign in to comment.