From 28222db2e4ac9a10cf776e4a2c740d471c2b9a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Mon, 4 Dec 2023 16:38:33 -0600 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20Add=201-second=20pre-pssh=20delay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems to help with AT&T fiber router. (Actually it takes a longer delay to make a difference, like 10 seconds, but this patch makes the delay configurable.) --- prepare-labs/lib/pssh.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prepare-labs/lib/pssh.sh b/prepare-labs/lib/pssh.sh index 7497877e..7110a9fc 100644 --- a/prepare-labs/lib/pssh.sh +++ b/prepare-labs/lib/pssh.sh @@ -17,6 +17,12 @@ pssh() { echo "[parallel-ssh] $@" + # There are some routers that really struggle with the number of TCP + # connections that we open when deploying large fleets of clusters. + # We're adding a 1 second delay here, but this can be cranked up if + # necessary - or down to zero, too. + sleep ${PSSH_DELAY_PRE-1} + $(which pssh || which parallel-ssh) -h $HOSTFILE -l ubuntu \ --par ${PSSH_PARALLEL_CONNECTIONS-100} \ --timeout 300 \