This commit is contained in:
2026-10-25 21:43:03 +03:00
parent 276dbdad8a
commit a591243d80
103 changed files with 10857 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
python student-tests/concurrency.py
time s | processing (DB) | unacked (broker) | waiting in queue
2.5 | 2 | 0 | 0
7.1 | 2 | 2 | 4
10.4 | 2 | 2 | 2
13.4 | 2 | 2 | 2
16.1 | 2 | 2 | 2
20.5 | 2 | 2 | 0
23.3 | 2 | 2 | 0
26.5 | 2 | 2 | 0
29.4 | 0 | 0 | 0
peak: 2 jobs in processing, 2 unacknowledged messages, up to 4 waiting in the queue; all 6 ready after 29.4 s
PASS: at most WORKER_CONCURRENCY=2 jobs run at once and the broker gives the worker at most prefetch=2 messages; the rest wait in the durable queue