Skip to content

Commit

Permalink
Adjust resources to avoid OOM and residual CPU for non-computing tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 16, 2024
1 parent 99c456b commit 3e709ee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions basehub/values.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jupyterhub:
extraEnv:
JUPYTERHUB_SINGLEUSER_APP: notebook.notebookapp.NotebookApp
cpu:
guarantee: 1
guarantee: 1.2
limit: 2
memory:
guarantee: 4G
limit: 8G
guarantee: 2G
limit: 2G
storage:
type: none # user don't have persistent storage, the data will be lost after the pod is deleted
extraVolumes:
Expand Down Expand Up @@ -58,6 +58,13 @@ jupyterhub:
environment:
JUPYTERHUB_SINGLEUSER_APP: jupyter_server.serverapp.ServerApp
hub:
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "1000m"
memory: "1Gi"
db:
pvc:
storageClassName: default
Expand Down

0 comments on commit 3e709ee

Please sign in to comment.