[Watchdog] Minor threshold changes

master
andryyy 2019-07-22 21:07:16 +02:00
parent db0719f068
commit 8c3a7e52b4
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ clamd_checks() {
dovecot_checks() {
err_count=0
diff_c=0
THRESHOLD=15
THRESHOLD=12
# Reduce error count by 2 after restarting an unhealthy container
trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
while [ ${err_count} -lt ${THRESHOLD} ]; do
@ -502,7 +502,7 @@ Empty
olefy_checks() {
err_count=0
diff_c=0
THRESHOLD=20
THRESHOLD=5
# Reduce error count by 2 after restarting an unhealthy container
trap "[ ${err_count} -gt 1 ] && err_count=$(( ${err_count} - 2 ))" USR1
while [ ${err_count} -lt ${THRESHOLD} ]; do