From be8e9d52aa963a79aa370a2a98938f0ecca6b40f Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 3 Nov 2022 15:51:47 +0200 Subject: [PATCH] [GitHub Actions] Improve scaling per pod. --- scripts/calculate-nodes.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/calculate-nodes.groovy b/scripts/calculate-nodes.groovy index b2e8074f..863de45d 100644 --- a/scripts/calculate-nodes.groovy +++ b/scripts/calculate-nodes.groovy @@ -140,8 +140,8 @@ void usageExit(String message = null) { ''' System.exit(1) } -Integer requiredRam -Integer requiredCpu +Integer requiredRam = 0 +Integer requiredCpu = 0 int currentNodes = 0 int maxNodes = -1 int minNodes = -1 @@ -151,7 +151,7 @@ String podFile int ramUsed = 0 int cpuUsed = 0 int additionalNodes = 0 -int requiredPods = 1 +int requiredPods = 0 int podsPerJob = 1 double ramPerPod = 1.0 double cpuPerPod = 1.0