lab5: базовый коммит из lab4 (abba248)

Перенесено дерево lab4 целиком: NestJS-приложение с вложениями и S3,
Dockerfile, compose.yaml, infra/{haproxy,minio}, стендовые скрипты,
scripts/lab4, evidence/lab4 и contracts/extensions.openapi.json.

Задание lab5 оставлено своим: README, REPORT, COURSE, lab.json,
contracts/{openapi,infrastructure,jobs.schema,attachment-states,examples},
tests, compose.example.yaml, .github/pull_request_template.md.

Адаптации при переносе:
- docker-проект mtusi-lab4 -> mtusi-lab5 и тег образа mtusi-messenger:lab5,
  чтобы тома и контейнеры не пересекались с lab4 (scripts/stop-one.sh:
  LAB_PROJECT вместо LAB4_PROJECT);
- Makefile: цели lab5 сохранены, добавлены стендовые (stand-up/down,
  wait-ready, init-env, test-e2e, test-dependencies, s3-security,
  consistency, bench);
- .env.example: реальные переменные приложения и стенда lab4 (без них
  compose.yaml не поднимается) + блок lab5 (BROKER_URL_FILE, WORKER_*).
This commit is contained in:
2026-11-04 23:44:11 +03:00
parent 276dbdad8a
commit 1982bdb690
153 changed files with 21742 additions and 11 deletions
+2
View File
@@ -0,0 +1,2 @@
/mtusi-lab4-api-1 OOMKilled=false restarts=0
/mtusi-lab4-api-2 OOMKilled=false restarts=0
+224
View File
@@ -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
}
]
}
+224
View File
@@ -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
}
]
}
+224
View File
@@ -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
}
]
}
+229
View File
@@ -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
}
]
}
+212
View File
@@ -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
}
]
}
+212
View File
@@ -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
}
]
}
+214
View File
@@ -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
}
]
}
+212
View File
@@ -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
}
]
}
+216
View File
@@ -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
}
]
}
+12
View File
@@ -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
+9
View File
@@ -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
+8
View File
@@ -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
+8
View File
@@ -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)
+11
View File
@@ -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)
+13
View File
@@ -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)
+2
View File
@@ -0,0 +1,2 @@
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+9
View File
@@ -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)
+8
View File
@@ -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)
+2
View File
@@ -0,0 +1,2 @@
python3 tests/smoke.py --base-url "http://localhost:8080"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
+18
View File
@@ -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
+6
View File
@@ -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 &#39;x-amz-checksum&#39; 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
+1
View File
@@ -0,0 +1 @@
touch: cannot touch '/usr/src/app/x': Read-only file system
+10
View File
@@ -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
+11
View File
@@ -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 |
+6
View File
@@ -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)