forked from mtusi2026/mtusi2026lab6
lab6
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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).
|
||||
Reference in New Issue
Block a user