From 03081915ae310d7d7a484162b56f0d2609caea9d Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Tue, 23 Jul 2024 17:48:47 +0300 Subject: [PATCH 1/2] Update machine and resources for small binder opensci --- config/clusters/opensci/small-binder.values.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/clusters/opensci/small-binder.values.yaml b/config/clusters/opensci/small-binder.values.yaml index 418c55dea..d45b1908d 100644 --- a/config/clusters/opensci/small-binder.values.yaml +++ b/config/clusters/opensci/small-binder.values.yaml @@ -18,14 +18,14 @@ jupyterhub: enabled: false singleuser: nodeSelector: - # Schedule users on the smallest instance - # https://github.com/2i2c-org/infrastructure/issues/4241 - node.kubernetes.io/instance-type: r5.xlarge + # Temporary bigger machine and resources for https://github.com/2i2c-org/infrastructure/issues/4479 + node.kubernetes.io/instance-type: r5.4xlarge cpu: - limit: 2 + guarantee: 1 + limit: 4 memory: - limit: 4G - guarantee: 2G + limit: 8G + guarantee: 8G storage: type: none extraVolumeMounts: [] From 46d499974f96e26e7604b8c8fe090c0ff38143b9 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Tue, 30 Jul 2024 11:34:16 +0300 Subject: [PATCH 2/2] Increase server's idle cull interval to 4h for the event --- config/clusters/opensci/small-binder.values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/clusters/opensci/small-binder.values.yaml b/config/clusters/opensci/small-binder.values.yaml index d45b1908d..d5a0efca4 100644 --- a/config/clusters/opensci/small-binder.values.yaml +++ b/config/clusters/opensci/small-binder.values.yaml @@ -16,6 +16,12 @@ jupyterhub: homepage: templateVars: enabled: false + cull: + every: 300 + # Cull after 4h of inactivity + timeout: 14400 + # No pods over 12h long + maxAge: 43200 singleuser: nodeSelector: # Temporary bigger machine and resources for https://github.com/2i2c-org/infrastructure/issues/4479