Files
mtusi2026lab5/evidence/lab5/worker-down-demo.txt
T

37 lines
1.4 KiB
Plaintext

python3 scripts/lab5/worker_down_demo.py --base-url "http://localhost:8080"
[1] compose ps
SERVICE STATUS
api Up 50 seconds (healthy)
api Up 4 seconds (health: starting)
broker Up 53 seconds (healthy)
haproxy Up 54 seconds
postgres Up 54 seconds (healthy)
redis Up 54 seconds (healthy)
s3 Up 54 seconds (healthy)
worker Up 54 seconds (healthy)
[2] stop worker
[3] upload while worker is down (expect 202 queued)
attachment=6920d20c-b819-4d20-b922-ded8cd136467 status=queued
[4] content and thumbnail must answer 409 before ready
[5] link the queued attachment to messages
message=7b4ec662-3361-4210-b62c-da913537d21e
[6] wait for outbox publish and a message in the queue
queue={'messages': 1, 'type': 'quorum'}
[7] restart broker and API with volumes
[8] the quorum message survived the broker restart
queue={'messages': 1, 'type': 'quorum'}
[9] start worker
[10] wait ready and verify the thumbnail
ready attachment=6920d20c-b819-4d20-b922-ded8cd136467 thumbnail=256x160 sha256=a18bfc29cd931180...
[11] compose ps
SERVICE STATUS
api Up 33 seconds (healthy)
api Up 33 seconds (healthy)
broker Up 35 seconds (healthy)
haproxy Up About a minute
postgres Up About a minute (healthy)
redis Up About a minute (healthy)
s3 Up About a minute (healthy)
worker Up 2 seconds (health: starting)
PASS: worker-down durability demo