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
+118 -112
View File
@@ -1,6 +1,6 @@
{
"date": "2026-10-22T20:02:09+00:00",
"git": "f048a37",
"date": "2026-10-23T13:32:40+00:00",
"git": "b32ce9a",
"params": {
"mode": "direct",
"size_bytes": 131072,
@@ -21,85 +21,87 @@
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.242,
"duration_s": 0.421,
"latency_ms": {
"p50": 43.2,
"p95": 56.1,
"p99": 59.7
"p50": 68.3,
"p95": 104.0,
"p99": 117.0
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1869074,
"delta_tx_bytes": 185920,
"baseline_rss_bytes": 182263808,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 3707052,
"delta_tx_bytes": 186917,
"baseline_rss_bytes": 193892352,
"peak_memory_bytes": {
"rss": 182898688,
"heap_used": 53275328,
"external": 9220810,
"array_buffers": 5428348
"rss": 195555328,
"heap_used": 52983040,
"external": 6914994,
"array_buffers": 3122532
},
"delta_rss_bytes": 634880,
"delta_rss_bytes": 1662976,
"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.mark_ready": 26,
"attachments.direct.completed": 26
"attachments.count_pending_direct": 23,
"attachments.insert_pending": 23,
"attachments.direct.initiated": 23,
"attachments.find_for_complete": 27,
"attachments.direct.verify_bytes": 3538944,
"attachments.decode.ms": 666.184485999991,
"attachments.mark_ready": 27,
"attachments.direct.completed": 27
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1732185,
"delta_tx_bytes": 183862,
"baseline_rss_bytes": 173453312,
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 3172669,
"delta_tx_bytes": 183467,
"baseline_rss_bytes": 194297856,
"peak_memory_bytes": {
"rss": 173862912,
"heap_used": 51776512,
"external": 7372259,
"array_buffers": 3579797
"rss": 196395008,
"heap_used": 53364080,
"external": 9480998,
"array_buffers": 5688536
},
"delta_rss_bytes": 409600,
"delta_rss_bytes": 2097152,
"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": 27,
"attachments.insert_pending": 27,
"attachments.direct.initiated": 27,
"attachments.find_for_complete": 23,
"attachments.direct.verify_bytes": 3014656,
"attachments.decode.ms": 578.859613999979,
"attachments.mark_ready": 23,
"attachments.direct.completed": 23
}
}
],
"total_delta_rx_bytes": 3601259,
"total_delta_tx_bytes": 369782,
"rx_bytes_per_upload": 72025,
"tx_bytes_per_upload": 7396,
"max_delta_rss_bytes": 634880
"total_delta_rx_bytes": 6879721,
"total_delta_tx_bytes": 370384,
"rx_bytes_per_upload": 137594,
"tx_bytes_per_upload": 7408,
"max_delta_rss_bytes": 2097152
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.254,
"duration_s": 0.419,
"latency_ms": {
"p50": 44.9,
"p95": 64.9,
"p99": 74.0
"p50": 78.9,
"p95": 123.4,
"p99": 144.3
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1663798,
"delta_tx_bytes": 181411,
"baseline_rss_bytes": 182898688,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 3172151,
"delta_tx_bytes": 182160,
"baseline_rss_bytes": 195555328,
"peak_memory_bytes": {
"rss": 183029760,
"heap_used": 52623040,
"external": 9199397,
"array_buffers": 5406935
"rss": 195686400,
"heap_used": 55040192,
"external": 7674854,
"array_buffers": 3882392
},
"delta_rss_bytes": 131072,
"counters": {
@@ -107,101 +109,105 @@
"attachments.insert_pending": 27,
"attachments.direct.initiated": 27,
"attachments.find_for_complete": 23,
"attachments.direct.verify_bytes": 1507328,
"attachments.direct.verify_bytes": 3014656,
"attachments.decode.ms": 521.6287550000125,
"attachments.mark_ready": 23,
"attachments.direct.completed": 23
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1936597,
"delta_tx_bytes": 185873,
"baseline_rss_bytes": 173862912,
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 3706567,
"delta_tx_bytes": 185794,
"baseline_rss_bytes": 196395008,
"peak_memory_bytes": {
"rss": 174125056,
"heap_used": 53719328,
"external": 7649562,
"array_buffers": 3857100
"rss": 196788224,
"heap_used": 53658784,
"external": 10141571,
"array_buffers": 6134972
},
"delta_rss_bytes": 262144,
"delta_rss_bytes": 393216,
"counters": {
"attachments.count_pending_direct": 23,
"attachments.insert_pending": 23,
"attachments.direct.initiated": 23,
"attachments.find_for_complete": 27,
"attachments.direct.verify_bytes": 1769472,
"attachments.direct.verify_bytes": 3538944,
"attachments.decode.ms": 674.9609369999744,
"attachments.mark_ready": 27,
"attachments.direct.completed": 27
}
}
],
"total_delta_rx_bytes": 3600395,
"total_delta_tx_bytes": 367284,
"rx_bytes_per_upload": 72008,
"tx_bytes_per_upload": 7346,
"max_delta_rss_bytes": 262144
"total_delta_rx_bytes": 6878718,
"total_delta_tx_bytes": 367954,
"rx_bytes_per_upload": 137574,
"tx_bytes_per_upload": 7359,
"max_delta_rss_bytes": 393216
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.441,
"duration_s": 0.395,
"latency_ms": {
"p50": 80.3,
"p95": 124.0,
"p99": 127.6
"p50": 67.0,
"p95": 95.3,
"p99": 116.5
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 2007125,
"delta_tx_bytes": 186925,
"baseline_rss_bytes": 183029760,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 3305839,
"delta_tx_bytes": 183731,
"baseline_rss_bytes": 191291392,
"peak_memory_bytes": {
"rss": 183447552,
"heap_used": 56507192,
"external": 9369635,
"array_buffers": 5577173
"rss": 192471040,
"heap_used": 56329664,
"external": 7513663,
"array_buffers": 3721201
},
"delta_rss_bytes": 417792,
"delta_rss_bytes": 1179648,
"counters": {
"attachments.count_pending_direct": 22,
"attachments.insert_pending": 22,
"attachments.direct.initiated": 22,
"attachments.find_for_complete": 28,
"attachments.direct.verify_bytes": 1835008,
"attachments.mark_ready": 28,
"attachments.direct.completed": 28
"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": 499.52755800001614,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1596449,
"delta_tx_bytes": 182757,
"baseline_rss_bytes": 174125056,
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 3572208,
"delta_tx_bytes": 183605,
"baseline_rss_bytes": 196788224,
"peak_memory_bytes": {
"rss": 174387200,
"heap_used": 54337704,
"external": 7649635,
"array_buffers": 3857173
"rss": 197181440,
"heap_used": 55084856,
"external": 7691196,
"array_buffers": 3898734
},
"delta_rss_bytes": 262144,
"delta_rss_bytes": 393216,
"counters": {
"attachments.count_pending_direct": 28,
"attachments.insert_pending": 28,
"attachments.direct.initiated": 28,
"attachments.find_for_complete": 22,
"attachments.direct.verify_bytes": 1441792,
"attachments.mark_ready": 22,
"attachments.direct.completed": 22
"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": 667.7248300000065,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
}
],
"total_delta_rx_bytes": 3603574,
"total_delta_tx_bytes": 369682,
"rx_bytes_per_upload": 72071,
"tx_bytes_per_upload": 7394,
"max_delta_rss_bytes": 417792
"total_delta_rx_bytes": 6878047,
"total_delta_tx_bytes": 367336,
"rx_bytes_per_upload": 137561,
"tx_bytes_per_upload": 7347,
"max_delta_rss_bytes": 1179648
}
]
}