Files
mtusi2026lab5/evidence/attachment-failover.txt
T
2026-10-26 19:40:34 +03:00

30 lines
2.1 KiB
Plaintext

python student-tests/attachment_failover.py
uploaded 111817 bytes -> 202 queued, sha256 99ea7533c441f79c..., served by api replica 48dc392933dc
SERVICE CONTAINER STATE STARTED AT (UTC)
api 48dc392933dc running (healthy) 2026-10-26T16:18:45.196
api c1b7e1ab5673 running (healthy) 2026-10-26T16:18:45.657
broker 9f909ed7ecea running (healthy) 2026-10-26T16:19:00.163
lb 8be67a2e86b7 running (healthy) 2026-10-26T16:15:42.154
migrate a5a9934b4d6b exited 2026-10-26T16:23:38.842
postgres d2bfd48385f1 running (healthy) 2026-10-26T16:15:17.840
s3 892c7ca290f2 running (healthy) 2026-10-26T16:15:17.826
s3-init deab1aa2b022 exited 2026-10-26T16:23:38.843
valkey 4e223cb9301e running (healthy) 2026-10-26T16:15:17.820
worker 292a36c54a41 running (healthy) 2026-10-26T16:23:41.416
stopped 48dc392933dc (docker stop) right after 202; HAProxy: api1 UP, api2 DOWN
the worker finished the job without that replica: status ready, variants ['thumbnail', 'crop', 'optimized']
downloaded 4 times through ['c1b7e1ab5673']: same SHA-256 as uploaded
restored 48dc392933dc; HAProxy: api1 UP, api2 UP
SERVICE CONTAINER STATE STARTED AT (UTC)
api 48dc392933dc running (healthy) 2026-10-26T16:24:32.726
api c1b7e1ab5673 running (healthy) 2026-10-26T16:18:45.657
broker 9f909ed7ecea running (healthy) 2026-10-26T16:19:00.163
lb 8be67a2e86b7 running (healthy) 2026-10-26T16:15:42.154
migrate a5a9934b4d6b exited 2026-10-26T16:23:38.842
postgres d2bfd48385f1 running (healthy) 2026-10-26T16:15:17.840
s3 892c7ca290f2 running (healthy) 2026-10-26T16:15:17.826
s3-init deab1aa2b022 exited 2026-10-26T16:23:38.843
valkey 4e223cb9301e running (healthy) 2026-10-26T16:15:17.820
worker 292a36c54a41 running (healthy) 2026-10-26T16:23:41.416
PASS: the replica that accepted the upload was stopped right after 202; the job still became ready and another replica returned the same bytes (the original lives in S3, not on the replica)