diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-03-18 22:41:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 22:41:44 +0300 |
commit | 1db97b51d3d7bec1459cd6d8e9f31ba581ebab79 (patch) | |
tree | 0c4ff02b13e01365274decb28844e9b6ae11dcfa | |
parent | d32b9f594c6a5aceb4a45a38e662ddb06e8e2464 (diff) |
claiming: increase curl connect-timeout and decrease number of claim attempts (#10800)
-rwxr-xr-x | claim/netdata-claim.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
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" |