From eddccd8d2986a91760d9b58586653987e9285aa4 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Thu, 2 Nov 2023 15:49:15 +0100 Subject: [PATCH] feat: Increase resources for Jupyter sessions 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: https://github.com/DSD-DBS/capella-collab-manager/issues/1158 --- backend/capellacollab/sessions/operators/k8s.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/capellacollab/sessions/operators/k8s.py b/backend/capellacollab/sessions/operators/k8s.py index 8f163bb79..06f878638 100644 --- a/backend/capellacollab/sessions/operators/k8s.py +++ b/backend/capellacollab/sessions/operators/k8s.py @@ -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(