forked from mtusi2026/mtusi2026lab4
выполнение ЛР4 на 4
- S3: SeaweedFS 4.51 (MinIO-образы недоступны), приватный bucket, отдельные ограниченные ключи API, служебные порты закрыты; идемпотентный s3-init с проверкой приватности и прогревом записи - вложения: потоковая загрузка PNG/JPEG, лимиты 10 MiB / 40 Мпикс, тип по содержимому, проверка filename, скачивание только участникам - согласованность PG/S3: pending -> PUT -> ready, компенсация, sweeper с grace и dry-run; attachment_ids в сообщениях, FK по чату - back-pressure на S3 PUT после найденного OOM SeaweedFS - тесты student-tests, evidence, REPORT.md, DEMO.md
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "body-in-RAM, 10x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 10,
|
||||
"statuses": {
|
||||
"201": 10
|
||||
},
|
||||
"per_instance": {
|
||||
"api-41dde5be": 5,
|
||||
"api-1312fe88": 5
|
||||
},
|
||||
"wall_seconds": 3.89,
|
||||
"latency_s": {
|
||||
"p50": 3.8085,
|
||||
"max": 3.883
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 147.0,
|
||||
"delta_anon": 83.1,
|
||||
"baseline_current": 69.1,
|
||||
"peak_current": 154.1,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 141.3,
|
||||
"delta_anon": 77.3,
|
||||
"baseline_current": 69.5,
|
||||
"peak_current": 149.8,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 324.5,
|
||||
"peak_anon": 426.0,
|
||||
"delta_anon": 101.5,
|
||||
"baseline_current": 700.3,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 368.7
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "16777216",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "body-in-RAM, 20x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 20,
|
||||
"statuses": {
|
||||
"201": 20
|
||||
},
|
||||
"per_instance": {
|
||||
"api-7a770f14": 10,
|
||||
"api-d37e4357": 10
|
||||
},
|
||||
"wall_seconds": 6.04,
|
||||
"latency_s": {
|
||||
"p50": 5.1419999999999995,
|
||||
"max": 6.039
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 201.6,
|
||||
"delta_anon": 137.6,
|
||||
"baseline_current": 69.3,
|
||||
"peak_current": 212.7,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.1,
|
||||
"peak_anon": 206.6,
|
||||
"delta_anon": 142.5,
|
||||
"baseline_current": 69.2,
|
||||
"peak_current": 218.6,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 326.7,
|
||||
"peak_anon": 449.2,
|
||||
"delta_anon": 122.5,
|
||||
"baseline_current": 688.2,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 373.1
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "16777216",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "body-in-RAM, 40x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 40,
|
||||
"statuses": {
|
||||
"201": 40
|
||||
},
|
||||
"per_instance": {
|
||||
"api-3c932187": 20,
|
||||
"api-a0b8ffd2": 20
|
||||
},
|
||||
"wall_seconds": 9.86,
|
||||
"latency_s": {
|
||||
"p50": 7.7555,
|
||||
"max": 9.859
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 257.9,
|
||||
"delta_anon": 194.0,
|
||||
"baseline_current": 69.3,
|
||||
"peak_current": 270.4,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 284.8,
|
||||
"delta_anon": 220.8,
|
||||
"baseline_current": 69.6,
|
||||
"peak_current": 296.2,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 333.1,
|
||||
"peak_anon": 433.5,
|
||||
"delta_anon": 100.4,
|
||||
"baseline_current": 736.0,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 387.7
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "16777216",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "stream, 10x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 10,
|
||||
"statuses": {
|
||||
"201": 10
|
||||
},
|
||||
"per_instance": {
|
||||
"api-4c952443": 5,
|
||||
"api-6a870ec1": 5
|
||||
},
|
||||
"wall_seconds": 2.73,
|
||||
"latency_s": {
|
||||
"p50": 2.5810000000000004,
|
||||
"max": 2.729
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 102.5,
|
||||
"delta_anon": 38.5,
|
||||
"baseline_current": 69.4,
|
||||
"peak_current": 155.3,
|
||||
"peak_file_cache": 45.9
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 96.3,
|
||||
"delta_anon": 32.4,
|
||||
"baseline_current": 69.2,
|
||||
"peak_current": 147.2,
|
||||
"peak_file_cache": 45.9
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 324.8,
|
||||
"peak_anon": 379.5,
|
||||
"delta_anon": 54.7,
|
||||
"baseline_current": 741.6,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 384.9
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "1048576",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "stream, 10x 40Mpx",
|
||||
"kind": "pixels",
|
||||
"file_bytes": 116709,
|
||||
"concurrency": 10,
|
||||
"statuses": {
|
||||
"201": 10
|
||||
},
|
||||
"per_instance": {
|
||||
"api-6d8b2e85": 5,
|
||||
"api-982fda78": 5
|
||||
},
|
||||
"wall_seconds": 3.17,
|
||||
"latency_s": {
|
||||
"p50": 2.0375,
|
||||
"max": 3.167
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 225.8,
|
||||
"delta_anon": 161.8,
|
||||
"baseline_current": 69.9,
|
||||
"peak_current": 233.3,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 227.8,
|
||||
"delta_anon": 163.7,
|
||||
"baseline_current": 68.7,
|
||||
"peak_current": 235.2,
|
||||
"peak_file_cache": 0.0
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 323.6,
|
||||
"peak_anon": 324.7,
|
||||
"delta_anon": 1.1,
|
||||
"baseline_current": 698.3,
|
||||
"peak_current": 700.4,
|
||||
"peak_file_cache": 346.3
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "1048576",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "stream, 20x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 20,
|
||||
"statuses": {
|
||||
"201": 20
|
||||
},
|
||||
"per_instance": {
|
||||
"api-0b7cc085": 10,
|
||||
"api-bc5d6770": 10
|
||||
},
|
||||
"wall_seconds": 5.2,
|
||||
"latency_s": {
|
||||
"p50": 4.5794999999999995,
|
||||
"max": 5.193
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 96.0,
|
||||
"delta_anon": 32.1,
|
||||
"baseline_current": 69.1,
|
||||
"peak_current": 196.8,
|
||||
"peak_file_cache": 91.7
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 101.4,
|
||||
"delta_anon": 37.3,
|
||||
"baseline_current": 69.4,
|
||||
"peak_current": 200.3,
|
||||
"peak_file_cache": 91.7
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 323.7,
|
||||
"peak_anon": 421.9,
|
||||
"delta_anon": 98.2,
|
||||
"baseline_current": 733.9,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 399.3
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "1048576",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"label": "stream, 40x noise",
|
||||
"kind": "noise",
|
||||
"file_bytes": 9617088,
|
||||
"concurrency": 40,
|
||||
"statuses": {
|
||||
"201": 40
|
||||
},
|
||||
"per_instance": {
|
||||
"api-426f6ce1": 20,
|
||||
"api-a3f1971e": 20
|
||||
},
|
||||
"wall_seconds": 9.24,
|
||||
"latency_s": {
|
||||
"p50": 6.92,
|
||||
"max": 9.231
|
||||
},
|
||||
"memory_mib": {
|
||||
"messenger-lab4-api-1": {
|
||||
"baseline_anon": 63.9,
|
||||
"peak_anon": 113.0,
|
||||
"delta_anon": 49.1,
|
||||
"baseline_current": 69.6,
|
||||
"peak_current": 268.4,
|
||||
"peak_file_cache": 146.8
|
||||
},
|
||||
"messenger-lab4-api-2": {
|
||||
"baseline_anon": 64.0,
|
||||
"peak_anon": 110.0,
|
||||
"delta_anon": 45.9,
|
||||
"baseline_current": 69.4,
|
||||
"peak_current": 269.5,
|
||||
"peak_file_cache": 146.8
|
||||
},
|
||||
"messenger-lab4-s3-1": {
|
||||
"baseline_anon": 330.5,
|
||||
"peak_anon": 403.0,
|
||||
"delta_anon": 72.5,
|
||||
"baseline_current": 759.4,
|
||||
"peak_current": 768.0,
|
||||
"peak_file_cache": 403.0
|
||||
}
|
||||
},
|
||||
"api_env": {
|
||||
"UPLOAD_SPOOL_BYTES": "1048576",
|
||||
"UPLOAD_CONCURRENCY": "16",
|
||||
"DECODE_CONCURRENCY": "1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user