Sfoglia il codice sorgente

Enlarge time offset in healthcheck

Vadim Surkov 5 anni fa
parent
commit
52f17e42fd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      healthcheck.sh

+ 1 - 1
healthcheck.sh

@@ -24,7 +24,7 @@ else
     sorted=($(echo $(dig tasks.${SERVICE_NAME}.${APPNET} +short)|tr " " "\n"|sort -n))
     for (( i=0; i < ${#sorted[*]}; i++ ))
     do
-      [[ $(ip a | grep ${sorted[${i}]}) ]] && echo $((${i}*180+$(date +%s)+20)) > /tmp/dead
+      [[ $(ip a | grep ${sorted[${i}]}) ]] && echo $((${i}*180+$(date +%s)+60)) > /tmp/dead
 #      if [[ ${sorted[${i}]} == $(dig ${HOSTNAME}.${APPNET} +short) ]];then echo $((${i}*180+$(date +%s)+20)) > /tmp/dead;fi
     done
   fi