From 3c814531210c85237d82324095c8a24c49f95653 Mon Sep 17 00:00:00 2001 From: Thomas Stokes Date: Thu, 21 Mar 2024 13:31:49 +0100 Subject: [PATCH] b5979: Reduce reverse proxy healthcheck unhealthy cache time. --- .../files/var/www/cgi-bin/reverseProxyHealthcheck.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/configuration/environments_scripts/reverse_proxy/files/var/www/cgi-bin/reverseProxyHealthcheck.sh b/configuration/environments_scripts/reverse_proxy/files/var/www/cgi-bin/reverseProxyHealthcheck.sh index 0c8a3a8f1f0..0933579b944 100755 --- a/configuration/environments_scripts/reverse_proxy/files/var/www/cgi-bin/reverseProxyHealthcheck.sh +++ b/configuration/environments_scripts/reverse_proxy/files/var/www/cgi-bin/reverseProxyHealthcheck.sh @@ -105,6 +105,7 @@ then else status "503 Not in the same az" outputMessage "Unhealthy: Not in the same az as the archive and the value cached is unhealthy." + rm ${LAST_TARGET_GROUP_HEALTHCHECK_RESULT_FILENAME} # This ensures the unhealthy cache is shorter. We want the switchover to be quick, but if it stays healthy a little too long, that is not problematic. fi fi fi