python student-tests/attachment_failover.py
uploaded 111817 bytes, sha256 99ea7533c441f79c..., served by api replica ccaea065f01a
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       81410605dad3  running (healthy)    2026-10-22T14:19:42.319
api       ccaea065f01a  running (healthy)    2026-10-22T14:19:42.001
lb        57f9ebc04460  running (healthy)    2026-10-22T14:06:53.419
migrate   806265078f47  exited               2026-10-22T14:19:39.391
postgres  b4b2a3cf061f  running (healthy)    2026-10-22T14:06:06.682
s3        cf488bd53603  running (healthy)    2026-10-22T14:07:23.226
s3-init   37fe53772dcb  exited               2026-10-22T14:19:39.389
valkey    d4851200ad55  running (healthy)    2026-10-22T14:06:06.574
stopped ccaea065f01a (docker stop); HAProxy: api1 UP, api2 DOWN
downloaded 4 times through ['81410605dad3']: same SHA-256 as uploaded
restored ccaea065f01a; HAProxy: api1 UP, api2 UP
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       81410605dad3  running (healthy)    2026-10-22T14:19:42.319
api       ccaea065f01a  running (healthy)    2026-10-22T14:20:22.672
lb        57f9ebc04460  running (healthy)    2026-10-22T14:06:53.419
migrate   806265078f47  exited               2026-10-22T14:19:39.391
postgres  b4b2a3cf061f  running (healthy)    2026-10-22T14:06:06.682
s3        cf488bd53603  running (healthy)    2026-10-22T14:07:23.226
s3-init   37fe53772dcb  exited               2026-10-22T14:19:39.389
valkey    d4851200ad55  running (healthy)    2026-10-22T14:06:06.574
PASS: the replica that accepted the upload was stopped; another replica returned the same bytes (the original lives in S3, not on the replica)
