claiming: increase curl connect-timeout and decrease number of claim attempts (#10800)
Ilya Mashchenko committed
Mar 18, 2021 at 22:41 UTC
1db97b51d3d7bec1459cd6d8e9f31ba581ebab79
1 file changed
+2
-2
claim/netdata-claim.sh.in
+2
-2
@@ -282,7 +282,7 @@ fi
282
283
284
if [ "${URLTOOL}" = "curl" ] ; then
285
- URLCOMMAND="curl --connect-timeout 5 --retry 0 -s -i -X PUT -d \"@${CLAIMING_DIR}/tmpin.txt\""
285
+ URLCOMMAND="curl --connect-timeout 30 --retry 0 -s -i -X PUT -d \"@${CLAIMING_DIR}/tmpin.txt\""
286
if [ "${NOPROXY}" = "yes" ] ; then
287
URLCOMMAND="${URLCOMMAND} -x \"\""
288
elif [ -n "${PROXY}" ] ; then
@@ -341,7 +341,7 @@ attempt_contact () {
341
return 0
342
}
343
344
-for i in {1..5}
344
+for i in {1..3}
345
do
346
if attempt_contact ; then
347
echo "Connection attempt $i successful"