forked from mtusi2026/mtusi2026lab6
17 lines
777 B
Plaintext
17 lines
777 B
Plaintext
PostgreSQL unavailable (local, 2026-11-04)
|
|
===========================================
|
|
$ docker compose --env-file .env stop postgres
|
|
Container mtusi-messenger-lab6-postgres-1 Stopped
|
|
$ load during outage: bootstrap could not get a ready API through the LB
|
|
(readiness 503; HAProxy removed the DB-dependent replicas)
|
|
$ sum(rate(haproxy_frontend_http_responses_total{proxy="http_front",code=~"5.."}[1m]))
|
|
{"value":"0.017931433566648815"}
|
|
$ curl /health/ready
|
|
503
|
|
$ docker compose --env-file .env start postgres
|
|
$ make test after restore
|
|
PASS: lab6 public API scenario
|
|
Result: DB outage is visible as edge 5xx/readiness loss; after PostgreSQL
|
|
returns, the public smoke passes. No accepted upload is lost (queue/relay
|
|
evidence from the worker scenario remains zero-loss).
|