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
+172 -166
View File
@@ -1,6 +1,6 @@
{
"date": "2026-10-22T20:02:47+00:00",
"git": "f048a37",
"date": "2026-10-23T13:33:31+00:00",
"git": "b32ce9a",
"params": {
"mode": "direct",
"size_bytes": 9961472,
@@ -21,23 +21,174 @@
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 3.048,
"duration_s": 5.212,
"latency_ms": {
"p50": 346.0,
"p95": 575.3,
"p99": 581.2
"p50": 693.0,
"p95": 1084.0,
"p99": 1175.0
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1669140,
"delta_tx_bytes": 194261,
"baseline_rss_bytes": 189468672,
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 269480509,
"delta_tx_bytes": 305993,
"baseline_rss_bytes": 283983872,
"peak_memory_bytes": {
"rss": 189468672,
"heap_used": 59441184,
"external": 6250789,
"array_buffers": 2449996
"rss": 404570112,
"heap_used": 50680344,
"external": 123548186,
"array_buffers": 119757842
},
"delta_rss_bytes": 120586240,
"counters": {
"attachments.count_pending_direct": 23,
"attachments.insert_pending": 23,
"attachments.direct.initiated": 23,
"attachments.find_for_complete": 27,
"attachments.direct.verify_bytes": 268959744,
"attachments.decode.ms": 6438.860078999976,
"attachments.mark_ready": 27,
"attachments.direct.completed": 27
}
},
{
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 229561819,
"delta_tx_bytes": 313227,
"baseline_rss_bytes": 328466432,
"peak_memory_bytes": {
"rss": 385613824,
"heap_used": 52894936,
"external": 114148298,
"array_buffers": 110357821
},
"delta_rss_bytes": 57147392,
"counters": {
"attachments.count_pending_direct": 27,
"attachments.insert_pending": 27,
"attachments.direct.initiated": 27,
"attachments.find_for_complete": 23,
"attachments.direct.verify_bytes": 229113856,
"attachments.decode.ms": 5666.515076999989,
"attachments.mark_ready": 23,
"attachments.direct.completed": 23
}
}
],
"total_delta_rx_bytes": 499042328,
"total_delta_tx_bytes": 619220,
"rx_bytes_per_upload": 9980847,
"tx_bytes_per_upload": 12384,
"max_delta_rss_bytes": 120586240
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 4.689,
"latency_ms": {
"p50": 668.9,
"p95": 1081.6,
"p99": 1164.9
},
"replicas": [
{
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 249519521,
"delta_tx_bytes": 283986,
"baseline_rss_bytes": 324087808,
"peak_memory_bytes": {
"rss": 408424448,
"heap_used": 51009296,
"external": 126698352,
"array_buffers": 122908008
},
"delta_rss_bytes": 84336640,
"counters": {
"attachments.count_pending_direct": 25,
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 249036800,
"attachments.decode.ms": 6319.900557000001,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
},
{
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 249503096,
"delta_tx_bytes": 276564,
"baseline_rss_bytes": 320462848,
"peak_memory_bytes": {
"rss": 388620288,
"heap_used": 50687792,
"external": 135613815,
"array_buffers": 131823471
},
"delta_rss_bytes": 68157440,
"counters": {
"attachments.count_pending_direct": 25,
"attachments.insert_pending": 25,
"attachments.direct.initiated": 25,
"attachments.find_for_complete": 25,
"attachments.direct.verify_bytes": 249036800,
"attachments.decode.ms": 6777.923052999977,
"attachments.mark_ready": 25,
"attachments.direct.completed": 25
}
}
],
"total_delta_rx_bytes": 499022617,
"total_delta_tx_bytes": 560550,
"rx_bytes_per_upload": 9980452,
"tx_bytes_per_upload": 11211,
"max_delta_rss_bytes": 84336640
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 4.773,
"latency_ms": {
"p50": 695.7,
"p95": 1021.4,
"p99": 1371.6
},
"replicas": [
{
"instance_id": "7c7cf67931e5",
"delta_rx_bytes": 269526599,
"delta_tx_bytes": 273432,
"baseline_rss_bytes": 303702016,
"peak_memory_bytes": {
"rss": 389439488,
"heap_used": 50333808,
"external": 124077219,
"array_buffers": 120286875
},
"delta_rss_bytes": 85737472,
"counters": {
"attachments.count_pending_direct": 23,
"attachments.insert_pending": 23,
"attachments.direct.initiated": 23,
"attachments.find_for_complete": 27,
"attachments.direct.verify_bytes": 268959744,
"attachments.decode.ms": 7513.258526999998,
"attachments.mark_ready": 27,
"attachments.direct.completed": 27
}
},
{
"instance_id": "ff9a363e52b1",
"delta_rx_bytes": 229549332,
"delta_tx_bytes": 263832,
"baseline_rss_bytes": 367620096,
"peak_memory_bytes": {
"rss": 367620096,
"heap_used": 50715496,
"external": 84222677,
"array_buffers": 80432333
},
"delta_rss_bytes": 0,
"counters": {
@@ -45,163 +196,18 @@
"attachments.insert_pending": 27,
"attachments.direct.initiated": 27,
"attachments.find_for_complete": 23,
"attachments.direct.verify_bytes": 1507328,
"attachments.direct.verify_bytes": 229113856,
"attachments.decode.ms": 6132.513337000011,
"attachments.mark_ready": 23,
"attachments.direct.completed": 23
}
},
{
"instance_id": "d49b799653d6",
"delta_rx_bytes": 1940713,
"delta_tx_bytes": 195885,
"baseline_rss_bytes": 179376128,
"peak_memory_bytes": {
"rss": 180293632,
"heap_used": 59568768,
"external": 6672150,
"array_buffers": 2881806
},
"delta_rss_bytes": 917504,
"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.mark_ready": 27,
"attachments.direct.completed": 27
}
}
],
"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": 2.948,
"latency_ms": {
"p50": 350.2,
"p95": 570.8,
"p99": 608.6
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1803498,
"delta_tx_bytes": 194370,
"baseline_rss_bytes": 189468672,
"peak_memory_bytes": {
"rss": 189861888,
"heap_used": 59295328,
"external": 6363945,
"array_buffers": 2573569
},
"delta_rss_bytes": 393216,
"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": 1804525,
"delta_tx_bytes": 194742,
"baseline_rss_bytes": 179740672,
"peak_memory_bytes": {
"rss": 179740672,
"heap_used": 59420128,
"external": 6260844,
"array_buffers": 2470500
},
"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": 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": 2.556,
"latency_ms": {
"p50": 314.1,
"p95": 425.2,
"p99": 453.1
},
"replicas": [
{
"instance_id": "01e84e9e9e38",
"delta_rx_bytes": 1531515,
"delta_tx_bytes": 190497,
"baseline_rss_bytes": 189861888,
"peak_memory_bytes": {
"rss": 190910464,
"heap_used": 60034376,
"external": 6373249,
"array_buffers": 2582873
},
"delta_rss_bytes": 1048576,
"counters": {
"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": "d49b799653d6",
"delta_rx_bytes": 2076238,
"delta_tx_bytes": 196531,
"baseline_rss_bytes": 179740672,
"peak_memory_bytes": {
"rss": 179740672,
"heap_used": 59642168,
"external": 6672708,
"array_buffers": 2755498
},
"delta_rss_bytes": 0,
"counters": {
"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": 3607753,
"total_delta_tx_bytes": 387028,
"rx_bytes_per_upload": 72155,
"tx_bytes_per_upload": 7741,
"max_delta_rss_bytes": 1048576
"total_delta_rx_bytes": 499075931,
"total_delta_tx_bytes": 537264,
"rx_bytes_per_upload": 9981519,
"tx_bytes_per_upload": 10745,
"max_delta_rss_bytes": 85737472
}
]
}