Change the syncHttp timeout to 2h max, comment out the misbehaving proxy09

This commit is contained in:
Adam Saleh 2021-07-22 20:01:03 +02:00
parent 721e3e9864
commit be40017d00

View file

@ -27,7 +27,7 @@ function syncHttpLogs {
echo "${HOST}: Getting ${RSYNC_OUTPUT} and saving to ${DEST}"
fi
for i in 2 1 0; do
timeout 12h /usr/bin/rsync $RSYNC_FLAGS $HOST::log/httpd/$f ./$DEST &> /dev/null && break
timeout 2h /usr/bin/rsync $RSYNC_FLAGS $HOST::log/httpd/$f ./$DEST &> /dev/null && break
if [[ $? -ne 0 ]]; then
echo "rsync from $HOST for file $f failed, will repeat $i times"
fi
@ -43,7 +43,7 @@ syncHttpLogs proxy04.vpn.fedoraproject.org
syncHttpLogs proxy05.vpn.fedoraproject.org
syncHttpLogs proxy06.vpn.fedoraproject.org
# syncHttpLogs proxy08.vpn.fedoraproject.org
syncHttpLogs proxy09.vpn.fedoraproject.org
# syncHttpLogs proxy09.vpn.fedoraproject.org # proxy09 is acting up
syncHttpLogs proxy10.iad2.fedoraproject.org
syncHttpLogs proxy11.vpn.fedoraproject.org
syncHttpLogs proxy12.vpn.fedoraproject.org