Alexey Bodanyuk
2026-10-20 03:06:32 +03:00
parent d0dedee773
commit 49482529ec
3 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -10,9 +10,11 @@
# every 1 s; 2 failures -> DOWN, 2 successes -> UP. Passive errors do not decide anything on
# their own, and there are NO backup/fallback servers without checks: a replica that answers
# /health/live but not /health/ready never gets business traffic.
# Worst case detection of a failed replica:
# inter 1 s + fall 2 x (check timeout 1 s) ~= 3 s (frozen process);
# refused connection / 503 ready: inter 1 s + fastinter 0.5 s ~= 1.5 s.
# Worst case detection of a failed replica (a check answered at once counts at once, a check
# that hangs counts only after `timeout check`):
# fast explicit 503 (drain after SIGTERM): inter 1 s + fastinter 0.5 s ~= 1.5 s;
# slow ready (PostgreSQL/Valkey unreachable: the answer takes ~1 s = timeout check)
# or frozen process: inter 1 s + 1 s + fastinter 0.5 s + 1 s ~= 3.5 s.
# Requests that could not even be SENT (connection refused/reset before the request)
# are retried on another replica (retry-on conn-failure + redispatch) - safe for POST,
# because the API has not seen them. Nothing that may have reached the API is retried by