Skip to content

Commit

Permalink
feat: Increase resources for Jupyter sessions
Browse files Browse the repository at this point in the history
In our environments, the resources were too low and the IPython kernel
crashed a few times.

This is just a temporary fix until resources are properly configurable:
#1158
  • Loading branch information
MoritzWeber0 committed Nov 2, 2023
1 parent 7af54dd commit eddccd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/capellacollab/sessions/operators/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ def _create_deployment(

resources = (
client.V1ResourceRequirements(
limits={"cpu": "1", "memory": "1Gi"},
requests={"cpu": "0.4", "memory": "200Mi"},
limits={"cpu": "2", "memory": "3Gi"},
requests={"cpu": "1", "memory": "500Mi"},
)
if limits == "low"
else client.V1ResourceRequirements(
Expand Down

0 comments on commit eddccd8

Please sign in to comment.