level 4, changed to HAProxy
This commit is contained in:
+3
-2
@@ -23,6 +23,7 @@ if [ "$count" -ne 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
name=$(docker inspect --format '{{.Name}}' "$matches")
|
||||
# Graceful: SIGTERM, then SIGKILL after 8 s; returns before the test's 10 s limit.
|
||||
docker stop --time 8 "$matches" >/dev/null
|
||||
# Graceful: SIGTERM -> 4 s drain (readiness 503, LB drops it) -> <= 3 s in-flight finish.
|
||||
# SIGKILL only after 9 s, so the hook still returns before the test's 10 s limit.
|
||||
docker stop --time 9 "$matches" >/dev/null
|
||||
echo "stopped api replica ${name#/} ($TARGET_INSTANCE_ID)"
|
||||
|
||||
Reference in New Issue
Block a user