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 cfd5723
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 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
limit: 2
guarantee: 1.2
limit: 1.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 cfd5723

Please sign in to comment.