lab4: исправления по ревью (парсеры image/text только на upload, rejected-статус прямой загрузки, диапазон 64 KiB, отчёт)

This commit is contained in:
2026-10-22 23:04:05 +03:00
parent f048a37df9
commit 830e5811fc
20 changed files with 933 additions and 805 deletions
+124 -124
View File
@@ -1,6 +1,6 @@
{
"date": "2026-10-22T19:43:37+00:00",
"git": "39a6df8",
"date": "2026-10-22T20:02:21+00:00",
"git": "f048a37",
"params": {
"mode": "direct",
"size_bytes": 1048576,
@@ -21,147 +21,169 @@
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.472,
"duration_s": 0.542,
"latency_ms": {
"p50": 68.8,
"p95": 100.5,
"p99": 116.7
"p50": 69.2,
"p95": 101.4,
"p99": 125.5
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 24305156,
"delta_tx_bytes": 190336,
"baseline_rss_bytes": 196403200,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1732876,
"delta_tx_bytes": 185102,
"baseline_rss_bytes": 192851968,
"peak_memory_bytes": {
"rss": 196403200,
"heap_used": 54520056,
"external": 19317560,
"array_buffers": 15527216
"rss": 192983040,
"heap_used": 51764168,
"external": 7874039,
"array_buffers": 4083695
},
"delta_rss_bytes": 0,
"delta_rss_bytes": 131072,
"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.mark_ready": 23,
"attachments.direct.completed": 23
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 1572864,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 28515385,
"delta_tx_bytes": 191536,
"baseline_rss_bytes": 192991232,
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1868893,
"delta_tx_bytes": 186494,
"baseline_rss_bytes": 181489664,
"peak_memory_bytes": {
"rss": 192991232,
"heap_used": 50609288,
"external": 23827415,
"array_buffers": 13323225
"rss": 182013952,
"heap_used": 53099792,
"external": 7642630,
"array_buffers": 3852254
},
"delta_rss_bytes": 0,
"delta_rss_bytes": 524288,
"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.mark_ready": 27,
"attachments.direct.completed": 27
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 1703936,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
}
],
"total_delta_rx_bytes": 52820541,
"total_delta_tx_bytes": 381872,
"rx_bytes_per_upload": 1056411,
"tx_bytes_per_upload": 7637,
"max_delta_rss_bytes": 0
"total_delta_rx_bytes": 3601769,
"total_delta_tx_bytes": 371596,
"rx_bytes_per_upload": 72035,
"tx_bytes_per_upload": 7432,
"max_delta_rss_bytes": 524288
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.526,
"duration_s": 0.685,
"latency_ms": {
"p50": 73.9,
"p95": 109.6,
"p99": 127.7
"p50": 111.1,
"p95": 137.0,
"p99": 142.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 28515174,
"delta_tx_bytes": 193117,
"baseline_rss_bytes": 193875968,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1800815,
"delta_tx_bytes": 186876,
"baseline_rss_bytes": 192983040,
"peak_memory_bytes": {
"rss": 203390976,
"heap_used": 57046056,
"external": 29834167,
"array_buffers": 26043823
"rss": 193507328,
"heap_used": 51579728,
"external": 6754919,
"array_buffers": 2800370
},
"delta_rss_bytes": 9515008,
"delta_rss_bytes": 524288,
"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.mark_ready": 27,
"attachments.direct.completed": 27
"attachments.count_pending_direct": 25,
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 1638400,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 24304620,
"delta_tx_bytes": 183249,
"baseline_rss_bytes": 187240448,
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1800709,
"delta_tx_bytes": 185964,
"baseline_rss_bytes": 182013952,
"peak_memory_bytes": {
"rss": 193400832,
"heap_used": 55168312,
"external": 23469861,
"array_buffers": 19679517
"rss": 182800384,
"heap_used": 53017320,
"external": 7914245,
"array_buffers": 4123869
},
"delta_rss_bytes": 6160384,
"delta_rss_bytes": 786432,
"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.mark_ready": 23,
"attachments.direct.completed": 23
"attachments.count_pending_direct": 25,
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 1638400,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
}
],
"total_delta_rx_bytes": 52819794,
"total_delta_tx_bytes": 376366,
"rx_bytes_per_upload": 1056396,
"tx_bytes_per_upload": 7527,
"max_delta_rss_bytes": 9515008
"total_delta_rx_bytes": 3601524,
"total_delta_tx_bytes": 372840,
"rx_bytes_per_upload": 72030,
"tx_bytes_per_upload": 7457,
"max_delta_rss_bytes": 786432
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.466,
"duration_s": 0.552,
"latency_ms": {
"p50": 64.7,
"p95": 93.7,
"p99": 107.8
"p50": 75.4,
"p95": 147.0,
"p99": 157.9
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 26412041,
"delta_tx_bytes": 186281,
"baseline_rss_bytes": 195010560,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1801291,
"delta_tx_bytes": 185886,
"baseline_rss_bytes": 193396736,
"peak_memory_bytes": {
"rss": 195010560,
"heap_used": 51614528,
"external": 19277639,
"array_buffers": 15487295
"rss": 194314240,
"heap_used": 52852056,
"external": 6737214,
"array_buffers": 2946870
},
"delta_rss_bytes": 917504,
"counters": {
"attachments.count_pending_direct": 25,
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 1638400,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1800711,
"delta_tx_bytes": 185106,
"baseline_rss_bytes": 182374400,
"peak_memory_bytes": {
"rss": 182374400,
"heap_used": 53283160,
"external": 7898022,
"array_buffers": 3970019
},
"delta_rss_bytes": 0,
"counters": {
@@ -169,39 +191,17 @@
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 26214400,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 26410201,
"delta_tx_bytes": 187551,
"baseline_rss_bytes": 190717952,
"peak_memory_bytes": {
"rss": 194781184,
"heap_used": 53366896,
"external": 19243061,
"array_buffers": 15452717
},
"delta_rss_bytes": 4063232,
"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.direct.verify_bytes": 1638400,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
}
],
"total_delta_rx_bytes": 52822242,
"total_delta_tx_bytes": 373832,
"rx_bytes_per_upload": 1056445,
"tx_bytes_per_upload": 7477,
"max_delta_rss_bytes": 4063232
"total_delta_rx_bytes": 3602002,
"total_delta_tx_bytes": 370992,
"rx_bytes_per_upload": 72040,
"tx_bytes_per_upload": 7420,
"max_delta_rss_bytes": 917504
}
]
}