forked from mtusi2026/mtusi2026lab3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user