lab4: компенсация без потери объекта при потере ответа COMMIT, полный декод изображений (sharp) в proxy и direct complete

This commit is contained in:
2026-10-23 16:37:13 +03:00
parent b32ce9a75d
commit 4badd5a7b9
33 changed files with 1932 additions and 861 deletions
+146 -140
View File
@@ -1,6 +1,6 @@
{
"date": "2026-10-22T20:02:21+00:00",
"git": "f048a37",
"date": "2026-10-23T13:32:53+00:00",
"git": "b32ce9a",
"params": {
"mode": "direct",
"size_bytes": 1048576,
@@ -21,187 +21,193 @@
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.542,
"duration_s": 0.939,
"latency_ms": {
"p50": 69.2,
"p95": 101.4,
"p99": 125.5
"p50": 168.0,
"p95": 249.0,
"p99": 276.8
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1732876,
"delta_tx_bytes": 185102,
"baseline_rss_bytes": 192851968,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 32727785,
"delta_tx_bytes": 202005,
"baseline_rss_bytes": 227401728,
"peak_memory_bytes": {
"rss": 192983040,
"heap_used": 51764168,
"external": 7874039,
"array_buffers": 4083695
"rss": 237686784,
"heap_used": 55834912,
"external": 36616919,
"array_buffers": 32826575
},
"delta_rss_bytes": 131072,
"delta_rss_bytes": 10285056,
"counters": {
"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
"attachments.count_pending_direct": 19,
"attachments.insert_pending": 19,
"attachments.direct.initiated": 19,
"attachments.find_for_complete": 31,
"attachments.direct.verify_bytes": 32505856,
"attachments.decode.ms": 1715.4081129999686,
"attachments.mark_ready": 31,
"attachments.direct.completed": 31
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1868893,
"delta_tx_bytes": 186494,
"baseline_rss_bytes": 181489664,
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 20096072,
"delta_tx_bytes": 188541,
"baseline_rss_bytes": 215158784,
"peak_memory_bytes": {
"rss": 182013952,
"heap_used": 53099792,
"external": 7642630,
"array_buffers": 3852254
"rss": 219668480,
"heap_used": 53068512,
"external": 26447857,
"array_buffers": 22657513
},
"delta_rss_bytes": 524288,
"delta_rss_bytes": 4509696,
"counters": {
"attachments.count_pending_direct": 31,
"attachments.insert_pending": 31,
"attachments.direct.initiated": 31,
"attachments.find_for_complete": 19,
"attachments.direct.verify_bytes": 19922944,
"attachments.decode.ms": 711.329723999952,
"attachments.mark_ready": 19,
"attachments.direct.completed": 19
}
}
],
"total_delta_rx_bytes": 52823857,
"total_delta_tx_bytes": 390546,
"rx_bytes_per_upload": 1056477,
"tx_bytes_per_upload": 7811,
"max_delta_rss_bytes": 10285056
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.91,
"latency_ms": {
"p50": 151.5,
"p95": 258.3,
"p99": 269.0
},
"replicas": [
{
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 27461632,
"delta_tx_bytes": 190483,
"baseline_rss_bytes": 235499520,
"peak_memory_bytes": {
"rss": 235499520,
"heap_used": 55890664,
"external": 36465919,
"array_buffers": 32675575
},
"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": 1703936,
"attachments.direct.verify_bytes": 27262976,
"attachments.decode.ms": 1528.2079319999611,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
},
{
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 25359054,
"delta_tx_bytes": 191385,
"baseline_rss_bytes": 209186816,
"peak_memory_bytes": {
"rss": 224399360,
"heap_used": 55409152,
"external": 31990072,
"array_buffers": 25029140
},
"delta_rss_bytes": 15212544,
"counters": {
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 25165824,
"attachments.decode.ms": 1024.5066690000385,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
}
],
"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
"total_delta_rx_bytes": 52820686,
"total_delta_tx_bytes": 381868,
"rx_bytes_per_upload": 1056414,
"tx_bytes_per_upload": 7637,
"max_delta_rss_bytes": 15212544
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.685,
"duration_s": 0.936,
"latency_ms": {
"p50": 111.1,
"p95": 137.0,
"p99": 142.2
"p50": 164.5,
"p95": 215.8,
"p99": 221.0
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1800815,
"delta_tx_bytes": 186876,
"baseline_rss_bytes": 192983040,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 27463159,
"delta_tx_bytes": 187686,
"baseline_rss_bytes": 226234368,
"peak_memory_bytes": {
"rss": 193507328,
"heap_used": 51579728,
"external": 6754919,
"array_buffers": 2800370
"rss": 231608320,
"heap_used": 55751432,
"external": 34449311,
"array_buffers": 30658967
},
"delta_rss_bytes": 524288,
"delta_rss_bytes": 5373952,
"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
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 27262976,
"attachments.decode.ms": 975.2134359999909,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1800709,
"delta_tx_bytes": 185964,
"baseline_rss_bytes": 182013952,
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 25357194,
"delta_tx_bytes": 186994,
"baseline_rss_bytes": 223174656,
"peak_memory_bytes": {
"rss": 182800384,
"heap_used": 53017320,
"external": 7914245,
"array_buffers": 4123869
"rss": 225120256,
"heap_used": 53461888,
"external": 29769942,
"array_buffers": 25979406
},
"delta_rss_bytes": 786432,
"delta_rss_bytes": 1945600,
"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
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 25165824,
"attachments.decode.ms": 805.6966420000099,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
}
],
"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.552,
"latency_ms": {
"p50": 75.4,
"p95": 147.0,
"p99": 157.9
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1801291,
"delta_tx_bytes": 185886,
"baseline_rss_bytes": 193396736,
"peak_memory_bytes": {
"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": {
"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": 3602002,
"total_delta_tx_bytes": 370992,
"rx_bytes_per_upload": 72040,
"tx_bytes_per_upload": 7420,
"max_delta_rss_bytes": 917504
"total_delta_rx_bytes": 52820353,
"total_delta_tx_bytes": 374680,
"rx_bytes_per_upload": 1056407,
"tx_bytes_per_upload": 7494,
"max_delta_rss_bytes": 5373952
}
]
}