# balancing: balancing, shared sessions/data/files, X-Instance-Id # date: 2026-10-21 21:08:50, commit: 2dbed80 + uncommitted changes # command: python.exe student-tests/test_balancing.py # exit code: 0, 1.9 s 20 x GET /users/me with one token -> replicas: {'6128eb268c44': 10, '11a93acecaca': 10} PASS: one session works on every replica, no second login (sessions are shared in Redis) message written by 11a93acecaca; read back by ['11a93acecaca', '6128eb268c44'] PASS: a message written via one replica is read right away via another (shared PostgreSQL) logout on 6128eb268c44; old token then rejected by ['11a93acecaca', '6128eb268c44'] PASS: logout on one replica revokes the session on all of them first POST on 6128eb268c44 -> 201 296cb1bf-8c1c-46f2-942a-4865d1b7d6af; same key on 11a93acecaca -> 201 296cb1bf-8c1c-46f2-942a-4865d1b7d6af PASS: Idempotency-Key is shared: a retry through another replica returns the same message file uploaded via 6128eb268c44; downloaded byte for byte via ['11a93acecaca', '6128eb268c44'] PASS: a file uploaded through one replica is downloaded through another (shared S3, nothing local) statuses [200, 200, 201, 400, 401, 404, 409]: every answer has X-Instance-Id of a running container ['11a93acecaca', '6128eb268c44']; api containers: ['11a93acecaca', '6128eb268c44'] PASS: X-Instance-Id is in every response and points to a real container 6 passed, 0 failed