forked from mtusi2026/mtusi2026lab7
Перенесены cmd/internal/config, compose.yaml, Dockerfile, скрипты, student-tests и evidence из mtusi-messenger (master, lab6). Skeleton lab7 (openapi/infrastructure 1.7.0, trust-matrix.md, security/THREAT_MODEL.md, infra/openbao, tests/security.py) сохранён; make test-security добавлен в Makefile.
19 lines
938 B
Plaintext
19 lines
938 B
Plaintext
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.
|