From 44360e401bdddc05a2a0421468a1ebf312023a2b Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Fri, 29 May 2015 09:44:14 +0200 Subject: [PATCH] Increase timeout for verifying clusters --- cluster/validate-cluster.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index b27b19ae8c8..b844b29dd4e 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -45,7 +45,8 @@ while true; do if (( ${found} == "${NUM_MINIONS}" )) && (( ${ready} == "${NUM_MINIONS}")); then break else - if (( attempt > 20 )); then + # Set the timeout to ~10minutes (40 x 15 second) to avoid timeouts for 100-node clusters. + if (( attempt > 40 )); then echo -e "${color_red}Detected ${ready} ready nodes, found ${found} nodes out of expected ${NUM_MINIONS}. Your cluster may not be working.${color_norm}" cat -n "${MINIONS_FILE}" exit 2