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 -125
View File
@@ -1,6 +1,6 @@
{
"date": "2026-10-22T19:44:02+00:00",
"git": "39a6df8",
"date": "2026-10-22T20:02:47+00:00",
"git": "f048a37",
"params": {
"mode": "direct",
"size_bytes": 9961472,
@@ -21,188 +21,187 @@
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 2.977,
"duration_s": 3.048,
"latency_ms": {
"p50": 373.6,
"p95": 580.2,
"p99": 606.3
"p50": 346.0,
"p95": 575.3,
"p99": 581.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 5859769,
"delta_tx_bytes": 204758,
"baseline_rss_bytes": 206934016,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1669140,
"delta_tx_bytes": 194261,
"baseline_rss_bytes": 189468672,
"peak_memory_bytes": {
"rss": 207065088,
"heap_used": 59528520,
"external": 23734700,
"array_buffers": 19944356
"rss": 189468672,
"heap_used": 59441184,
"external": 6250789,
"array_buffers": 2449996
},
"delta_rss_bytes": 131072,
"delta_rss_bytes": 0,
"counters": {
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 573886,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
"attachments.count_pending_direct": 27,
"attachments.insert_pending": 27,
"attachments.direct.initiated": 27,
"attachments.find_for_complete": 23,
"attachments.direct.verify_bytes": 1507328,
"attachments.mark_ready": 23,
"attachments.direct.completed": 23
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 2941745,
"delta_tx_bytes": 201620,
"baseline_rss_bytes": 204890112,
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1940713,
"delta_tx_bytes": 195885,
"baseline_rss_bytes": 179376128,
"peak_memory_bytes": {
"rss": 205152256,
"heap_used": 58915888,
"external": 11971121,
"array_buffers": 8180777
"rss": 180293632,
"heap_used": 59568768,
"external": 6672150,
"array_buffers": 2881806
},
"delta_rss_bytes": 262144,
"delta_rss_bytes": 917504,
"counters": {
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 454808,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
"attachments.count_pending_direct": 23,
"attachments.insert_pending": 23,
"attachments.direct.initiated": 23,
"attachments.find_for_complete": 27,
"attachments.direct.verify_bytes": 1769472,
"attachments.mark_ready": 27,
"attachments.direct.completed": 27
}
}
],
"total_delta_rx_bytes": 8801514,
"total_delta_tx_bytes": 406378,
"rx_bytes_per_upload": 176030,
"tx_bytes_per_upload": 8128,
"max_delta_rss_bytes": 262144
"total_delta_rx_bytes": 3609853,
"total_delta_tx_bytes": 390146,
"rx_bytes_per_upload": 72197,
"tx_bytes_per_upload": 7803,
"max_delta_rss_bytes": 917504
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 3.016,
"duration_s": 2.948,
"latency_ms": {
"p50": 377.9,
"p95": 493.4,
"p99": 534.7
"p50": 350.2,
"p95": 570.8,
"p99": 608.6
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3426165,
"delta_tx_bytes": 205333,
"baseline_rss_bytes": 207065088,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1803498,
"delta_tx_bytes": 194370,
"baseline_rss_bytes": 189468672,
"peak_memory_bytes": {
"rss": 210079744,
"heap_used": 59538608,
"external": 12156543,
"array_buffers": 8366167
"rss": 189861888,
"heap_used": 59295328,
"external": 6363945,
"array_buffers": 2573569
},
"delta_rss_bytes": 3014656,
"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": 553814,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
"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": 2100305,
"delta_tx_bytes": 201255,
"baseline_rss_bytes": 205152256,
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1804525,
"delta_tx_bytes": 194742,
"baseline_rss_bytes": 179740672,
"peak_memory_bytes": {
"rss": 208429056,
"heap_used": 59913256,
"external": 9769093,
"array_buffers": 5978717
"rss": 179740672,
"heap_used": 59420128,
"external": 6260844,
"array_buffers": 2470500
},
"delta_rss_bytes": 3276800,
"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": 258704,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
"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": 5526470,
"total_delta_tx_bytes": 406588,
"rx_bytes_per_upload": 110529,
"tx_bytes_per_upload": 8132,
"max_delta_rss_bytes": 3276800
"total_delta_rx_bytes": 3608023,
"total_delta_tx_bytes": 389112,
"rx_bytes_per_upload": 72160,
"tx_bytes_per_upload": 7782,
"max_delta_rss_bytes": 393216
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 3.128,
"duration_s": 2.556,
"latency_ms": {
"p50": 376.7,
"p95": 483.1,
"p99": 546.2
"p50": 314.1,
"p95": 425.2,
"p99": 453.1
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3752711,
"delta_tx_bytes": 204356,
"baseline_rss_bytes": 207192064,
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1531515,
"delta_tx_bytes": 190497,
"baseline_rss_bytes": 189861888,
"peak_memory_bytes": {
"rss": 207192064,
"heap_used": 59773496,
"external": 12099081,
"array_buffers": 8308705
"rss": 190910464,
"heap_used": 60034376,
"external": 6373249,
"array_buffers": 2582873
},
"delta_rss_bytes": 0,
"delta_rss_bytes": 1048576,
"counters": {
"attachments.claim_expired": 1,
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 458246,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
"attachments.count_pending_direct": 29,
"attachments.insert_pending": 29,
"attachments.direct.initiated": 29,
"attachments.find_for_complete": 21,
"attachments.direct.verify_bytes": 1376256,
"attachments.mark_ready": 21,
"attachments.direct.completed": 21
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3511316,
"delta_tx_bytes": 203010,
"baseline_rss_bytes": 205549568,
"instance_id": "d49b799653d6",
"delta_rx_bytes": 2076238,
"delta_tx_bytes": 196531,
"baseline_rss_bytes": 179740672,
"peak_memory_bytes": {
"rss": 205549568,
"heap_used": 59832920,
"external": 10075786,
"array_buffers": 6285218
"rss": 179740672,
"heap_used": 59642168,
"external": 6672708,
"array_buffers": 2755498
},
"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": 477352,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
"attachments.count_pending_direct": 21,
"attachments.insert_pending": 21,
"attachments.direct.initiated": 21,
"attachments.find_for_complete": 29,
"attachments.direct.verify_bytes": 1900544,
"attachments.mark_ready": 29,
"attachments.direct.completed": 29
}
}
],
"total_delta_rx_bytes": 7264027,
"total_delta_tx_bytes": 407366,
"rx_bytes_per_upload": 145281,
"tx_bytes_per_upload": 8147,
"max_delta_rss_bytes": 0
"total_delta_rx_bytes": 3607753,
"total_delta_tx_bytes": 387028,
"rx_bytes_per_upload": 72155,
"tx_bytes_per_upload": 7741,
"max_delta_rss_bytes": 1048576
}
]
}