Lab 3: HAProxy + 2 replicas, idempotency, graceful shutdown, track 1

This commit is contained in:
2026-11-16 21:48:11 +03:00
parent 0ab3a341aa
commit a3ac20d017
107 changed files with 24088 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
# 2026-11-03T09:57:03Z empty volume pgdata -> one-shot migrate service (before replicas)
$ docker compose logs migrate
{"ts": "2026-11-03T09:50:54Z", "level": "info", "logger": "messenger.db", "msg": "migration applied", "version": "0001_init"}
{"ts": "2026-11-03T09:50:54Z", "level": "info", "logger": "messenger.db", "msg": "migration applied", "version": "0002_cache_invalidation_outbox"}
{"ts": "2026-11-03T09:50:54Z", "level": "info", "logger": "messenger.db", "msg": "migration applied", "version": "0003_idempotency_keys"}
{"applied": ["0001_init", "0002_cache_invalidation_outbox", "0003_idempotency_keys"]}
{"applied": []}
{"applied": []}
$ api replicas: schema check
{"ts": "2026-11-03T09:55:49Z", "level": "info", "logger": "messenger.http", "msg": "schema compatible; replica ready", "instance_id": "api-730666b6"}
{"ts": "2026-11-03T09:56:01Z", "level": "info", "logger": "messenger.http", "msg": "schema compatible; replica ready", "instance_id": "api-87d10eab"}