Skip to content

Commit

Permalink
Merge pull request 2i2c-org#3423 from consideRatio/pr/kernel-cull-server
Browse files Browse the repository at this point in the history
Configure jupyter_server instead of notebook when configuring kernel culling
  • Loading branch information
consideRatio authored Nov 15, 2023
2 parents 87ff189 + 718dcc1 commit 49e8635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/clusters/m2lines/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ basehub:
- jbusecke
singleuser:
extraFiles:
jupyter_notebook_config.json:
jupyter_server_config.json:
data:
MappingKernelManager:
# Cull idle kernels after 24h (24 * 60 * 60), to see if that
Expand Down
6 changes: 3 additions & 3 deletions docs/sre-guide/manage-k8s/culling.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ More culling options and information about them can be found in the [idle-culler
## Kernel culling configuration
The kernel culling options are configured through the `jupyter_notebook_config.json` file, located at `/usr/local/etc/jupyter/jupyter_notebook_config.json` in the user pod. This file is injected into the pod’s container on startup, by defining its location and content under [`singleuser.extraFiles`](https://zero-to-jupyterhub.readthedocs.io/en/latest/resources/reference.html#singleuser-extrafiles) dictionary.
The kernel culling options are configured through the `jupyter_server_config.json` file, located at `/usr/local/etc/jupyter/jupyter_server_config.json` in the user pod. This file is injected into the pod’s container on startup, by defining its location and content under [`singleuser.extraFiles`](https://zero-to-jupyterhub.readthedocs.io/en/latest/resources/reference.html#singleuser-extrafiles) dictionary.

You can modify the current culling options values, under `singleuser.extraFiles.data`, in the `helm-charts/basehub/values.yaml` file.

Expand All @@ -34,8 +34,8 @@ Example:
```yaml
singleuser:
extraFiles:
jupyter_notebook_config.json:
mountPath: /usr/local/etc/jupyter/jupyter_notebook_config.json
jupyter_server_config.json:
mountPath: /usr/local/etc/jupyter/jupyter_server_config.json
data:
MappingKernelManager:
# shutdown kernels after no activity
Expand Down

0 comments on commit 49e8635

Please sign in to comment.