From e74afc1886c077013bd0f4429932f46f13dfbd07 Mon Sep 17 00:00:00 2001 From: Guillaume EB Date: Wed, 19 Oct 2022 09:13:40 +0400 Subject: [PATCH 1/2] Document elastic cluster scaling down --- EGI.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/EGI.md b/EGI.md index 8083095..5bdfe64 100644 --- a/EGI.md +++ b/EGI.md @@ -365,6 +365,20 @@ Then, you'll need to restart clues2 service: service cluesd restart ``` +#### Why cluster is not scaling down? + +CLUES will only delete VMs that are _"idle"_: i.e. with __no running pods__. + +You can use `kubectl` commands to see which pods are running on nodes: + +```bash +sudo kubectl get nodes # get the list of nodes +kubectl describe nodes vnode-4.localdomain # shows the list of pods running on vnode-4 +``` + +Keep also in mind that if you have configured a minimum number of free nodes, +the same number of idle nodes will be maintained. + ### Daskhub without EGI Check-in auth and less limits If you don't want to go through the step of configuring EGI Check-in auth From a3b060de69aeda32338b10393cc91b3d449cce0f Mon Sep 17 00:00:00 2001 From: Guillaume Eynard-Bontemps Date: Wed, 19 Oct 2022 22:31:35 +0400 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Sebastian Luna-Valero --- EGI.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EGI.md b/EGI.md index 5bdfe64..80a7ee1 100644 --- a/EGI.md +++ b/EGI.md @@ -369,11 +369,10 @@ service cluesd restart CLUES will only delete VMs that are _"idle"_: i.e. with __no running pods__. -You can use `kubectl` commands to see which pods are running on nodes: +You can use `kubectl` commands to see which pods are running on which nodes: ```bash -sudo kubectl get nodes # get the list of nodes -kubectl describe nodes vnode-4.localdomain # shows the list of pods running on vnode-4 +sudo kubectl get pods -o wide -n daskhub ``` Keep also in mind that if you have configured a minimum number of free nodes,