From 1db97b51d3d7bec1459cd6d8e9f31ba581ebab79 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Thu, 18 Mar 2021 22:41:44 +0300 Subject: claiming: increase curl connect-timeout and decrease number of claim attempts (#10800) --- claim/netdata-claim.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'claim/netdata-claim.sh.in') diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index b2c5242898..e0fd85a1e8 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -282,7 +282,7 @@ fi if [ "${URLTOOL}" = "curl" ] ; then - URLCOMMAND="curl --connect-timeout 5 --retry 0 -s -i -X PUT -d \"@${CLAIMING_DIR}/tmpin.txt\"" + URLCOMMAND="curl --connect-timeout 30 --retry 0 -s -i -X PUT -d \"@${CLAIMING_DIR}/tmpin.txt\"" if [ "${NOPROXY}" = "yes" ] ; then URLCOMMAND="${URLCOMMAND} -x \"\"" elif [ -n "${PROXY}" ] ; then @@ -341,7 +341,7 @@ attempt_contact () { return 0 } -for i in {1..5} +for i in {1..3} do if attempt_contact ; then echo "Connection attempt $i successful" -- cgit v1.2.3