This commit is contained in:
Vladislav Kunetskiy
2026-11-05 20:33:31 +03:00
parent edc2a405ee
commit b303db2d62
194 changed files with 10047 additions and 3831 deletions
+18
View File
@@ -0,0 +1,18 @@
Worker stop scenario (local, 2026-11-04)
==========================================
$ ./scripts/stop-worker.sh
Container mtusi-messenger-lab6-worker-1 Stopped
$ python3 scripts/lab6_load.py --rate 1 --duration 3 --upload-ratio 1 --deadline 3
(three upload requests were accepted as 202; wait_ready timed out because no worker)
$ max(messenger_queue_oldest_job_age_seconds) after 20s
{"value":"15.218417"} (seconds)
$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"})
{"value":"3"}
$ ./scripts/start-worker.sh
Container mtusi-messenger-lab6-worker-1 Healthy
$ max(messenger_queue_oldest_job_age_seconds) after drain
{"value":"0"}
$ max(rabbitmq_queue_messages_ready{queue="attachment.process.v1"}) after drain
{"value":"0"}
Business result: accepted jobs were not lost; worker drain made them ready.
Logs: `job claimed`/`attachment ready` include trace_id; job_id is redacted; bodies and filenames are absent.