forked from mtusi2026/mtusi2026lab6
lab6: базовый коммит из lab5 (0790599)
Перенесено дерево lab5 целиком: NestJS-приложение (API + worker,
RabbitMQ, outbox, S3), Dockerfile, compose.yaml, infra/{haproxy,minio,
rabbitmq}, стендовые скрипты, scripts/lab4, scripts/lab5,
evidence/lab4, evidence/lab5 и contracts/extensions.openapi.json.
Задание lab6 оставлено своим: README, REPORT, COURSE, lab.json,
contracts/{openapi,infrastructure,jobs.schema,attachment-states,
examples,observability}, tests, compose.example.yaml, infra/otel,
.github/pull_request_template.md.
Адаптации при переносе:
- docker-проект mtusi-lab5 -> mtusi-lab6 и тег образа
mtusi-messenger:lab6 (compose.yaml, scripts/stop-one.sh, .env.example,
infra/README.md), чтобы тома и контейнеры не пересекались с lab5;
- Makefile: цели lab5 сохранены целиком (skeleton lab6 не отличается
от skeleton lab5);
- .env.example: переменные приложения и стенда lab5 + блок lab6
(OTEL_*) из skeleton.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
/mtusi-lab4-api-1 OOMKilled=false restarts=0
|
||||
/mtusi-lab4-api-2 OOMKilled=false restarts=0
|
||||
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"date": "2026-10-23T14:19:18+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "direct",
|
||||
"size_bytes": 1048576,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.474,
|
||||
"latency_ms": {
|
||||
"p50": 71.2,
|
||||
"p95": 97.4,
|
||||
"p99": 114.6
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 26410731,
|
||||
"delta_tx_bytes": 192869,
|
||||
"baseline_rss_bytes": 255631360,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255631360,
|
||||
"heap_used": 55130048,
|
||||
"external": 30839902,
|
||||
"array_buffers": 27031366
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 25,
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.direct.initiated": 25,
|
||||
"attachments.find_for_complete": 25,
|
||||
"attachments.direct.verify_bytes": 26214400,
|
||||
"attachments.decode.ms": 149.66068200027803,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.direct.completed": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 26409853,
|
||||
"delta_tx_bytes": 199121,
|
||||
"baseline_rss_bytes": 220901376,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 220901376,
|
||||
"heap_used": 49764944,
|
||||
"external": 19106520,
|
||||
"array_buffers": 15302577
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 25,
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.direct.initiated": 25,
|
||||
"attachments.find_for_complete": 25,
|
||||
"attachments.direct.verify_bytes": 26214400,
|
||||
"attachments.decode.ms": 134.77708099997835,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.direct.completed": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52820584,
|
||||
"total_delta_tx_bytes": 391990,
|
||||
"rx_bytes_per_upload": 1056412,
|
||||
"tx_bytes_per_upload": 7840,
|
||||
"max_delta_rss_bytes": 0
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.486,
|
||||
"latency_ms": {
|
||||
"p50": 67.0,
|
||||
"p95": 107.3,
|
||||
"p99": 117.3
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 26407608,
|
||||
"delta_tx_bytes": 187247,
|
||||
"baseline_rss_bytes": 255631360,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255631360,
|
||||
"heap_used": 54714120,
|
||||
"external": 29734772,
|
||||
"array_buffers": 25926248
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 25,
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.direct.initiated": 25,
|
||||
"attachments.find_for_complete": 25,
|
||||
"attachments.direct.verify_bytes": 26214400,
|
||||
"attachments.decode.ms": 129.6924299999373,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.direct.completed": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 26411452,
|
||||
"delta_tx_bytes": 197525,
|
||||
"baseline_rss_bytes": 220901376,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 220901376,
|
||||
"heap_used": 50436872,
|
||||
"external": 20154009,
|
||||
"array_buffers": 16352314
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 25,
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.direct.initiated": 25,
|
||||
"attachments.find_for_complete": 25,
|
||||
"attachments.direct.verify_bytes": 26214400,
|
||||
"attachments.decode.ms": 146.63997799990466,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.direct.completed": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52819060,
|
||||
"total_delta_tx_bytes": 384772,
|
||||
"rx_bytes_per_upload": 1056381,
|
||||
"tx_bytes_per_upload": 7695,
|
||||
"max_delta_rss_bytes": 0
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.588,
|
||||
"latency_ms": {
|
||||
"p50": 79.7,
|
||||
"p95": 122.1,
|
||||
"p99": 146.3
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 24306748,
|
||||
"delta_tx_bytes": 183976,
|
||||
"baseline_rss_bytes": 255631360,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 256024576,
|
||||
"heap_used": 55222760,
|
||||
"external": 27656537,
|
||||
"array_buffers": 23848029
|
||||
},
|
||||
"delta_rss_bytes": 393216,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 27,
|
||||
"attachments.insert_pending": 27,
|
||||
"attachments.direct.initiated": 27,
|
||||
"attachments.find_for_complete": 23,
|
||||
"attachments.direct.verify_bytes": 24117248,
|
||||
"attachments.decode.ms": 164.5750180000323,
|
||||
"attachments.mark_ready": 23,
|
||||
"attachments.direct.completed": 23
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 28515559,
|
||||
"delta_tx_bytes": 188283,
|
||||
"baseline_rss_bytes": 220901376,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 220901376,
|
||||
"heap_used": 51242112,
|
||||
"external": 23325182,
|
||||
"array_buffers": 19516705
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 23,
|
||||
"attachments.insert_pending": 23,
|
||||
"attachments.direct.initiated": 23,
|
||||
"attachments.find_for_complete": 27,
|
||||
"attachments.direct.verify_bytes": 28311552,
|
||||
"attachments.decode.ms": 181.22829800000181,
|
||||
"attachments.mark_ready": 27,
|
||||
"attachments.direct.completed": 27
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52822307,
|
||||
"total_delta_tx_bytes": 372259,
|
||||
"rx_bytes_per_upload": 1056446,
|
||||
"tx_bytes_per_upload": 7445,
|
||||
"max_delta_rss_bytes": 393216
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"date": "2026-10-23T14:19:05+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "direct",
|
||||
"size_bytes": 131072,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.225,
|
||||
"latency_ms": {
|
||||
"p50": 39.1,
|
||||
"p95": 67.1,
|
||||
"p99": 70.2
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3306246,
|
||||
"delta_tx_bytes": 183847,
|
||||
"baseline_rss_bytes": 255115264,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255115264,
|
||||
"heap_used": 52168040,
|
||||
"external": 11980507,
|
||||
"array_buffers": 8188021
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 26,
|
||||
"attachments.insert_pending": 26,
|
||||
"attachments.direct.initiated": 26,
|
||||
"attachments.find_for_complete": 24,
|
||||
"attachments.direct.verify_bytes": 3145728,
|
||||
"attachments.decode.ms": 76.04879400000209,
|
||||
"attachments.mark_ready": 24,
|
||||
"attachments.direct.completed": 24
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3572465,
|
||||
"delta_tx_bytes": 185987,
|
||||
"baseline_rss_bytes": 410796032,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 413024256,
|
||||
"heap_used": 61028552,
|
||||
"external": 11110575,
|
||||
"array_buffers": 7314315
|
||||
},
|
||||
"delta_rss_bytes": 2228224,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 24,
|
||||
"attachments.insert_pending": 24,
|
||||
"attachments.direct.initiated": 24,
|
||||
"attachments.find_for_complete": 26,
|
||||
"attachments.direct.verify_bytes": 3407872,
|
||||
"attachments.decode.ms": 95.17834699997911,
|
||||
"attachments.mark_ready": 26,
|
||||
"attachments.direct.completed": 26
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6878711,
|
||||
"total_delta_tx_bytes": 369834,
|
||||
"rx_bytes_per_upload": 137574,
|
||||
"tx_bytes_per_upload": 7397,
|
||||
"max_delta_rss_bytes": 2228224
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.237,
|
||||
"latency_ms": {
|
||||
"p50": 39.7,
|
||||
"p95": 70.8,
|
||||
"p99": 71.9
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3305361,
|
||||
"delta_tx_bytes": 182735,
|
||||
"baseline_rss_bytes": 255115264,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255115264,
|
||||
"heap_used": 52870848,
|
||||
"external": 12917408,
|
||||
"array_buffers": 8731525
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 26,
|
||||
"attachments.insert_pending": 26,
|
||||
"attachments.direct.initiated": 26,
|
||||
"attachments.find_for_complete": 24,
|
||||
"attachments.direct.verify_bytes": 3145728,
|
||||
"attachments.decode.ms": 74.47586199996294,
|
||||
"attachments.mark_ready": 24,
|
||||
"attachments.direct.completed": 24
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3572269,
|
||||
"delta_tx_bytes": 183875,
|
||||
"baseline_rss_bytes": 413024256,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 413417472,
|
||||
"heap_used": 59807944,
|
||||
"external": 10703911,
|
||||
"array_buffers": 6908083
|
||||
},
|
||||
"delta_rss_bytes": 393216,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 24,
|
||||
"attachments.insert_pending": 24,
|
||||
"attachments.direct.initiated": 24,
|
||||
"attachments.find_for_complete": 26,
|
||||
"attachments.direct.verify_bytes": 3407872,
|
||||
"attachments.decode.ms": 80.40512400015723,
|
||||
"attachments.mark_ready": 26,
|
||||
"attachments.direct.completed": 26
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6877630,
|
||||
"total_delta_tx_bytes": 366610,
|
||||
"rx_bytes_per_upload": 137553,
|
||||
"tx_bytes_per_upload": 7332,
|
||||
"max_delta_rss_bytes": 393216
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.266,
|
||||
"latency_ms": {
|
||||
"p50": 45.7,
|
||||
"p95": 73.8,
|
||||
"p99": 80.1
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3306421,
|
||||
"delta_tx_bytes": 183391,
|
||||
"baseline_rss_bytes": 255115264,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255377408,
|
||||
"heap_used": 55403296,
|
||||
"external": 12765653,
|
||||
"array_buffers": 8973582
|
||||
},
|
||||
"delta_rss_bytes": 262144,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 26,
|
||||
"attachments.insert_pending": 26,
|
||||
"attachments.direct.initiated": 26,
|
||||
"attachments.find_for_complete": 24,
|
||||
"attachments.direct.verify_bytes": 3145728,
|
||||
"attachments.decode.ms": 113.08572699979413,
|
||||
"attachments.mark_ready": 24,
|
||||
"attachments.direct.completed": 24
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3572203,
|
||||
"delta_tx_bytes": 184215,
|
||||
"baseline_rss_bytes": 413417472,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 413548544,
|
||||
"heap_used": 60296808,
|
||||
"external": 10700258,
|
||||
"array_buffers": 6904444
|
||||
},
|
||||
"delta_rss_bytes": 131072,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 24,
|
||||
"attachments.insert_pending": 24,
|
||||
"attachments.direct.initiated": 24,
|
||||
"attachments.find_for_complete": 26,
|
||||
"attachments.direct.verify_bytes": 3407872,
|
||||
"attachments.decode.ms": 102.82485899998574,
|
||||
"attachments.mark_ready": 26,
|
||||
"attachments.direct.completed": 26
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6878624,
|
||||
"total_delta_tx_bytes": 367606,
|
||||
"rx_bytes_per_upload": 137572,
|
||||
"tx_bytes_per_upload": 7352,
|
||||
"max_delta_rss_bytes": 262144
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"date": "2026-10-23T14:19:48+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "direct",
|
||||
"size_bytes": 9961472,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 3.75,
|
||||
"latency_ms": {
|
||||
"p50": 448.3,
|
||||
"p95": 674.2,
|
||||
"p99": 702.9
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 259479426,
|
||||
"delta_tx_bytes": 287642,
|
||||
"baseline_rss_bytes": 280027136,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 322101248,
|
||||
"heap_used": 54779008,
|
||||
"external": 104107482,
|
||||
"array_buffers": 100313819
|
||||
},
|
||||
"delta_rss_bytes": 42074112,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 24,
|
||||
"attachments.insert_pending": 24,
|
||||
"attachments.direct.initiated": 24,
|
||||
"attachments.find_for_complete": 26,
|
||||
"attachments.direct.verify_bytes": 258998272,
|
||||
"attachments.decode.ms": 498.32417600008193,
|
||||
"attachments.mark_ready": 26,
|
||||
"attachments.direct.completed": 26
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 239524438,
|
||||
"delta_tx_bytes": 268169,
|
||||
"baseline_rss_bytes": 243490816,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 326799360,
|
||||
"heap_used": 54201104,
|
||||
"external": 106161894,
|
||||
"array_buffers": 102364928
|
||||
},
|
||||
"delta_rss_bytes": 83308544,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 26,
|
||||
"attachments.insert_pending": 26,
|
||||
"attachments.direct.initiated": 26,
|
||||
"attachments.find_for_complete": 24,
|
||||
"attachments.direct.verify_bytes": 239075328,
|
||||
"attachments.decode.ms": 373.651800000167,
|
||||
"attachments.mark_ready": 24,
|
||||
"attachments.direct.completed": 24
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 499003864,
|
||||
"total_delta_tx_bytes": 555811,
|
||||
"rx_bytes_per_upload": 9980077,
|
||||
"tx_bytes_per_upload": 11116,
|
||||
"max_delta_rss_bytes": 83308544
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 3.749,
|
||||
"latency_ms": {
|
||||
"p50": 471.3,
|
||||
"p95": 672.0,
|
||||
"p99": 739.0
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 229545332,
|
||||
"delta_tx_bytes": 272949,
|
||||
"baseline_rss_bytes": 322101248,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 322101248,
|
||||
"heap_used": 53139240,
|
||||
"external": 120388652,
|
||||
"array_buffers": 115495375
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 27,
|
||||
"attachments.insert_pending": 27,
|
||||
"attachments.direct.initiated": 27,
|
||||
"attachments.find_for_complete": 23,
|
||||
"attachments.direct.verify_bytes": 229113856,
|
||||
"attachments.decode.ms": 295.2854530001059,
|
||||
"attachments.mark_ready": 23,
|
||||
"attachments.direct.completed": 23
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 269451762,
|
||||
"delta_tx_bytes": 274913,
|
||||
"baseline_rss_bytes": 294375424,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 360865792,
|
||||
"heap_used": 53636296,
|
||||
"external": 157544946,
|
||||
"array_buffers": 153746128
|
||||
},
|
||||
"delta_rss_bytes": 66490368,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 23,
|
||||
"attachments.insert_pending": 23,
|
||||
"attachments.direct.initiated": 23,
|
||||
"attachments.find_for_complete": 27,
|
||||
"attachments.direct.verify_bytes": 268959744,
|
||||
"attachments.decode.ms": 467.34784599993145,
|
||||
"attachments.mark_ready": 27,
|
||||
"attachments.direct.completed": 27
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 498997094,
|
||||
"total_delta_tx_bytes": 547862,
|
||||
"rx_bytes_per_upload": 9979942,
|
||||
"tx_bytes_per_upload": 10957,
|
||||
"max_delta_rss_bytes": 66490368
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 3.501,
|
||||
"latency_ms": {
|
||||
"p50": 404.2,
|
||||
"p95": 599.0,
|
||||
"p99": 605.8
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 219577054,
|
||||
"delta_tx_bytes": 272143,
|
||||
"baseline_rss_bytes": 270405632,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 290258944,
|
||||
"heap_used": 52555024,
|
||||
"external": 103954247,
|
||||
"array_buffers": 100162235
|
||||
},
|
||||
"delta_rss_bytes": 19853312,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 28,
|
||||
"attachments.insert_pending": 28,
|
||||
"attachments.direct.initiated": 28,
|
||||
"attachments.find_for_complete": 22,
|
||||
"attachments.direct.verify_bytes": 219152384,
|
||||
"attachments.decode.ms": 273.8368729999056,
|
||||
"attachments.mark_ready": 22,
|
||||
"attachments.direct.completed": 22
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 279433430,
|
||||
"delta_tx_bytes": 286105,
|
||||
"baseline_rss_bytes": 223891456,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 294211584,
|
||||
"heap_used": 50865176,
|
||||
"external": 84552392,
|
||||
"array_buffers": 80757048
|
||||
},
|
||||
"delta_rss_bytes": 70320128,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 22,
|
||||
"attachments.insert_pending": 22,
|
||||
"attachments.direct.initiated": 22,
|
||||
"attachments.find_for_complete": 28,
|
||||
"attachments.direct.verify_bytes": 278921216,
|
||||
"attachments.decode.ms": 406.8028439999907,
|
||||
"attachments.mark_ready": 28,
|
||||
"attachments.direct.completed": 28
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 499010484,
|
||||
"total_delta_tx_bytes": 558248,
|
||||
"rx_bytes_per_upload": 9980210,
|
||||
"tx_bytes_per_upload": 11165,
|
||||
"max_delta_rss_bytes": 70320128
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
{
|
||||
"date": "2026-10-23T14:23:13+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "direct",
|
||||
"size_bytes": 10485760,
|
||||
"concurrency": 32,
|
||||
"uploads_per_worker": 2,
|
||||
"repeat": 3,
|
||||
"users": 32,
|
||||
"image": "worst-40mp-rgba16-adam7.png"
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 48,
|
||||
"failed": 16,
|
||||
"outcomes": {
|
||||
"ok": 48,
|
||||
"complete:429": 16
|
||||
},
|
||||
"duration_s": 25.881,
|
||||
"latency_ms": {
|
||||
"p50": 11067.1,
|
||||
"p95": 13423.0,
|
||||
"p99": 14220.4
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 168217561,
|
||||
"delta_tx_bytes": 384114,
|
||||
"baseline_rss_bytes": 428978176,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 823418880,
|
||||
"heap_used": 52305208,
|
||||
"external": 243338213,
|
||||
"array_buffers": 239547869
|
||||
},
|
||||
"delta_rss_bytes": 394440704,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 48,
|
||||
"attachments.insert_pending": 48,
|
||||
"attachments.direct.initiated": 48,
|
||||
"attachments.find_for_complete": 16,
|
||||
"attachments.direct.verify_bytes": 167772160,
|
||||
"attachments.decode.ms": 13205.84250300005,
|
||||
"attachments.mark_ready": 16,
|
||||
"attachments.direct.completed": 16
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 336236648,
|
||||
"delta_tx_bytes": 458338,
|
||||
"baseline_rss_bytes": 288284672,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 803422208,
|
||||
"heap_used": 51748952,
|
||||
"external": 236179385,
|
||||
"array_buffers": 232389041
|
||||
},
|
||||
"delta_rss_bytes": 515137536,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 16,
|
||||
"attachments.insert_pending": 16,
|
||||
"attachments.direct.initiated": 16,
|
||||
"attachments.find_for_complete": 48,
|
||||
"attachments.direct.verify_bytes": 335544320,
|
||||
"attachments.decode.ms": 24842.089320000494,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.direct.completed": 32
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 504454209,
|
||||
"total_delta_tx_bytes": 842452,
|
||||
"rx_bytes_per_upload": 7882097,
|
||||
"tx_bytes_per_upload": 13163,
|
||||
"max_delta_rss_bytes": 515137536
|
||||
},
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 60,
|
||||
"failed": 4,
|
||||
"outcomes": {
|
||||
"ok": 60,
|
||||
"complete:429": 4
|
||||
},
|
||||
"duration_s": 26.523,
|
||||
"latency_ms": {
|
||||
"p50": 11841.6,
|
||||
"p95": 13541.3,
|
||||
"p99": 14293.7
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 294214487,
|
||||
"delta_tx_bytes": 425744,
|
||||
"baseline_rss_bytes": 470261760,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 828153856,
|
||||
"heap_used": 51846456,
|
||||
"external": 242086934,
|
||||
"array_buffers": 238296517
|
||||
},
|
||||
"delta_rss_bytes": 357892096,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 36,
|
||||
"attachments.insert_pending": 36,
|
||||
"attachments.direct.initiated": 36,
|
||||
"attachments.find_for_complete": 28,
|
||||
"attachments.direct.verify_bytes": 293601280,
|
||||
"attachments.decode.ms": 22602.63425100036,
|
||||
"attachments.mark_ready": 28,
|
||||
"attachments.claim_expired": 1,
|
||||
"attachments.direct.completed": 28
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 336212832,
|
||||
"delta_tx_bytes": 461394,
|
||||
"baseline_rss_bytes": 429502464,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 814202880,
|
||||
"heap_used": 51503296,
|
||||
"external": 256575006,
|
||||
"array_buffers": 212949888
|
||||
},
|
||||
"delta_rss_bytes": 384700416,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 28,
|
||||
"attachments.insert_pending": 28,
|
||||
"attachments.direct.initiated": 28,
|
||||
"attachments.find_for_complete": 36,
|
||||
"attachments.direct.verify_bytes": 335544320,
|
||||
"attachments.decode.ms": 25502.105729999603,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.direct.completed": 32,
|
||||
"attachments.claim_expired": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 630427319,
|
||||
"total_delta_tx_bytes": 887138,
|
||||
"rx_bytes_per_upload": 9850427,
|
||||
"tx_bytes_per_upload": 13862,
|
||||
"max_delta_rss_bytes": 384700416
|
||||
},
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 59,
|
||||
"failed": 5,
|
||||
"outcomes": {
|
||||
"complete:429": 5,
|
||||
"ok": 59
|
||||
},
|
||||
"duration_s": 26.673,
|
||||
"latency_ms": {
|
||||
"p50": 10563.3,
|
||||
"p95": 13343.1,
|
||||
"p99": 14265.7
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 283773903,
|
||||
"delta_tx_bytes": 418163,
|
||||
"baseline_rss_bytes": 474800128,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 829358080,
|
||||
"heap_used": 51810024,
|
||||
"external": 242621863,
|
||||
"array_buffers": 228344296
|
||||
},
|
||||
"delta_rss_bytes": 354557952,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 37,
|
||||
"attachments.insert_pending": 37,
|
||||
"attachments.direct.initiated": 37,
|
||||
"attachments.find_for_complete": 27,
|
||||
"attachments.direct.verify_bytes": 283115520,
|
||||
"attachments.decode.ms": 22160.10410899995,
|
||||
"attachments.mark_ready": 27,
|
||||
"attachments.direct.completed": 27
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 336214318,
|
||||
"delta_tx_bytes": 426666,
|
||||
"baseline_rss_bytes": 461180928,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 814313472,
|
||||
"heap_used": 54614560,
|
||||
"external": 256831606,
|
||||
"array_buffers": 229984560
|
||||
},
|
||||
"delta_rss_bytes": 353132544,
|
||||
"counters": {
|
||||
"attachments.count_pending_direct": 27,
|
||||
"attachments.insert_pending": 27,
|
||||
"attachments.direct.initiated": 27,
|
||||
"attachments.find_for_complete": 37,
|
||||
"attachments.direct.verify_bytes": 335544320,
|
||||
"attachments.decode.ms": 25823.93422999978,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.direct.completed": 32
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 619988221,
|
||||
"total_delta_tx_bytes": 844829,
|
||||
"rx_bytes_per_upload": 9687316,
|
||||
"tx_bytes_per_upload": 13200,
|
||||
"max_delta_rss_bytes": 354557952
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
{
|
||||
"date": "2026-10-23T14:19:11+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "proxy",
|
||||
"size_bytes": 1048576,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.402,
|
||||
"latency_ms": {
|
||||
"p50": 48.4,
|
||||
"p95": 84.1,
|
||||
"p99": 92.3
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 26376487,
|
||||
"delta_tx_bytes": 26404723,
|
||||
"baseline_rss_bytes": 255217664,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255610880,
|
||||
"heap_used": 52221216,
|
||||
"external": 23026820,
|
||||
"array_buffers": 19216043
|
||||
},
|
||||
"delta_rss_bytes": 393216,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 156.9926100000739,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 26386314,
|
||||
"delta_tx_bytes": 26402341,
|
||||
"baseline_rss_bytes": 413614080,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 413876224,
|
||||
"heap_used": 55746224,
|
||||
"external": 28951897,
|
||||
"array_buffers": 25131678
|
||||
},
|
||||
"delta_rss_bytes": 262144,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 162.94164999981876,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52762801,
|
||||
"total_delta_tx_bytes": 52807064,
|
||||
"rx_bytes_per_upload": 1055256,
|
||||
"tx_bytes_per_upload": 1056141,
|
||||
"max_delta_rss_bytes": 393216
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.38,
|
||||
"latency_ms": {
|
||||
"p50": 50.7,
|
||||
"p95": 82.2,
|
||||
"p99": 88.5
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 26388819,
|
||||
"delta_tx_bytes": 26402419,
|
||||
"baseline_rss_bytes": 255610880,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255741952,
|
||||
"heap_used": 53542032,
|
||||
"external": 30837329,
|
||||
"array_buffers": 27022020
|
||||
},
|
||||
"delta_rss_bytes": 131072,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 149.34638900024584,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 26377403,
|
||||
"delta_tx_bytes": 26400247,
|
||||
"baseline_rss_bytes": 220905472,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 221036544,
|
||||
"heap_used": 51357984,
|
||||
"external": 22079805,
|
||||
"array_buffers": 18271239
|
||||
},
|
||||
"delta_rss_bytes": 131072,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 137.65105199965183,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52766222,
|
||||
"total_delta_tx_bytes": 52802666,
|
||||
"rx_bytes_per_upload": 1055324,
|
||||
"tx_bytes_per_upload": 1056053,
|
||||
"max_delta_rss_bytes": 131072
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.385,
|
||||
"latency_ms": {
|
||||
"p50": 49.7,
|
||||
"p95": 73.2,
|
||||
"p99": 80.6
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 26383716,
|
||||
"delta_tx_bytes": 26401715,
|
||||
"baseline_rss_bytes": 255741952,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 255873024,
|
||||
"heap_used": 52957000,
|
||||
"external": 26930642,
|
||||
"array_buffers": 23117596
|
||||
},
|
||||
"delta_rss_bytes": 131072,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 139.30256199993892,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 26386387,
|
||||
"delta_tx_bytes": 26402657,
|
||||
"baseline_rss_bytes": 221036544,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 221036544,
|
||||
"heap_used": 51459840,
|
||||
"external": 22079805,
|
||||
"array_buffers": 16097979
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 26214400,
|
||||
"attachments.decode.ms": 120.35195299994666,
|
||||
"attachments.proxy.bytes_to_s3": 26214400,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 52770103,
|
||||
"total_delta_tx_bytes": 52804372,
|
||||
"rx_bytes_per_upload": 1055402,
|
||||
"tx_bytes_per_upload": 1056087,
|
||||
"max_delta_rss_bytes": 131072
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
{
|
||||
"date": "2026-10-23T14:18:59+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "proxy",
|
||||
"size_bytes": 131072,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.169,
|
||||
"latency_ms": {
|
||||
"p50": 26.1,
|
||||
"p95": 46.2,
|
||||
"p99": 49.0
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3382850,
|
||||
"delta_tx_bytes": 3398303,
|
||||
"baseline_rss_bytes": 468705280,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 468705280,
|
||||
"heap_used": 50851544,
|
||||
"external": 134219881,
|
||||
"array_buffers": 130427173
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 100.31424599990714,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3382858,
|
||||
"delta_tx_bytes": 3398701,
|
||||
"baseline_rss_bytes": 449990656,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 451563520,
|
||||
"heap_used": 58537824,
|
||||
"external": 181003027,
|
||||
"array_buffers": 177201619
|
||||
},
|
||||
"delta_rss_bytes": 1572864,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 102.65141499997117,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6765708,
|
||||
"total_delta_tx_bytes": 6797004,
|
||||
"rx_bytes_per_upload": 135314,
|
||||
"tx_bytes_per_upload": 135940,
|
||||
"max_delta_rss_bytes": 1572864
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.198,
|
||||
"latency_ms": {
|
||||
"p50": 24.7,
|
||||
"p95": 79.6,
|
||||
"p99": 87.8
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3378497,
|
||||
"delta_tx_bytes": 3395989,
|
||||
"baseline_rss_bytes": 468705280,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 468705280,
|
||||
"heap_used": 51433088,
|
||||
"external": 135937131,
|
||||
"array_buffers": 132143156
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 133.3207659999607,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3377682,
|
||||
"delta_tx_bytes": 3396121,
|
||||
"baseline_rss_bytes": 410624000,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 410624000,
|
||||
"heap_used": 57652400,
|
||||
"external": 13565945,
|
||||
"array_buffers": 9765488
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 68.74197999993339,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6756179,
|
||||
"total_delta_tx_bytes": 6792110,
|
||||
"rx_bytes_per_upload": 135124,
|
||||
"tx_bytes_per_upload": 135842,
|
||||
"max_delta_rss_bytes": 0
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 0.161,
|
||||
"latency_ms": {
|
||||
"p50": 26.1,
|
||||
"p95": 42.7,
|
||||
"p99": 45.7
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 3374905,
|
||||
"delta_tx_bytes": 3395785,
|
||||
"baseline_rss_bytes": 254783488,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 254783488,
|
||||
"heap_used": 51574496,
|
||||
"external": 12158693,
|
||||
"array_buffers": 8364940
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 77.51481299975421,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 3376331,
|
||||
"delta_tx_bytes": 3394989,
|
||||
"baseline_rss_bytes": 410624000,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 410624000,
|
||||
"heap_used": 58715704,
|
||||
"external": 14697744,
|
||||
"array_buffers": 10896445
|
||||
},
|
||||
"delta_rss_bytes": 0,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 3276800,
|
||||
"attachments.decode.ms": 79.76343099982478,
|
||||
"attachments.proxy.bytes_to_s3": 3276800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 6751236,
|
||||
"total_delta_tx_bytes": 6790774,
|
||||
"rx_bytes_per_upload": 135025,
|
||||
"tx_bytes_per_upload": 135815,
|
||||
"max_delta_rss_bytes": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
{
|
||||
"date": "2026-10-23T14:19:32+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "proxy",
|
||||
"size_bytes": 9961472,
|
||||
"concurrency": 10,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 10,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 2.923,
|
||||
"latency_ms": {
|
||||
"p50": 245.8,
|
||||
"p95": 426.3,
|
||||
"p99": 473.7
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 249684975,
|
||||
"delta_tx_bytes": 249854149,
|
||||
"baseline_rss_bytes": 257658880,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 258445312,
|
||||
"heap_used": 50586328,
|
||||
"external": 54821684,
|
||||
"array_buffers": 51025026
|
||||
},
|
||||
"delta_rss_bytes": 786432,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.claim_expired": 1,
|
||||
"attachments.decode.ms": 319.71605499990983,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 249696173,
|
||||
"delta_tx_bytes": 249850753,
|
||||
"baseline_rss_bytes": 242159616,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 263458816,
|
||||
"heap_used": 50272920,
|
||||
"external": 64509948,
|
||||
"array_buffers": 60710825
|
||||
},
|
||||
"delta_rss_bytes": 21299200,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.decode.ms": 417.5356929998379,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25,
|
||||
"attachments.claim_expired": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 499381148,
|
||||
"total_delta_tx_bytes": 499704902,
|
||||
"rx_bytes_per_upload": 9987623,
|
||||
"tx_bytes_per_upload": 9994098,
|
||||
"max_delta_rss_bytes": 21299200
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 2.962,
|
||||
"latency_ms": {
|
||||
"p50": 218.3,
|
||||
"p95": 399.3,
|
||||
"p99": 460.0
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 249696535,
|
||||
"delta_tx_bytes": 249834513,
|
||||
"baseline_rss_bytes": 258445312,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 278368256,
|
||||
"heap_used": 51479592,
|
||||
"external": 64969358,
|
||||
"array_buffers": 60432585
|
||||
},
|
||||
"delta_rss_bytes": 19922944,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.decode.ms": 418.99375499994494,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 249668505,
|
||||
"delta_tx_bytes": 249828657,
|
||||
"baseline_rss_bytes": 263458816,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 286236672,
|
||||
"heap_used": 50811912,
|
||||
"external": 98237420,
|
||||
"array_buffers": 75492114
|
||||
},
|
||||
"delta_rss_bytes": 22777856,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.decode.ms": 377.89479400013806,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 499365040,
|
||||
"total_delta_tx_bytes": 499663170,
|
||||
"rx_bytes_per_upload": 9987301,
|
||||
"tx_bytes_per_upload": 9993263,
|
||||
"max_delta_rss_bytes": 22777856
|
||||
},
|
||||
{
|
||||
"uploads": 50,
|
||||
"succeeded": 50,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 50
|
||||
},
|
||||
"duration_s": 2.985,
|
||||
"latency_ms": {
|
||||
"p50": 244.7,
|
||||
"p95": 375.1,
|
||||
"p99": 434.8
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 249713919,
|
||||
"delta_tx_bytes": 249869668,
|
||||
"baseline_rss_bytes": 278368256,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 280072192,
|
||||
"heap_used": 51096488,
|
||||
"external": 54668040,
|
||||
"array_buffers": 50874378
|
||||
},
|
||||
"delta_rss_bytes": 1703936,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.decode.ms": 335.8925800000434,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 249686633,
|
||||
"delta_tx_bytes": 249847874,
|
||||
"baseline_rss_bytes": 243417088,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 253378560,
|
||||
"heap_used": 50078992,
|
||||
"external": 54471131,
|
||||
"array_buffers": 50675083
|
||||
},
|
||||
"delta_rss_bytes": 9961472,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 25,
|
||||
"attachments.proxy.bytes_in": 249036800,
|
||||
"attachments.decode.ms": 318.2283639999805,
|
||||
"attachments.proxy.bytes_to_s3": 249036800,
|
||||
"attachments.mark_ready": 25,
|
||||
"attachments.upload.created": 25
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 499400552,
|
||||
"total_delta_tx_bytes": 499717542,
|
||||
"rx_bytes_per_upload": 9988011,
|
||||
"tx_bytes_per_upload": 9994351,
|
||||
"max_delta_rss_bytes": 9961472
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
{
|
||||
"date": "2026-10-23T14:20:13+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "proxy",
|
||||
"size_bytes": 9961472,
|
||||
"concurrency": 20,
|
||||
"uploads_per_worker": 5,
|
||||
"repeat": 3,
|
||||
"users": 20,
|
||||
"image": null
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 100,
|
||||
"succeeded": 100,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 100
|
||||
},
|
||||
"duration_s": 6.03,
|
||||
"latency_ms": {
|
||||
"p50": 446.3,
|
||||
"p95": 781.2,
|
||||
"p99": 875.5
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 499450818,
|
||||
"delta_tx_bytes": 499682679,
|
||||
"baseline_rss_bytes": 260186112,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 270147584,
|
||||
"heap_used": 50815808,
|
||||
"external": 74823876,
|
||||
"array_buffers": 71026869
|
||||
},
|
||||
"delta_rss_bytes": 9961472,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 747.5779010000988,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 499478040,
|
||||
"delta_tx_bytes": 499706687,
|
||||
"baseline_rss_bytes": 233414656,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 272007168,
|
||||
"heap_used": 51073272,
|
||||
"external": 81928377,
|
||||
"array_buffers": 78003733
|
||||
},
|
||||
"delta_rss_bytes": 38592512,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 729.9557609999902,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 998928858,
|
||||
"total_delta_tx_bytes": 999389366,
|
||||
"rx_bytes_per_upload": 9989289,
|
||||
"tx_bytes_per_upload": 9993894,
|
||||
"max_delta_rss_bytes": 38592512
|
||||
},
|
||||
{
|
||||
"uploads": 100,
|
||||
"succeeded": 100,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 100
|
||||
},
|
||||
"duration_s": 5.959,
|
||||
"latency_ms": {
|
||||
"p50": 433.3,
|
||||
"p95": 826.3,
|
||||
"p99": 1157.3
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 499374042,
|
||||
"delta_tx_bytes": 499651950,
|
||||
"baseline_rss_bytes": 270147584,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 272506880,
|
||||
"heap_used": 51829328,
|
||||
"external": 83084989,
|
||||
"array_buffers": 79288011
|
||||
},
|
||||
"delta_rss_bytes": 2359296,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 779.4219730002806,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 499493122,
|
||||
"delta_tx_bytes": 499744106,
|
||||
"baseline_rss_bytes": 223895552,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 268492800,
|
||||
"heap_used": 51545968,
|
||||
"external": 74440258,
|
||||
"array_buffers": 70643266
|
||||
},
|
||||
"delta_rss_bytes": 44597248,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 863.9362580000306,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 998867164,
|
||||
"total_delta_tx_bytes": 999396056,
|
||||
"rx_bytes_per_upload": 9988672,
|
||||
"tx_bytes_per_upload": 9993961,
|
||||
"max_delta_rss_bytes": 44597248
|
||||
},
|
||||
{
|
||||
"uploads": 100,
|
||||
"succeeded": 100,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 100
|
||||
},
|
||||
"duration_s": 5.867,
|
||||
"latency_ms": {
|
||||
"p50": 425.4,
|
||||
"p95": 748.6,
|
||||
"p99": 899.5
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 499413858,
|
||||
"delta_tx_bytes": 499718735,
|
||||
"baseline_rss_bytes": 272506880,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 282468352,
|
||||
"heap_used": 51214136,
|
||||
"external": 94183394,
|
||||
"array_buffers": 90388084
|
||||
},
|
||||
"delta_rss_bytes": 9961472,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 737.3356790000107,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 499436776,
|
||||
"delta_tx_bytes": 499691520,
|
||||
"baseline_rss_bytes": 224206848,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 287236096,
|
||||
"heap_used": 51412744,
|
||||
"external": 94514510,
|
||||
"array_buffers": 90719177
|
||||
},
|
||||
"delta_rss_bytes": 63029248,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 50,
|
||||
"attachments.proxy.bytes_in": 498073600,
|
||||
"attachments.decode.ms": 632.1155839997809,
|
||||
"attachments.proxy.bytes_to_s3": 498073600,
|
||||
"attachments.mark_ready": 50,
|
||||
"attachments.upload.created": 50
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 998850634,
|
||||
"total_delta_tx_bytes": 999410255,
|
||||
"rx_bytes_per_upload": 9988506,
|
||||
"tx_bytes_per_upload": 9994103,
|
||||
"max_delta_rss_bytes": 63029248
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"date": "2026-10-23T14:21:43+00:00",
|
||||
"git": "9caa031",
|
||||
"params": {
|
||||
"mode": "proxy",
|
||||
"size_bytes": 10485760,
|
||||
"concurrency": 32,
|
||||
"uploads_per_worker": 2,
|
||||
"repeat": 3,
|
||||
"users": 32,
|
||||
"image": "worst-40mp-rgba16-adam7.png"
|
||||
},
|
||||
"host": {
|
||||
"nproc": 8,
|
||||
"mem_total_bytes": 16538955776
|
||||
},
|
||||
"api_container_limits_nanocpus_memory": [
|
||||
"1500000000 1073741824",
|
||||
"1500000000 1073741824"
|
||||
],
|
||||
"repeats": [
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 63,
|
||||
"failed": 1,
|
||||
"outcomes": {
|
||||
"ok": 63,
|
||||
"upload:429": 1
|
||||
},
|
||||
"duration_s": 26.314,
|
||||
"latency_ms": {
|
||||
"p50": 11982.1,
|
||||
"p95": 13221.2,
|
||||
"p99": 13881.3
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 337116624,
|
||||
"delta_tx_bytes": 326709435,
|
||||
"baseline_rss_bytes": 280637440,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 794800128,
|
||||
"heap_used": 52577168,
|
||||
"external": 200629533,
|
||||
"array_buffers": 196839189
|
||||
},
|
||||
"delta_rss_bytes": 514162688,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 31,
|
||||
"attachments.proxy.bytes_in": 325058560,
|
||||
"attachments.decode.ms": 25555.52753299987,
|
||||
"attachments.proxy.bytes_to_s3": 325058560,
|
||||
"attachments.mark_ready": 31,
|
||||
"attachments.upload.created": 31
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 337265287,
|
||||
"delta_tx_bytes": 337358402,
|
||||
"baseline_rss_bytes": 243548160,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 810434560,
|
||||
"heap_used": 53145984,
|
||||
"external": 236705259,
|
||||
"array_buffers": 220341467
|
||||
},
|
||||
"delta_rss_bytes": 566886400,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 32,
|
||||
"attachments.proxy.bytes_in": 335544320,
|
||||
"attachments.decode.ms": 26139.059334000223,
|
||||
"attachments.proxy.bytes_to_s3": 335544320,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.upload.created": 32
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 674381911,
|
||||
"total_delta_tx_bytes": 664067837,
|
||||
"rx_bytes_per_upload": 10537217,
|
||||
"tx_bytes_per_upload": 10376060,
|
||||
"max_delta_rss_bytes": 566886400
|
||||
},
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 63,
|
||||
"failed": 1,
|
||||
"outcomes": {
|
||||
"ok": 63,
|
||||
"upload:429": 1
|
||||
},
|
||||
"duration_s": 26.067,
|
||||
"latency_ms": {
|
||||
"p50": 11840.4,
|
||||
"p95": 12960.2,
|
||||
"p99": 13468.5
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 336715328,
|
||||
"delta_tx_bytes": 326375446,
|
||||
"baseline_rss_bytes": 440582144,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 792059904,
|
||||
"heap_used": 56538592,
|
||||
"external": 222265987,
|
||||
"array_buffers": 218475643
|
||||
},
|
||||
"delta_rss_bytes": 351477760,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 31,
|
||||
"attachments.proxy.bytes_in": 325058560,
|
||||
"attachments.decode.ms": 25179.0629260001,
|
||||
"attachments.proxy.bytes_to_s3": 325058560,
|
||||
"attachments.mark_ready": 31,
|
||||
"attachments.upload.created": 31
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 336711646,
|
||||
"delta_tx_bytes": 336796533,
|
||||
"baseline_rss_bytes": 456798208,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 804114432,
|
||||
"heap_used": 56361496,
|
||||
"external": 227834931,
|
||||
"array_buffers": 224044587
|
||||
},
|
||||
"delta_rss_bytes": 347316224,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 32,
|
||||
"attachments.proxy.bytes_in": 335544320,
|
||||
"attachments.decode.ms": 25936.202234999975,
|
||||
"attachments.proxy.bytes_to_s3": 335544320,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.upload.created": 32
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 673426974,
|
||||
"total_delta_tx_bytes": 663171979,
|
||||
"rx_bytes_per_upload": 10522296,
|
||||
"tx_bytes_per_upload": 10362062,
|
||||
"max_delta_rss_bytes": 351477760
|
||||
},
|
||||
{
|
||||
"uploads": 64,
|
||||
"succeeded": 64,
|
||||
"failed": 0,
|
||||
"outcomes": {
|
||||
"ok": 64
|
||||
},
|
||||
"duration_s": 26.191,
|
||||
"latency_ms": {
|
||||
"p50": 12369.3,
|
||||
"p95": 13068.5,
|
||||
"p99": 13838.5
|
||||
},
|
||||
"replicas": [
|
||||
{
|
||||
"instance_id": "90e2e1d73b23",
|
||||
"delta_rx_bytes": 336907021,
|
||||
"delta_tx_bytes": 336990630,
|
||||
"baseline_rss_bytes": 438906880,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 812994560,
|
||||
"heap_used": 53308256,
|
||||
"external": 217363492,
|
||||
"array_buffers": 213573148
|
||||
},
|
||||
"delta_rss_bytes": 374087680,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 32,
|
||||
"attachments.proxy.bytes_in": 335544320,
|
||||
"attachments.decode.ms": 25964.192683000234,
|
||||
"attachments.proxy.bytes_to_s3": 335544320,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.upload.created": 32,
|
||||
"attachments.claim_expired": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"instance_id": "9bb9a19b4693",
|
||||
"delta_rx_bytes": 336764548,
|
||||
"delta_tx_bytes": 336853328,
|
||||
"baseline_rss_bytes": 451035136,
|
||||
"peak_memory_bytes": {
|
||||
"rss": 822910976,
|
||||
"heap_used": 51718280,
|
||||
"external": 238155032,
|
||||
"array_buffers": 234364688
|
||||
},
|
||||
"delta_rss_bytes": 371875840,
|
||||
"counters": {
|
||||
"attachments.insert_pending": 32,
|
||||
"attachments.proxy.bytes_in": 335544320,
|
||||
"attachments.decode.ms": 25902.83660300006,
|
||||
"attachments.proxy.bytes_to_s3": 335544320,
|
||||
"attachments.mark_ready": 32,
|
||||
"attachments.upload.created": 32,
|
||||
"attachments.claim_expired": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"total_delta_rx_bytes": 673671569,
|
||||
"total_delta_tx_bytes": 673843958,
|
||||
"rx_bytes_per_upload": 10526118,
|
||||
"tx_bytes_per_upload": 10528812,
|
||||
"max_delta_rss_bytes": 374087680
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Bucket created successfully `stand/messenger-attachments`.
|
||||
Access permission for `stand/messenger-attachments` is set to `private`
|
||||
Created policy `messenger-api` successfully.
|
||||
Added user `api-<id>` successfully.
|
||||
Attached Policies: [messenger-api]
|
||||
To User: api-<id>
|
||||
bootstrap ok: bucket=messenger-attachments policy=messenger-api
|
||||
Bucket created successfully `stand/messenger-attachments`.
|
||||
Access permission for `stand/messenger-attachments` is set to `private`
|
||||
Created policy `messenger-api` successfully.
|
||||
Added user `api-<id>` successfully.
|
||||
bootstrap ok: bucket=messenger-attachments policy=messenger-api
|
||||
@@ -0,0 +1,9 @@
|
||||
scripts/lab4/consistency_check.sh
|
||||
bucket: messenger-attachments
|
||||
objects: 8398
|
||||
rows by status:
|
||||
84 pending
|
||||
8324 ready
|
||||
4 rejected
|
||||
orphans: 0
|
||||
missing: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
# container /mtusi-lab4-api-1, memory limit 1073741824 bytes, VIPS_DISC_THRESHOLD=1g, commit 4b53e03; same pipeline as ImageDecoder
|
||||
jpeg 7728x5152 3ch uchar bytes=4921012 decode_ms=61 peak_delta_rss_mib=4.5 ok
|
||||
jpeg 7728x5152 3ch uchar progressive bytes=4826968 decode_ms=273 peak_delta_rss_mib=118.1 ok
|
||||
jpeg 7728x5152 4ch uchar bytes=10601868 decode_ms=159 peak_delta_rss_mib=7.5 ok
|
||||
png 8000x5000 4ch ushort bytes=1420114 decode_ms=524 peak_delta_rss_mib=67.1 ok
|
||||
png 8000x5000 4ch ushort progressive bytes=364096 decode_ms=1231 peak_delta_rss_mib=338.5 ok
|
||||
png 8000x5000 3ch uchar progressive palette bytes=61042 decode_ms=356 peak_delta_rss_mib=126.0 ok
|
||||
png 8000x5000 4ch ushort progressive bytes=10485760 decode_ms=707 peak_delta_rss_mib=338.4 ok
|
||||
@@ -0,0 +1,8 @@
|
||||
> app@0.0.1 test:e2e
|
||||
> vitest run --config ./vitest.config.e2e.ts direct-upload
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
|
||||
Test Files 1 passed (1)
|
||||
Tests 10 passed (10)
|
||||
Start at 17:11:07
|
||||
Duration 8.19s (transform 48ms, setup 0ms, import 72ms, tests 8.02s, environment 0ms)
|
||||
@@ -0,0 +1,11 @@
|
||||
# commit 9caa031; attachment download survives the stop of either replica (sha256 of sample.png: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75)
|
||||
stopped mtusi-lab4-api-1
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 9bb9a19b4693 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 9bb9a19b4693 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 9bb9a19b4693 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
stopped mtusi-lab4-api-2
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 90e2e1d73b23 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 90e2e1d73b23 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
GET content -> HTTP/1.1 200 OK x-instance-id: 90e2e1d73b23 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
mtusi-lab4-api-1 Up 14 seconds (healthy)
|
||||
mtusi-lab4-api-2 Up 5 seconds (healthy)
|
||||
@@ -0,0 +1,13 @@
|
||||
# commit 9caa031
|
||||
# failover round 1
|
||||
{"observed_instances_before": 2, "successful_writes": 133, "failed_attempts": 0, "first_recovery_seconds": 3.184}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
mtusi-lab4-api-1 Exited (0) 12 seconds ago
|
||||
mtusi-lab4-api-2 Up 31 seconds (healthy)
|
||||
# failover round 2
|
||||
{"observed_instances_before": 2, "successful_writes": 141, "failed_attempts": 0, "first_recovery_seconds": 3.249}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
mtusi-lab4-api-1 Exited (0) 12 seconds ago
|
||||
mtusi-lab4-api-2 Up 53 seconds (healthy)
|
||||
mtusi-lab4-api-1 Up 5 seconds (healthy)
|
||||
mtusi-lab4-api-2 Up 58 seconds (healthy)
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,9 @@
|
||||
cd app && E2E_COMPOSE_DIR="/home/tomato/Projects/VP/mtusi2026lab4" E2E_COMPOSE_ENV_FILE=".env" npm run test:dependencies
|
||||
> app@0.0.1 test:dependencies
|
||||
> E2E_DEPENDENCY_FAULTS=1 vitest run --config ./vitest.config.e2e.ts dependency-failures
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
|
||||
Test Files 1 passed (1)
|
||||
Tests 7 passed (7)
|
||||
Start at 17:11:25
|
||||
Duration 140.04s (transform 65ms, setup 0ms, import 80ms, tests 139.87s, environment 0ms)
|
||||
@@ -0,0 +1,8 @@
|
||||
> app@0.0.1 test:e2e
|
||||
> vitest run --config ./vitest.config.e2e.ts
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
|
||||
Test Files 3 passed | 1 skipped (4)
|
||||
Tests 44 passed | 9 skipped (53)
|
||||
Start at 17:10:37
|
||||
Duration 6.55s (transform 310ms, setup 0ms, import 591ms, tests 12.84s, environment 0ms)
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,18 @@
|
||||
# commit 9caa031
|
||||
# before
|
||||
/mtusi-lab4-postgres-1 2026-10-23T14:13:29.263262079Z
|
||||
/mtusi-lab4-redis-1 2026-10-23T14:11:34.042926489Z
|
||||
/mtusi-lab4-s3-1 2026-10-23T14:12:05.200412031Z
|
||||
/mtusi-lab4-api-1 2026-10-23T14:11:19.011665615Z
|
||||
/mtusi-lab4-api-2 2026-10-23T14:11:19.118116521Z
|
||||
/mtusi-lab4-haproxy-1 2026-10-22T19:41:00.434084255Z
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
# after
|
||||
/mtusi-lab4-postgres-1 2026-10-23T14:23:26.500579665Z
|
||||
/mtusi-lab4-redis-1 2026-10-23T14:23:26.233233745Z
|
||||
/mtusi-lab4-s3-1 2026-10-23T14:23:26.420908434Z
|
||||
/mtusi-lab4-api-1 2026-10-23T14:23:29.194759152Z
|
||||
/mtusi-lab4-api-2 2026-10-23T14:23:29.224476065Z
|
||||
/mtusi-lab4-haproxy-1 2026-10-23T14:23:26.32966444Z
|
||||
@@ -0,0 +1,6 @@
|
||||
a) X-Amz-SignedHeaders=content-length;content-type;host;x-amz-checksum-sha256
|
||||
b) valid PUT -> {"status":200,"text":""}
|
||||
e) HEAD size=5000 checksumSha256Matches=true
|
||||
c) same size, one byte changed -> {"status":400,"text":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>XAmzContentChecksumMismatch</Code><Message>The provided 'x-amz-checksum' header does not match what was computed.</Message><Key>attachments/spike-1792697803765-c/original</Key><BucketName>messenger-attachments</BucketName></Error>"}; object created=false
|
||||
d) longer body -> {"status":403,"text":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>attachments/spike-1792697803775-d1/original</Key><BucketName>messenger-attachments<"}; object created=false
|
||||
d) shorter body -> {"status":403,"text":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message><Key>attachments/spike-1792697803780-d2/original</Key><BucketName>messenger-attachments<"}; object created=false
|
||||
@@ -0,0 +1 @@
|
||||
touch: cannot touch '/usr/src/app/x': Read-only file system
|
||||
@@ -0,0 +1,10 @@
|
||||
scripts/lab4/check_s3_security.sh
|
||||
PASS anonymous GET of a ready object -> 403
|
||||
PASS anonymous list of the bucket -> 403
|
||||
PASS anonymous PUT -> 403
|
||||
PASS API credentials cannot create buckets
|
||||
PASS API credentials cannot use admin API
|
||||
PASS API credentials can read attachments/*
|
||||
PASS API credentials cannot write outside attachments/
|
||||
PASS console port 9001 is not published
|
||||
PASS console not reachable on localhost:9001
|
||||
@@ -0,0 +1,11 @@
|
||||
| mode | size, MiB | C | ok | failures | API rx/upload, MiB | API tx/upload, MiB | max Δrss, MiB | peak RSS, MiB | p50, ms | p95, ms |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| direct | 0.12 | 10 | 150/150 | — | 0.13 | 0.01 | 0.38 | 394.39 | 40 | 71 |
|
||||
| proxy | 0.12 | 10 | 150/150 | — | 0.13 | 0.13 | 0.00 | 446.99 | 26 | 46 |
|
||||
| direct | 1.00 | 10 | 150/150 | — | 1.01 | 0.01 | 0.00 | 244.16 | 71 | 107 |
|
||||
| proxy | 1.00 | 10 | 150/150 | — | 1.01 | 1.01 | 0.12 | 394.70 | 50 | 82 |
|
||||
| direct | 9.50 | 10 | 150/150 | — | 9.52 | 0.01 | 67.06 | 344.15 | 448 | 672 |
|
||||
| proxy | 9.50 | 10 | 150/150 | — | 9.52 | 9.53 | 20.31 | 272.98 | 245 | 399 |
|
||||
| proxy | 9.50 | 20 | 300/300 | — | 9.53 | 9.53 | 42.53 | 273.93 | 433 | 781 |
|
||||
| direct (worst-40mp-rgba16-adam7.png) | 10.00 | 32 | 167/192 | complete:429×25 | 9.24 | 0.01 | 366.88 | 790.94 | 11067 | 13423 |
|
||||
| proxy (worst-40mp-rgba16-adam7.png) | 10.00 | 32 | 190/192 | upload:429×2 | 10.04 | 9.90 | 356.76 | 784.79 | 11982 | 13068 |
|
||||
@@ -0,0 +1,6 @@
|
||||
[Nest] 4013602 - 10/23/2026, 5:10:35 PM WARN [MessagesCacheService] Cache fill failed: redis down
|
||||
[Nest] 4013620 - 10/23/2026, 5:10:37 PM WARN [AttachmentsService] Compensation of attachment 2dc5fe05-aac7-484f-935e-186a935e9224 deferred: Connection terminated unexpectedly
|
||||
Test Files 13 passed (13)
|
||||
Tests 48 passed (48)
|
||||
Start at 17:10:34
|
||||
Duration 2.68s (transform 652ms, setup 0ms, import 8.56s, tests 1.95s, environment 2ms)
|
||||
@@ -0,0 +1,4 @@
|
||||
big_image invariants: {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true}
|
||||
final suite run: peak worker memory: 992.2 MiB / 1280 MiB
|
||||
worker limit: WORKER_MEMORY=1280m, WORKER_CONCURRENCY=2
|
||||
input: two concurrent 8000x5000 PNG, 10 MiB each
|
||||
@@ -0,0 +1,10 @@
|
||||
api Up About a minute (healthy)
|
||||
api Up About a minute (healthy)
|
||||
broker Up 56 minutes (healthy)
|
||||
worker Up About a minute (healthy)
|
||||
user tags
|
||||
messenger [administrator]
|
||||
messenger-worker []
|
||||
user configure write read
|
||||
messenger-worker ^(attachments\.jobs|attachments\.process|attachments\.dlx|attachments\.process\.dlq)$ ^attachments\.(jobs|process|dlx|process\.dlq)$ ^attachments\.(jobs|process|dlx|process\.dlq)$
|
||||
messenger ^(attachments\.jobs|attachments\.process|attachments\.dlx|attachments\.process\.dlq)$ ^attachments\.(jobs|process|dlx|process\.dlq)$ ^attachments\.(jobs|dlx)$
|
||||
@@ -0,0 +1,2 @@
|
||||
consumers after broker restart 1
|
||||
upload after restart ready 3
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
> app@0.0.1 build
|
||||
> nest build
|
||||
|
||||
|
||||
> app@0.0.1 lint
|
||||
> oxlint src/ test/
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab5-api-1 mtusi-messenger:lab5 "docker-entrypoint.s…" api 8 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi-lab5-api-2 mtusi-messenger:lab5 "docker-entrypoint.s…" api 8 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi-lab5-broker-1 rabbitmq:4.1.8-alpine@sha256:153322e3974e6365c50e523e5eadd5a7fae231f0e8c58f67c03bb3e02056e34e "docker-entrypoint.s…" broker 3 hours ago Up 41 seconds (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi-lab5-haproxy-1 haproxy:3.2-alpine "docker-entrypoint.s…" haproxy 3 hours ago Up 3 minutes 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp, 127.0.0.1:8404->8404/tcp
|
||||
mtusi-lab5-postgres-1 postgres:16.4-alpine "docker-entrypoint.s…" postgres 3 hours ago Up 3 minutes (healthy) 127.0.0.1:5432->5432/tcp
|
||||
mtusi-lab5-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 3 hours ago Up 3 minutes (healthy) 127.0.0.1:6379->6379/tcp
|
||||
mtusi-lab5-s3-1 minio/minio:RELEASE.2025-09-07T16-13-09Z@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e "/usr/bin/docker-ent…" s3 3 hours ago Up 3 minutes (healthy) 127.0.0.1:9000->9000/tcp
|
||||
mtusi-lab5-worker-1 mtusi-messenger:lab5 "docker-entrypoint.s…" worker 8 minutes ago Up About a minute (healthy) 8080/tcp
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 3.568}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,138 @@
|
||||
[
|
||||
{
|
||||
"name": "crash_after_commit_before_publish",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 29.638,
|
||||
"attachment_id": "9c6d6896-0f76-4d4b-aa37-02b175a40fdc",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "outbox relay published the committed job after API restart"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_side_effect",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 82.618,
|
||||
"attachment_id": "5fb2f6c6-b84d-46b3-ad91-18358faec586",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 80.048,
|
||||
"attachment_id": "168fb65f-2965-464a-a197-e62af48b25a8",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"name": "retry_and_replay",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 84.119,
|
||||
"attachment_id": "98f19c5e-42f2-4ba5-b74f-3fb1831be1ad",
|
||||
"job_attempts": [
|
||||
6
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "transient injected fault exhausted retries; replay recovered"
|
||||
},
|
||||
{
|
||||
"name": "hung_worker",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 88.126,
|
||||
"attachment_id": "00a3eef9-5176-4848-b114-124291f68413",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "hard timeout aborted the hung render and retried"
|
||||
},
|
||||
{
|
||||
"name": "poison",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 36.723,
|
||||
"attachment_id": null,
|
||||
"job_attempts": [],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "malformed messages moved to the DLQ without touching jobs"
|
||||
},
|
||||
{
|
||||
"name": "big_image",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 34.708,
|
||||
"attachment_id": "de5c5405-96d3-40c5-b1c6-6b40f34d7235",
|
||||
"job_attempts": [],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "peak worker memory: 992.2 MiB / 1280 MiB"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
python3 scripts/lab5/fault_suite.py --base-url "http://localhost:8080" --scenario level4 --output evidence/lab5/faults-level4.json
|
||||
PASS crash_after_commit_before_publish #1 29.638s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} outbox relay published the committed job after API restart
|
||||
PASS crash_after_side_effect #1 82.618s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} crashed at worker.after_side_effect
|
||||
PASS crash_after_commit_before_ack #1 80.048s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} crashed at worker.after_commit_before_ack
|
||||
PASS retry_and_replay #1 84.119s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} transient injected fault exhausted retries; replay recovered
|
||||
PASS hung_worker #1 88.126s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} hard timeout aborted the hung render and retried
|
||||
PASS poison #1 36.723s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} malformed messages moved to the DLQ without touching jobs
|
||||
PASS big_image #1 34.708s {"I1": true, "I2": true, "I3": true, "I4": true, "I5": true, "I6": true} peak worker memory: 992.2 MiB / 1280 MiB
|
||||
7/7 scenarios passed
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,15 @@
|
||||
cd app && E2E_COMPOSE_DIR="/home/tomato/Projects/VP/mtusi2026lab5" E2E_COMPOSE_ENV_FILE=".env" npm run test:dependencies
|
||||
|
||||
> app@0.0.1 test:dependencies
|
||||
> E2E_DEPENDENCY_FAULTS=1 vitest run --config ./vitest.config.e2e.ts dependency-failures
|
||||
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab5/app
|
||||
|
||||
|
||||
Test Files 1 passed (1)
|
||||
Tests 7 passed (7)
|
||||
Start at 03:12:54
|
||||
Duration 181.23s (transform 259ms, setup 0ms, import 351ms, tests 180.58s, environment 0ms)
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
scripts/app-e2e.sh
|
||||
|
||||
> app@0.0.1 test:e2e
|
||||
> vitest run --config ./vitest.config.e2e.ts
|
||||
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab5/app
|
||||
|
||||
|
||||
Test Files 3 passed | 1 skipped (4)
|
||||
Tests 44 passed | 9 skipped (53)
|
||||
Start at 03:16:31
|
||||
Duration 23.23s (transform 2.53s, setup 0ms, import 5.36s, tests 34.68s, environment 1ms)
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,3 @@
|
||||
{"process":{"messages":0,"consumers":1},"dlq":{"messages":14,"consumers":0}}
|
||||
|
||||
{"attachment":{"id":"b51554bd-cbfc-4e2a-8134-aa9bcc9247c8","status":"ready","error_code":null,"ready_pipeline_version":1,"staging_present":false},"jobs":[{"job_id":"55b4165c-1009-4338-8772-f866fbae2eb9","pipeline_version":1,"status":"succeeded","attempt":1,"max_attempts":5,"last_error_code":null}],"variants":[{"pipeline_version":1,"variant":"thumbnail","sha256":"a18bfc29cd9311807ce56afc7078d45db13b19ac2ac14a31d2b91f2640eddf29","size_bytes":4101,"width":256,"height":160,"object_key":"attachments/b51554bd-cbfc-4e2a-8134-aa9bcc9247c8/v1/thumbnail-a1.jpg","s3":{"exists":true,"etag":"\"1c094bdd7c6cf854d0c4429768fb8c49\"","last_modified":"2026-11-05T00:20:36.000Z"}},{"pipeline_version":1,"variant":"crop","sha256":"06c85b2c7a64a45c5e88d65ef492c3e54bc3a6dd1c4a2fad1dccd71b9aba8113","size_bytes":1657,"width":128,"height":128,"object_key":"attachments/b51554bd-cbfc-4e2a-8134-aa9bcc9247c8/v1/crop-a1.jpg","s3":{"exists":true,"etag":"\"f36ea628d9691b1d7fbad35499d3863f\"","last_modified":"2026-11-05T00:20:36.000Z"}},{"pipeline_version":1,"variant":"optimized","sha256":"0bb5b26524335872b2dfe977e2e364101870bfa4e223f4383ab00c34f6771735","size_bytes":2148,"width":320,"height":200,"object_key":"attachments/b51554bd-cbfc-4e2a-8134-aa9bcc9247c8/v1/optimized-a1.webp","s3":{"exists":true,"etag":"\"03817f0652c967e9a963d9b29a1152c1\"","last_modified":"2026-11-05T00:20:36.000Z"}}],"original":{"exists":true,"etag":"\"c2ab21400d8c13ea847e4d5d3c9832ad\"","last_modified":"2026-11-05T00:20:36.000Z"},"events":[{"job_id":"55b4165c-1009-4338-8772-f866fbae2eb9","event":"created","attempt":1,"detail":{},"created_at":"2026-11-05T00:20:36.743Z"},{"job_id":"55b4165c-1009-4338-8772-f866fbae2eb9","event":"claimed","attempt":1,"detail":{"lease_owner":"c434196d75a8"},"created_at":"2026-11-05T00:20:36.760Z"},{"job_id":"55b4165c-1009-4338-8772-f866fbae2eb9","event":"succeeded","attempt":1,"detail":{},"created_at":"2026-11-05T00:20:36.858Z"},{"job_id":"55b4165c-1009-4338-8772-f866fbae2eb9","event":"staging_deleted","attempt":1,"detail":{"staging_key":"staging/b51554bd-cbfc-4e2a-8134-aa9bcc9247c8/original"},"created_at":"2026-11-05T00:20:36.866Z"}],"outbox":{"pending":0,"published":1}}
|
||||
@@ -0,0 +1,3 @@
|
||||
attachment 431a2dbd-c2aa-4130-8866-6e1895f154d1 status ready ready_seconds 5.1
|
||||
events ['created', 'reconciled', 'claimed', 'succeeded', 'staging_deleted']
|
||||
reconciled True
|
||||
@@ -0,0 +1,44 @@
|
||||
# lab5 — сводка доказательств
|
||||
|
||||
Дата прогона: 2026-11-05. Хост: 8 vCPU i7-11370H, 15 GiB RAM; Docker 29.9.2,
|
||||
Node 25.7.0, Python 3.14.8. Все команды выполнены из корня репозитория; секреты
|
||||
и токены не печатались.
|
||||
|
||||
| Критерий | Файл | Наблюдение |
|
||||
| --- | --- | --- |
|
||||
| Offline-структура и OpenAPI | `make-check.txt` | `PASS: offline skeleton structure` |
|
||||
| Публичный smoke (уровень 3) | `make-test.txt` | `PASS: lab5 public API scenario`; 202 → ready → thumbnail 256×160 JPEG |
|
||||
| Юнит-тесты | `unit-tests.txt` | 18 файлов, 70 тестов, все зелёные; включены fit-inside, backoff, job-message, classifyError, pipelines (EXIF, alpha, determinism) |
|
||||
| E2E приложения | `make-test-e2e.txt` | 44 passed, 9 skipped (opt-in dependency сценарии) |
|
||||
| Отказы зависимостей | `make-test-dependencies.txt` | 7/7: Redis, PostgreSQL, per-replica DB path, насыщение пула, S3 stop/pause, staging при PG down |
|
||||
| Сохранность после рестарта stores | `persistence.txt` | `PASS: persistence preserved confirmed data and existing session` |
|
||||
| Failover API-реплики | `failover.txt` | 130 успешных записей, 0 ошибок, первое восстановление 3.568 s, 2 инстанса до отказа |
|
||||
| Демонстрация «worker остановлен» | `worker-down-demo.txt` | 202 queued, content 409, сообщение привязано, очередь пережила restart broker+API, после start worker — ready и thumbnail 256×160 |
|
||||
| Уровень 4, fault injection | `faults-level4.json`, `faults-level4.txt` | 7/7 сценариев, все I1–I6; crash COMMIT→publish, retry/replay, timeout, DLQ, big image |
|
||||
| Трек 2, 3 повтора | `track2.json`, `track2.txt` | 21/21 (7 сценариев × 3), все I1–I6; duplicate, reorder, crash до/после side effect, crash после COMMIT до ack, relay crash, stale version |
|
||||
| Память worker на 40 Мп | `big-image-memory.txt` | 2 × 8000×5000 одновременно; пик 992.2 MiB в финальном прогоне (934–966 MiB в предыдущих) при лимите 1280 MiB; `OOMKilled=false` |
|
||||
| Восстановление потерянного сообщения | `reconciler.txt` | сообщение удалено из очереди после publish; reconciler переотправил, attachment ready за 5.1 s, событие `reconciled` |
|
||||
| Resubscribe после рестарта broker | `broker-resubscribe.txt` | после restart broker consumer вернулся, следующий upload дошёл до ready с 3 вариантами |
|
||||
| Разделение RabbitMQ identities | `broker-identities.txt` | `messenger` и `messenger-worker`; API читает только обменники, worker — очередь; оба ограничены четырьмя ресурсами топологии |
|
||||
| Состав стенда | `compose-ps.txt` | api ×2 healthy, worker healthy, broker healthy, postgres/redis/s3 healthy |
|
||||
| Очереди и job после demo | `queues.txt` | process 0/1 consumer, DLQ 12 (накопленные poison-сообщения); job succeeded attempt 1, `staging_present=false` |
|
||||
|
||||
## Параметры fault-стенда
|
||||
|
||||
```sh
|
||||
FAULT_INJECTION_ENABLED=1 JOB_TIMEOUT_SECONDS=10 JOB_LEASE_SECONDS=8 \
|
||||
JOB_RETRY_BASE_MS=500 JOB_RETRY_MAX_MS=4000 make stand-up
|
||||
```
|
||||
|
||||
`WORKER_CONCURRENCY=2`, `JOB_MAX_ATTEMPTS=5`, `WORKER_MEMORY=1280m`.
|
||||
После экспериментов стенд возвращён в штатный режим
|
||||
(`FAULT_INJECTION_ENABLED=0`, timeout 60 s, lease 30 s) и `make test` повторён.
|
||||
|
||||
## Итог трека 2
|
||||
|
||||
`track2.json`: 21 запуск, 21 passed. Средние длительности: duplicate 16.7 s,
|
||||
reorder 36.7 s, crash_before 42.1 s, crash_after 43.9 s, crash_after_ack
|
||||
33.2 s, relay_crash 42.1 s, stale_version 48.8 s. Ни один инвариант I1–I6 не
|
||||
нарушен. Повторные публикации и redelivery наблюдались и поглощались
|
||||
(`duplicate_skipped`), S3 etag вариантов не менялся; v1 после v2 получил
|
||||
`superseded`, а v2-объекты остались нетронутыми.
|
||||
@@ -0,0 +1,425 @@
|
||||
[
|
||||
{
|
||||
"name": "duplicate",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 32.0,
|
||||
"attachment_id": "5935c541-99c8-4870-ac4c-0b56fa0d1695",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "5 duplicate deliveries were absorbed by the DB fence"
|
||||
},
|
||||
{
|
||||
"name": "duplicate",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 29.828,
|
||||
"attachment_id": "479b209f-da35-4f5f-9f63-e69687219640",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "5 duplicate deliveries were absorbed by the DB fence"
|
||||
},
|
||||
{
|
||||
"name": "duplicate",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 31.497,
|
||||
"attachment_id": "ae5a273e-46b5-47b5-8b95-31bcba873522",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "5 duplicate deliveries were absorbed by the DB fence"
|
||||
},
|
||||
{
|
||||
"name": "reorder",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 74.003,
|
||||
"attachment_id": "e6cb0d4f-d3b8-4cad-be1d-0b082f772d32",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "attempt 99 and a duplicate attempt 1 were acked as skips"
|
||||
},
|
||||
{
|
||||
"name": "reorder",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 81.88,
|
||||
"attachment_id": "b8e17ee2-316c-4d47-852a-eb954438e951",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "attempt 99 and a duplicate attempt 1 were acked as skips"
|
||||
},
|
||||
{
|
||||
"name": "reorder",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 76.46,
|
||||
"attachment_id": "3ecaef19-fca6-468e-ad6c-b6ec89f16fd2",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "attempt 99 and a duplicate attempt 1 were acked as skips"
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 84.929,
|
||||
"attachment_id": "f796e4ef-e4f7-4980-9969-2d7af7f8173f",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.before_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 82.228,
|
||||
"attachment_id": "dff97faf-a729-4c82-ac96-8580aff44606",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.before_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_before_side_effect",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 82.816,
|
||||
"attachment_id": "2f187d8a-3d12-4f9e-af10-b94ad87bca31",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.before_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_side_effect",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 83.342,
|
||||
"attachment_id": "20a45ae3-6f74-4547-bb76-f44c0c35fdd5",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_side_effect",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 82.109,
|
||||
"attachment_id": "42b41254-417d-41a8-b8ea-5836dc4dbcff",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_side_effect",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 81.735,
|
||||
"attachment_id": "beaad33b-5f44-452c-bf4e-d2577b248cfb",
|
||||
"job_attempts": [
|
||||
2
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_side_effect"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 74.213,
|
||||
"attachment_id": "c01dd235-7257-48f4-85c2-d6025d85a09e",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 70.885,
|
||||
"attachment_id": "d165ea80-ed1c-4d96-9246-0c637a19b191",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"name": "crash_after_commit_before_ack",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 74.808,
|
||||
"attachment_id": "15414a8c-0230-40be-97b4-8bcbee990147",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "crashed at worker.after_commit_before_ack"
|
||||
},
|
||||
{
|
||||
"name": "relay_crash_after_publish",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 84.973,
|
||||
"attachment_id": "cbc4a105-9966-4ff4-906e-f8cafbb4c58b",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "relay republished the same message; duplicate absorbed"
|
||||
},
|
||||
{
|
||||
"name": "relay_crash_after_publish",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 83.561,
|
||||
"attachment_id": "8607c972-a90b-45d4-b5ce-05ba3f201b31",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "relay republished the same message; duplicate absorbed"
|
||||
},
|
||||
{
|
||||
"name": "relay_crash_after_publish",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 83.425,
|
||||
"attachment_id": "7119cbcd-cc68-4b5d-ae94-3ac9b2cd9869",
|
||||
"job_attempts": [
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "relay republished the same message; duplicate absorbed"
|
||||
},
|
||||
{
|
||||
"name": "stale_version",
|
||||
"repeat": 1,
|
||||
"passed": true,
|
||||
"duration_s": 89.723,
|
||||
"attachment_id": "495ff6af-c20d-485e-9294-fa0fe835d9df",
|
||||
"job_attempts": [
|
||||
1,
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "v1 finished after v2 and was recorded as superseded"
|
||||
},
|
||||
{
|
||||
"name": "stale_version",
|
||||
"repeat": 2,
|
||||
"passed": true,
|
||||
"duration_s": 90.277,
|
||||
"attachment_id": "d1a7eb56-5b9d-4631-b61e-45e642c9c247",
|
||||
"job_attempts": [
|
||||
1,
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "v1 finished after v2 and was recorded as superseded"
|
||||
},
|
||||
{
|
||||
"name": "stale_version",
|
||||
"repeat": 3,
|
||||
"passed": true,
|
||||
"duration_s": 86.614,
|
||||
"attachment_id": "4f3f0abe-86b0-43bb-a49e-8a9dd93015b4",
|
||||
"job_attempts": [
|
||||
1,
|
||||
1
|
||||
],
|
||||
"events_summary": {},
|
||||
"invariants": {
|
||||
"I1": true,
|
||||
"I2": true,
|
||||
"I3": true,
|
||||
"I4": true,
|
||||
"I5": true,
|
||||
"I6": true
|
||||
},
|
||||
"notes": "v1 finished after v2 and was recorded as superseded"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
track2: 21/21 scenarios passed
|
||||
PASS duplicate #1 32.000s I1=true I2=true I3=true I4=true I5=true I6=true 5 duplicate deliveries were absorbed by the DB fence
|
||||
PASS duplicate #2 29.828s I1=true I2=true I3=true I4=true I5=true I6=true 5 duplicate deliveries were absorbed by the DB fence
|
||||
PASS duplicate #3 31.497s I1=true I2=true I3=true I4=true I5=true I6=true 5 duplicate deliveries were absorbed by the DB fence
|
||||
PASS reorder #1 74.003s I1=true I2=true I3=true I4=true I5=true I6=true attempt 99 and a duplicate attempt 1 were acked as skips
|
||||
PASS reorder #2 81.880s I1=true I2=true I3=true I4=true I5=true I6=true attempt 99 and a duplicate attempt 1 were acked as skips
|
||||
PASS reorder #3 76.460s I1=true I2=true I3=true I4=true I5=true I6=true attempt 99 and a duplicate attempt 1 were acked as skips
|
||||
PASS crash_before_side_effect #1 84.929s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.before_side_effect
|
||||
PASS crash_before_side_effect #2 82.228s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.before_side_effect
|
||||
PASS crash_before_side_effect #3 82.816s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.before_side_effect
|
||||
PASS crash_after_side_effect #1 83.342s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_side_effect
|
||||
PASS crash_after_side_effect #2 82.109s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_side_effect
|
||||
PASS crash_after_side_effect #3 81.735s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_side_effect
|
||||
PASS crash_after_commit_before_ack #1 74.213s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack #2 70.885s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_commit_before_ack
|
||||
PASS crash_after_commit_before_ack #3 74.808s I1=true I2=true I3=true I4=true I5=true I6=true crashed at worker.after_commit_before_ack
|
||||
PASS relay_crash_after_publish #1 84.973s I1=true I2=true I3=true I4=true I5=true I6=true relay republished the same message; duplicate absorbed
|
||||
PASS relay_crash_after_publish #2 83.561s I1=true I2=true I3=true I4=true I5=true I6=true relay republished the same message; duplicate absorbed
|
||||
PASS relay_crash_after_publish #3 83.425s I1=true I2=true I3=true I4=true I5=true I6=true relay republished the same message; duplicate absorbed
|
||||
PASS stale_version #1 89.723s I1=true I2=true I3=true I4=true I5=true I6=true v1 finished after v2 and was recorded as superseded
|
||||
PASS stale_version #2 90.277s I1=true I2=true I3=true I4=true I5=true I6=true v1 finished after v2 and was recorded as superseded
|
||||
PASS stale_version #3 86.614s I1=true I2=true I3=true I4=true I5=true I6=true v1 finished after v2 and was recorded as superseded
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
> app@0.0.1 test:unit
|
||||
> vitest run src/
|
||||
|
||||
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
|
||||
|
||||
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab5/app
|
||||
|
||||
[Nest] 2892631 - 11/05/2026, 3:16:19 AM WARN [MessagesCacheService] Cache read failed, serving PostgreSQL: redis down
|
||||
[Nest] 2892631 - 11/05/2026, 3:16:19 AM WARN [MessagesCacheService] Cache fill failed: redis down
|
||||
[Nest] 2893013 - 11/05/2026, 3:16:27 AM WARN [AttachmentsService] Compensation of attachment 7f67f209-53ca-4786-b06e-23c31ac0b59b deferred: Connection terminated unexpectedly
|
||||
|
||||
Test Files 18 passed (18)
|
||||
Tests 70 passed (70)
|
||||
Start at 03:16:17
|
||||
Duration 11.09s (transform 2.70s, setup 0ms, import 32.94s, tests 8.26s, environment 18ms)
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
python3 scripts/lab5/worker_down_demo.py --base-url "http://localhost:8080"
|
||||
[1] compose ps
|
||||
SERVICE STATUS
|
||||
api Up 41 seconds (healthy)
|
||||
api Up 2 seconds (health: starting)
|
||||
broker Up 44 seconds (healthy)
|
||||
haproxy Up 45 seconds
|
||||
postgres Up 45 seconds (healthy)
|
||||
redis Up 45 seconds (healthy)
|
||||
s3 Up 46 seconds (healthy)
|
||||
worker Up 45 seconds (healthy)
|
||||
[2] stop worker
|
||||
[3] upload while worker is down (expect 202 queued)
|
||||
attachment=ddc95667-82f9-49ed-a7d9-031ae46fb4f8 status=queued
|
||||
[4] content and thumbnail must answer 409 before ready
|
||||
[5] link the queued attachment to messages
|
||||
message=13caa29b-26bd-49e6-8534-1a078df9a901
|
||||
[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=ddc95667-82f9-49ed-a7d9-031ae46fb4f8 thumbnail=256x160 sha256=a18bfc29cd931180...
|
||||
[11] compose ps
|
||||
SERVICE STATUS
|
||||
api Up 43 seconds (healthy)
|
||||
api Up 43 seconds (healthy)
|
||||
broker Up 45 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
|
||||
Reference in New Issue
Block a user