lab4: evidence, REPORT.md, форматирование

This commit is contained in:
2026-10-22 22:47:48 +03:00
parent 39a6df8c09
commit f048a37df9
22 changed files with 1782 additions and 17 deletions
+207
View File
@@ -0,0 +1,207 @@
{
"date": "2026-10-22T19:43:37+00:00",
"git": "39a6df8",
"params": {
"mode": "direct",
"size_bytes": 1048576,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.472,
"latency_ms": {
"p50": 68.8,
"p95": 100.5,
"p99": 116.7
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 24305156,
"delta_tx_bytes": 190336,
"baseline_rss_bytes": 196403200,
"peak_memory_bytes": {
"rss": 196403200,
"heap_used": 54520056,
"external": 19317560,
"array_buffers": 15527216
},
"delta_rss_bytes": 0,
"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
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 28515385,
"delta_tx_bytes": 191536,
"baseline_rss_bytes": 192991232,
"peak_memory_bytes": {
"rss": 192991232,
"heap_used": 50609288,
"external": 23827415,
"array_buffers": 13323225
},
"delta_rss_bytes": 0,
"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
}
}
],
"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
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.526,
"latency_ms": {
"p50": 73.9,
"p95": 109.6,
"p99": 127.7
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 28515174,
"delta_tx_bytes": 193117,
"baseline_rss_bytes": 193875968,
"peak_memory_bytes": {
"rss": 203390976,
"heap_used": 57046056,
"external": 29834167,
"array_buffers": 26043823
},
"delta_rss_bytes": 9515008,
"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
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 24304620,
"delta_tx_bytes": 183249,
"baseline_rss_bytes": 187240448,
"peak_memory_bytes": {
"rss": 193400832,
"heap_used": 55168312,
"external": 23469861,
"array_buffers": 19679517
},
"delta_rss_bytes": 6160384,
"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
}
}
],
"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
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.466,
"latency_ms": {
"p50": 64.7,
"p95": 93.7,
"p99": 107.8
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 26412041,
"delta_tx_bytes": 186281,
"baseline_rss_bytes": 195010560,
"peak_memory_bytes": {
"rss": 195010560,
"heap_used": 51614528,
"external": 19277639,
"array_buffers": 15487295
},
"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": 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.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
}
]
}
+207
View File
@@ -0,0 +1,207 @@
{
"date": "2026-10-22T19:43:26+00:00",
"git": "39a6df8",
"params": {
"mode": "direct",
"size_bytes": 131072,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.265,
"latency_ms": {
"p50": 48.2,
"p95": 62.4,
"p99": 72.8
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3306431,
"delta_tx_bytes": 182851,
"baseline_rss_bytes": 182366208,
"peak_memory_bytes": {
"rss": 184594432,
"heap_used": 61323144,
"external": 8848467,
"array_buffers": 5055973
},
"delta_rss_bytes": 2228224,
"counters": {
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 3145728,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3573839,
"delta_tx_bytes": 184939,
"baseline_rss_bytes": 182042624,
"peak_memory_bytes": {
"rss": 182796288,
"heap_used": 60727960,
"external": 8999631,
"array_buffers": 5207169
},
"delta_rss_bytes": 753664,
"counters": {
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 3407872,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
}
],
"total_delta_rx_bytes": 6880270,
"total_delta_tx_bytes": 367790,
"rx_bytes_per_upload": 137605,
"tx_bytes_per_upload": 7356,
"max_delta_rss_bytes": 2228224
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.211,
"latency_ms": {
"p50": 36.7,
"p95": 50.0,
"p99": 54.8
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3574513,
"delta_tx_bytes": 184486,
"baseline_rss_bytes": 184594432,
"peak_memory_bytes": {
"rss": 184987648,
"heap_used": 60934432,
"external": 9389278,
"array_buffers": 5596784
},
"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": 3407872,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3306277,
"delta_tx_bytes": 181456,
"baseline_rss_bytes": 182796288,
"peak_memory_bytes": {
"rss": 183058432,
"heap_used": 59419712,
"external": 8997869,
"array_buffers": 5205407
},
"delta_rss_bytes": 262144,
"counters": {
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 3145728,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
}
],
"total_delta_rx_bytes": 6880790,
"total_delta_tx_bytes": 365942,
"rx_bytes_per_upload": 137616,
"tx_bytes_per_upload": 7319,
"max_delta_rss_bytes": 393216
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.241,
"latency_ms": {
"p50": 41.6,
"p95": 64.6,
"p99": 72.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3574028,
"delta_tx_bytes": 183565,
"baseline_rss_bytes": 184987648,
"peak_memory_bytes": {
"rss": 185643008,
"heap_used": 62756424,
"external": 9669133,
"array_buffers": 5876639
},
"delta_rss_bytes": 655360,
"counters": {
"attachments.count_pending_direct": 24,
"attachments.insert_pending": 24,
"attachments.direct.initiated": 24,
"attachments.find_for_complete": 26,
"attachments.direct.verify_bytes": 3407872,
"attachments.mark_ready": 26,
"attachments.direct.completed": 26
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3306617,
"delta_tx_bytes": 181349,
"baseline_rss_bytes": 183058432,
"peak_memory_bytes": {
"rss": 183713792,
"heap_used": 62301928,
"external": 9312649,
"array_buffers": 5520187
},
"delta_rss_bytes": 655360,
"counters": {
"attachments.count_pending_direct": 26,
"attachments.insert_pending": 26,
"attachments.direct.initiated": 26,
"attachments.find_for_complete": 24,
"attachments.direct.verify_bytes": 3145728,
"attachments.mark_ready": 24,
"attachments.direct.completed": 24
}
}
],
"total_delta_rx_bytes": 6880645,
"total_delta_tx_bytes": 364914,
"rx_bytes_per_upload": 137613,
"tx_bytes_per_upload": 7298,
"max_delta_rss_bytes": 655360
}
]
}
+208
View File
@@ -0,0 +1,208 @@
{
"date": "2026-10-22T19:44:02+00:00",
"git": "39a6df8",
"params": {
"mode": "direct",
"size_bytes": 9961472,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 2.977,
"latency_ms": {
"p50": 373.6,
"p95": 580.2,
"p99": 606.3
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 5859769,
"delta_tx_bytes": 204758,
"baseline_rss_bytes": 206934016,
"peak_memory_bytes": {
"rss": 207065088,
"heap_used": 59528520,
"external": 23734700,
"array_buffers": 19944356
},
"delta_rss_bytes": 131072,
"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
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 2941745,
"delta_tx_bytes": 201620,
"baseline_rss_bytes": 204890112,
"peak_memory_bytes": {
"rss": 205152256,
"heap_used": 58915888,
"external": 11971121,
"array_buffers": 8180777
},
"delta_rss_bytes": 262144,
"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
}
}
],
"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
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 3.016,
"latency_ms": {
"p50": 377.9,
"p95": 493.4,
"p99": 534.7
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3426165,
"delta_tx_bytes": 205333,
"baseline_rss_bytes": 207065088,
"peak_memory_bytes": {
"rss": 210079744,
"heap_used": 59538608,
"external": 12156543,
"array_buffers": 8366167
},
"delta_rss_bytes": 3014656,
"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
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 2100305,
"delta_tx_bytes": 201255,
"baseline_rss_bytes": 205152256,
"peak_memory_bytes": {
"rss": 208429056,
"heap_used": 59913256,
"external": 9769093,
"array_buffers": 5978717
},
"delta_rss_bytes": 3276800,
"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
}
}
],
"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
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 3.128,
"latency_ms": {
"p50": 376.7,
"p95": 483.1,
"p99": 546.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3752711,
"delta_tx_bytes": 204356,
"baseline_rss_bytes": 207192064,
"peak_memory_bytes": {
"rss": 207192064,
"heap_used": 59773496,
"external": 12099081,
"array_buffers": 8308705
},
"delta_rss_bytes": 0,
"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
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3511316,
"delta_tx_bytes": 203010,
"baseline_rss_bytes": 205549568,
"peak_memory_bytes": {
"rss": 205549568,
"heap_used": 59832920,
"external": 10075786,
"array_buffers": 6285218
},
"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
}
}
],
"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
}
]
}
+195
View File
@@ -0,0 +1,195 @@
{
"date": "2026-10-22T19:43:32+00:00",
"git": "39a6df8",
"params": {
"mode": "proxy",
"size_bytes": 1048576,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.391,
"latency_ms": {
"p50": 44.5,
"p95": 80.1,
"p99": 85.9
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 26377008,
"delta_tx_bytes": 26400949,
"baseline_rss_bytes": 185679872,
"peak_memory_bytes": {
"rss": 191053824,
"heap_used": 54312648,
"external": 18076371,
"array_buffers": 14283909
},
"delta_rss_bytes": 5373952,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 26381521,
"delta_tx_bytes": 26398219,
"baseline_rss_bytes": 183795712,
"peak_memory_bytes": {
"rss": 187359232,
"heap_used": 62541304,
"external": 18146585,
"array_buffers": 9966050
},
"delta_rss_bytes": 3563520,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 52758529,
"total_delta_tx_bytes": 52799168,
"rx_bytes_per_upload": 1055171,
"tx_bytes_per_upload": 1055983,
"max_delta_rss_bytes": 5373952
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.387,
"latency_ms": {
"p50": 47.1,
"p95": 78.9,
"p99": 92.5
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 26389036,
"delta_tx_bytes": 26402274,
"baseline_rss_bytes": 191053824,
"peak_memory_bytes": {
"rss": 196558848,
"heap_used": 56457808,
"external": 23809883,
"array_buffers": 20017421
},
"delta_rss_bytes": 5505024,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 26383409,
"delta_tx_bytes": 26401615,
"baseline_rss_bytes": 187490304,
"peak_memory_bytes": {
"rss": 187490304,
"heap_used": 49941720,
"external": 17342677,
"array_buffers": 13550957
},
"delta_rss_bytes": 0,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 52772445,
"total_delta_tx_bytes": 52803889,
"rx_bytes_per_upload": 1055449,
"tx_bytes_per_upload": 1056078,
"max_delta_rss_bytes": 5505024
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.361,
"latency_ms": {
"p50": 42.5,
"p95": 64.3,
"p99": 77.5
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 26387499,
"delta_tx_bytes": 26400516,
"baseline_rss_bytes": 195969024,
"peak_memory_bytes": {
"rss": 197935104,
"heap_used": 51834416,
"external": 25755964,
"array_buffers": 16217341
},
"delta_rss_bytes": 1966080,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 26383525,
"delta_tx_bytes": 26400510,
"baseline_rss_bytes": 185294848,
"peak_memory_bytes": {
"rss": 187260928,
"heap_used": 49345096,
"external": 15398018,
"array_buffers": 11607674
},
"delta_rss_bytes": 1966080,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 26214400,
"attachments.proxy.bytes_to_s3": 26214400,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 52771024,
"total_delta_tx_bytes": 52801026,
"rx_bytes_per_upload": 1055420,
"tx_bytes_per_upload": 1056021,
"max_delta_rss_bytes": 1966080
}
]
}
+195
View File
@@ -0,0 +1,195 @@
{
"date": "2026-10-22T19:43:22+00:00",
"git": "39a6df8",
"params": {
"mode": "proxy",
"size_bytes": 131072,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.203,
"latency_ms": {
"p50": 32.4,
"p95": 56.7,
"p99": 62.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3381217,
"delta_tx_bytes": 3397557,
"baseline_rss_bytes": 171487232,
"peak_memory_bytes": {
"rss": 177647616,
"heap_used": 58529080,
"external": 7415675,
"array_buffers": 3621869
},
"delta_rss_bytes": 6160384,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3382121,
"delta_tx_bytes": 3397761,
"baseline_rss_bytes": 169697280,
"peak_memory_bytes": {
"rss": 176513024,
"heap_used": 56215752,
"external": 6720398,
"array_buffers": 2926784
},
"delta_rss_bytes": 6815744,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 6763338,
"total_delta_tx_bytes": 6795318,
"rx_bytes_per_upload": 135267,
"tx_bytes_per_upload": 135906,
"max_delta_rss_bytes": 6815744
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.147,
"latency_ms": {
"p50": 24.3,
"p95": 37.7,
"p99": 48.6
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3376685,
"delta_tx_bytes": 3395659,
"baseline_rss_bytes": 177647616,
"peak_memory_bytes": {
"rss": 181579776,
"heap_used": 58637216,
"external": 10920677,
"array_buffers": 7128215
},
"delta_rss_bytes": 3932160,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3378833,
"delta_tx_bytes": 3397177,
"baseline_rss_bytes": 176250880,
"peak_memory_bytes": {
"rss": 179134464,
"heap_used": 60877184,
"external": 11462611,
"array_buffers": 7669957
},
"delta_rss_bytes": 2883584,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 6755518,
"total_delta_tx_bytes": 6792836,
"rx_bytes_per_upload": 135110,
"tx_bytes_per_upload": 135857,
"max_delta_rss_bytes": 3932160
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 0.161,
"latency_ms": {
"p50": 26.4,
"p95": 52.8,
"p99": 56.1
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 3377664,
"delta_tx_bytes": 3397060,
"baseline_rss_bytes": 181579776,
"peak_memory_bytes": {
"rss": 182104064,
"heap_used": 56837496,
"external": 12815773,
"array_buffers": 9023311
},
"delta_rss_bytes": 524288,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 3375364,
"delta_tx_bytes": 3395107,
"baseline_rss_bytes": 179134464,
"peak_memory_bytes": {
"rss": 182018048,
"heap_used": 61048680,
"external": 12510518,
"array_buffers": 8718024
},
"delta_rss_bytes": 2883584,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 3276800,
"attachments.proxy.bytes_to_s3": 3276800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 6753028,
"total_delta_tx_bytes": 6792167,
"rx_bytes_per_upload": 135061,
"tx_bytes_per_upload": 135843,
"max_delta_rss_bytes": 2883584
}
]
}
+195
View File
@@ -0,0 +1,195 @@
{
"date": "2026-10-22T19:43:49+00:00",
"git": "39a6df8",
"params": {
"mode": "proxy",
"size_bytes": 9961472,
"concurrency": 10,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 2.888,
"latency_ms": {
"p50": 212.3,
"p95": 379.1,
"p99": 447.0
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 249726853,
"delta_tx_bytes": 249832292,
"baseline_rss_bytes": 201834496,
"peak_memory_bytes": {
"rss": 207208448,
"heap_used": 48318768,
"external": 33637892,
"array_buffers": 24213167
},
"delta_rss_bytes": 5373952,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 249652918,
"delta_tx_bytes": 249806626,
"baseline_rss_bytes": 194772992,
"peak_memory_bytes": {
"rss": 208158720,
"heap_used": 48256584,
"external": 27701797,
"array_buffers": 23911453
},
"delta_rss_bytes": 13385728,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 499379771,
"total_delta_tx_bytes": 499638918,
"rx_bytes_per_upload": 9987595,
"tx_bytes_per_upload": 9992778,
"max_delta_rss_bytes": 13385728
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 2.74,
"latency_ms": {
"p50": 188.3,
"p95": 357.0,
"p99": 439.5
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 249720677,
"delta_tx_bytes": 249833753,
"baseline_rss_bytes": 198889472,
"peak_memory_bytes": {
"rss": 207929344,
"heap_used": 48141072,
"external": 34434837,
"array_buffers": 24758541
},
"delta_rss_bytes": 9039872,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 249698838,
"delta_tx_bytes": 249844044,
"baseline_rss_bytes": 195190784,
"peak_memory_bytes": {
"rss": 202661888,
"heap_used": 48064416,
"external": 26063110,
"array_buffers": 21189095
},
"delta_rss_bytes": 7471104,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 499419515,
"total_delta_tx_bytes": 499677797,
"rx_bytes_per_upload": 9988390,
"tx_bytes_per_upload": 9993556,
"max_delta_rss_bytes": 9039872
},
{
"uploads": 50,
"succeeded": 50,
"failed": 0,
"duration_s": 2.786,
"latency_ms": {
"p50": 226.6,
"p95": 373.9,
"p99": 483.8
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 249712459,
"delta_tx_bytes": 249847251,
"baseline_rss_bytes": 199180288,
"peak_memory_bytes": {
"rss": 207888384,
"heap_used": 48883976,
"external": 33646702,
"array_buffers": 29856358
},
"delta_rss_bytes": 8708096,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 249713568,
"delta_tx_bytes": 249832760,
"baseline_rss_bytes": 193859584,
"peak_memory_bytes": {
"rss": 205029376,
"heap_used": 49053528,
"external": 28839619,
"array_buffers": 25049275
},
"delta_rss_bytes": 11169792,
"counters": {
"attachments.insert_pending": 25,
"attachments.proxy.bytes_in": 249036800,
"attachments.proxy.bytes_to_s3": 249036800,
"attachments.mark_ready": 25,
"attachments.upload.created": 25
}
}
],
"total_delta_rx_bytes": 499426027,
"total_delta_tx_bytes": 499680011,
"rx_bytes_per_upload": 9988521,
"tx_bytes_per_upload": 9993600,
"max_delta_rss_bytes": 11169792
}
]
}
+196
View File
@@ -0,0 +1,196 @@
{
"date": "2026-10-22T19:44:24+00:00",
"git": "39a6df8",
"params": {
"mode": "proxy",
"size_bytes": 9961472,
"concurrency": 20,
"uploads_per_worker": 5,
"repeat": 3
},
"host": {
"nproc": 8,
"mem_total_bytes": 16538955776
},
"api_container_limits_nanocpus_memory": [
"1500000000 805306368",
"1500000000 805306368"
],
"repeats": [
{
"uploads": 100,
"succeeded": 100,
"failed": 0,
"duration_s": 6.29,
"latency_ms": {
"p50": 424.1,
"p95": 796.0,
"p99": 937.9
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 499638310,
"delta_tx_bytes": 499870304,
"baseline_rss_bytes": 192036864,
"peak_memory_bytes": {
"rss": 210829312,
"heap_used": 49626176,
"external": 34069726,
"array_buffers": 30279382
},
"delta_rss_bytes": 18792448,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 499750187,
"delta_tx_bytes": 500007552,
"baseline_rss_bytes": 194543616,
"peak_memory_bytes": {
"rss": 210604032,
"heap_used": 48759736,
"external": 32187556,
"array_buffers": 28397212
},
"delta_rss_bytes": 16060416,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50,
"attachments.claim_expired": 1
}
}
],
"total_delta_rx_bytes": 999388497,
"total_delta_tx_bytes": 999877856,
"rx_bytes_per_upload": 9993885,
"tx_bytes_per_upload": 9998779,
"max_delta_rss_bytes": 18792448
},
{
"uploads": 100,
"succeeded": 100,
"failed": 0,
"duration_s": 5.824,
"latency_ms": {
"p50": 403.2,
"p95": 802.4,
"p99": 987.2
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 499452630,
"delta_tx_bytes": 499737912,
"baseline_rss_bytes": 197160960,
"peak_memory_bytes": {
"rss": 223768576,
"heap_used": 50330816,
"external": 46988209,
"array_buffers": 43197865
},
"delta_rss_bytes": 26607616,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 499486574,
"delta_tx_bytes": 499756038,
"baseline_rss_bytes": 197701632,
"peak_memory_bytes": {
"rss": 215396352,
"heap_used": 49478224,
"external": 43102012,
"array_buffers": 30263688
},
"delta_rss_bytes": 17694720,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50
}
}
],
"total_delta_rx_bytes": 998939204,
"total_delta_tx_bytes": 999493950,
"rx_bytes_per_upload": 9989392,
"tx_bytes_per_upload": 9994940,
"max_delta_rss_bytes": 26607616
},
{
"uploads": 100,
"succeeded": 100,
"failed": 0,
"duration_s": 5.757,
"latency_ms": {
"p50": 413.8,
"p95": 866.6,
"p99": 1090.4
},
"replicas": [
{
"instance_id": "b50bb8514a7b",
"delta_rx_bytes": 499421823,
"delta_tx_bytes": 499732729,
"baseline_rss_bytes": 195944448,
"peak_memory_bytes": {
"rss": 214212608,
"heap_used": 50078520,
"external": 38151413,
"array_buffers": 34361069
},
"delta_rss_bytes": 18268160,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50
}
},
{
"instance_id": "fc61f806b880",
"delta_rx_bytes": 499373397,
"delta_tx_bytes": 499664859,
"baseline_rss_bytes": 196259840,
"peak_memory_bytes": {
"rss": 207290368,
"heap_used": 49133976,
"external": 31644969,
"array_buffers": 27854625
},
"delta_rss_bytes": 11030528,
"counters": {
"attachments.insert_pending": 50,
"attachments.proxy.bytes_in": 498073600,
"attachments.proxy.bytes_to_s3": 498073600,
"attachments.mark_ready": 50,
"attachments.upload.created": 50
}
}
],
"total_delta_rx_bytes": 998795220,
"total_delta_tx_bytes": 999397588,
"rx_bytes_per_upload": 9987952,
"tx_bytes_per_upload": 9993976,
"max_delta_rss_bytes": 18268160
}
]
}
+8
View File
@@ -0,0 +1,8 @@
scripts/lab4/consistency_check.sh
bucket: messenger-attachments
objects: 1308
rows by status:
11 pending
1308 ready
orphans: 0
missing: 0
+8
View File
@@ -0,0 +1,8 @@
> app@0.0.1 test:e2e
> vitest run --config ./vitest.config.e2e.ts direct-upload
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
Test Files 1 passed (1)
Tests 7 passed (7)
Start at 22:45:08
Duration 8.14s (transform 44ms, setup 0ms, import 75ms, tests 7.94s, environment 0ms)
+11
View File
@@ -0,0 +1,11 @@
# attachment download survives the stop of either replica (sha256 of sample.png: 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75)
stopped mtusi-lab4-api-1
GET content -> HTTP/1.1 200 OK x-instance-id: fc61f806b880 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
GET content -> HTTP/1.1 200 OK x-instance-id: fc61f806b880 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
GET content -> HTTP/1.1 200 OK x-instance-id: fc61f806b880 sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
stopped mtusi-lab4-api-2
GET content -> HTTP/1.1 200 OK x-instance-id: b50bb8514a7b sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
GET content -> HTTP/1.1 200 OK x-instance-id: b50bb8514a7b sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
GET content -> HTTP/1.1 200 OK x-instance-id: b50bb8514a7b sha256=99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
mtusi-lab4-api-1 Up 14 seconds (healthy)
mtusi-lab4-api-2 Up 5 seconds (healthy)
+21
View File
@@ -0,0 +1,21 @@
# failover round 1
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 140, "failed_attempts": 0, "first_recovery_seconds": 3.331}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
api mtusi-lab4-api-1 Up 26 seconds (healthy)
Container mtusi-lab4-api-1 Running
# failover round 2
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 134, "failed_attempts": 0, "first_recovery_seconds": 3.359}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab4-api-1 Up 50 seconds (healthy)
mtusi-lab4-api-2 Exited (0) 12 seconds ago
# failover round 3
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 134, "failed_attempts": 0, "first_recovery_seconds": 3.328}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab4-api-1 Up About a minute (healthy)
mtusi-lab4-api-2 Exited (0) 12 seconds ago
mtusi-lab4-api-1 Up About a minute (healthy)
mtusi-lab4-api-2 Up 5 seconds (healthy)
+2
View File
@@ -0,0 +1,2 @@
python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+9
View File
@@ -0,0 +1,9 @@
cd app && E2E_COMPOSE_DIR="/home/tomato/Projects/VP/mtusi2026lab4" E2E_COMPOSE_ENV_FILE=".env" npm run test:dependencies
> app@0.0.1 test:dependencies
> E2E_DEPENDENCY_FAULTS=1 vitest run --config ./vitest.config.e2e.ts dependency-failures
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
Test Files 1 passed (1)
Tests 6 passed (6)
Start at 22:45:26
Duration 89.83s (transform 52ms, setup 0ms, import 69ms, tests 89.66s, environment 0ms)
+8
View File
@@ -0,0 +1,8 @@
> app@0.0.1 test:e2e
> vitest run --config ./vitest.config.e2e.ts
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
Test Files 3 passed | 1 skipped (4)
Tests 33 passed | 8 skipped (41)
Start at 22:44:49
Duration 3.73s (transform 239ms, setup 0ms, import 536ms, tests 7.77s, environment 0ms)
+2
View File
@@ -0,0 +1,2 @@
python3 tests/smoke.py --base-url "http://localhost:8080"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
+29
View File
@@ -0,0 +1,29 @@
# before
api Up 19 seconds (healthy)
api Up 19 seconds (healthy)
haproxy Up 11 minutes
postgres Up 2 minutes (healthy)
redis Up 3 minutes (healthy)
s3 Up 3 minutes (healthy)
/mtusi-lab4-postgres-1 2026-10-22T19:38:19.352217508Z
/mtusi-lab4-redis-1 2026-10-22T19:37:15.343086395Z
/mtusi-lab4-s3-1 2026-10-22T19:37:46.289807129Z
/mtusi-lab4-api-1 2026-10-22T19:40:39.879853813Z
/mtusi-lab4-api-2 2026-10-22T19:40:39.774525559Z
/mtusi-lab4-haproxy-1 2026-10-22T19:29:53.978761189Z
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
# after
api Up 6 seconds (healthy)
api Up 6 seconds (healthy)
haproxy Up 9 seconds
postgres Up 9 seconds (healthy)
redis Up 9 seconds (healthy)
s3 Up 9 seconds (healthy)
/mtusi-lab4-postgres-1 2026-10-22T19:41:00.616425802Z
/mtusi-lab4-redis-1 2026-10-22T19:41:00.545701172Z
/mtusi-lab4-s3-1 2026-10-22T19:41:00.507714044Z
/mtusi-lab4-api-1 2026-10-22T19:41:03.631509569Z
/mtusi-lab4-api-2 2026-10-22T19:41:03.665389961Z
/mtusi-lab4-haproxy-1 2026-10-22T19:41:00.434084255Z
+1
View File
@@ -0,0 +1 @@
touch: cannot touch '/usr/src/app/x': Read-only file system
+10
View File
@@ -0,0 +1,10 @@
scripts/lab4/check_s3_security.sh
PASS anonymous GET of a ready object -> 403
PASS anonymous list of the bucket -> 403
PASS anonymous PUT -> 403
PASS API credentials cannot create buckets
PASS API credentials cannot use admin API
PASS API credentials can read attachments/*
PASS API credentials cannot write outside attachments/
PASS console port 9001 is not published
PASS console not reachable on localhost:9001
+9
View File
@@ -0,0 +1,9 @@
| mode | size, MiB | C | ok | API rx/upload, MiB | API tx/upload, MiB | max Δrss, MiB | p50, ms | p95, ms |
|---|---|---|---|---|---|---|---|---|
| direct | 0.12 | 10 | 150/150 | 0.13 | 0.01 | 0.62 | 42 | 62 |
| proxy | 0.12 | 10 | 150/150 | 0.13 | 0.13 | 3.75 | 26 | 53 |
| direct | 1.00 | 10 | 150/150 | 1.01 | 0.01 | 3.88 | 69 | 100 |
| proxy | 1.00 | 10 | 150/150 | 1.01 | 1.01 | 5.12 | 44 | 79 |
| direct | 9.50 | 10 | 150/150 | 0.14 | 0.01 | 0.25 | 377 | 493 |
| proxy | 9.50 | 10 | 150/150 | 9.53 | 9.53 | 10.65 | 212 | 374 |
| proxy | 9.50 | 20 | 300/300 | 9.53 | 9.53 | 17.92 | 414 | 802 |
+8
View File
@@ -0,0 +1,8 @@
The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
RUN v4.1.11 /home/tomato/Projects/VP/mtusi2026lab4/app
[Nest] 3057161 - 10/22/2026, 10:44:47 PM WARN [MessagesCacheService] Cache read failed, serving PostgreSQL: redis down
[Nest] 3057161 - 10/22/2026, 10:44:47 PM WARN [MessagesCacheService] Cache fill failed: redis down
Test Files 10 passed (10)
Tests 36 passed (36)
Start at 22:44:46
Duration 1.93s (transform 718ms, setup 0ms, import 5.44s, tests 373ms, environment 1ms)