From 2767dd3d7932601abdeb030355393d31c4e62a53 Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Mon, 16 Apr 2018 12:20:54 +0200 Subject: [PATCH] Autocalculate ALLOWED_NOTREADY_NODES based on NUM_NODES --- cluster/gce/config-test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/gce/config-test.sh b/cluster/gce/config-test.sh index 15d27dc9351..382a7f903b9 100755 --- a/cluster/gce/config-test.sh +++ b/cluster/gce/config-test.sh @@ -66,6 +66,10 @@ if [[ "${NODE_OS_DISTRIBUTION}" == "debian" ]]; then NODE_ACCELERATORS="" fi +# To avoid failing large tests due to some flakes in starting nodes, allow +# for a small percentage of nodes to not start during cluster startup. +ALLOWED_NOTREADY_NODES="${ALLOWED_NOTREADY_NODES:-$((NUM_NODES / 100))}" + # By default a cluster will be started with the master and nodes # on Container-optimized OS (cos, previously known as gci). If # you are updating the os image versions, update this variable.