HAProxy как приватный шлюз к S3 VK Cloud: конфигурация, Lua, тесты, документация

- haproxy.cfg: терминация TLS (самоподписанный сертификат, wildcard), подмена Host/SNI,
  переписывание Location/Server и тел ответов (s3_rewrite.lua)
- s3_resign.lua: проверка подписи SigV4 клиента и повторная подпись под реальный Host
- s3gw-snat.nft: SNAT клиентской подсети (nftables) для прямого доступа
- tests: автотесты Lua (SHA-256/HMAC/SigV4), сборщик метрик и расчёт сводок нагрузочных тестов
- docs: планы и итоги всех итераций, отчёт о пути пакета, сравнительные тесты CPU/RAM
  (512 МБ, 2 ГБ multipart 5/20/40 потоков, 1 и 4 vCPU), Mermaid-диаграммы, сырые данные замеров
- Секреты (hostinfo.txt, hostkey.key, s3_creds.lua) исключены через .gitignore

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-23 12:44:07 +03:00
commit ea1592800a
169 files changed
+5848

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744221.56,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64386762,139116587
1792744222.56,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64386762,139116587
1792744223.57,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64386762,139116587
1792744224.57,0.99,0.00,0.99,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64386762,139116587
1792744225.57,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64386762,139116587
1792744226.58,3.00,2.00,1.00,0.00,0.00,0.00,0.00,0,362576,303381403,76904542,64388197,139118504
1792744227.59,8.91,8.91,0.00,0.00,0.99,0.00,0.00,0,362568,303381403,76904542,64392055,139121706
1792744228.59,1.06,0.00,0.00,1.06,41.49,0.00,0.00,0,354116,303622682,138320606,125808119,139362985
1792744229.60,2.44,1.22,1.22,0.00,0.00,0.00,0.00,0,354220,304628406,395310339,382797852,140368709
1792744230.60,3.49,0.00,1.16,2.33,0.00,0.00,0.00,0,350684,305331106,609209072,596761089,141071577
1792744231.61,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,350684,305366108,619322775,606809566,141105985
1792744232.62,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,349608,305367997,619324995,606812524,141108366
1792744233.62,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,349608,305367997,619324995,606812524,141108366
1792744234.62,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,349608,305367997,619324995,606812524,141108366
1792744235.63,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,349608,305367997,619324995,606812524,141108366
1792744236.63,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,349608,305367997,619324995,606812524,141108366
1792744237.64,32.67,25.74,6.93,0.00,0.00,0.00,0.00,0,377804,305372491,619328772,606812524,141108366
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744221.56 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64386762 139116587
3 1792744222.56 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64386762 139116587
4 1792744223.57 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64386762 139116587
5 1792744224.57 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64386762 139116587
6 1792744225.57 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64386762 139116587
7 1792744226.58 3.00 2.00 1.00 0.00 0.00 0.00 0.00 0 362576 303381403 76904542 64388197 139118504
8 1792744227.59 8.91 8.91 0.00 0.00 0.99 0.00 0.00 0 362568 303381403 76904542 64392055 139121706
9 1792744228.59 1.06 0.00 0.00 1.06 41.49 0.00 0.00 0 354116 303622682 138320606 125808119 139362985
10 1792744229.60 2.44 1.22 1.22 0.00 0.00 0.00 0.00 0 354220 304628406 395310339 382797852 140368709
11 1792744230.60 3.49 0.00 1.16 2.33 0.00 0.00 0.00 0 350684 305331106 609209072 596761089 141071577
12 1792744231.61 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 350684 305366108 619322775 606809566 141105985
13 1792744232.62 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 349608 305367997 619324995 606812524 141108366
14 1792744233.62 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 349608 305367997 619324995 606812524 141108366
15 1792744234.62 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 349608 305367997 619324995 606812524 141108366
16 1792744235.63 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 349608 305367997 619324995 606812524 141108366
17 1792744236.63 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 349608 305367997 619324995 606812524 141108366
18 1792744237.64 32.67 25.74 6.93 0.00 0.00 0.00 0.00 0 377804 305372491 619328772 606812524 141108366
+18
View File
@@ -0,0 +1,18 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744242.04,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,378296,305373007,619330142,606812524,141108366
1792744243.05,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,378292,305373007,619330142,606812524,141108366
1792744244.05,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,378292,305373007,619330142,606812524,141108366
1792744245.06,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,378292,305373007,619330142,606812524,141108366
1792744246.06,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,378292,305373007,619330142,606812524,141108366
1792744247.07,3.00,2.00,1.00,0.00,0.00,0.00,0.00,0,378292,305373007,619330142,606813959,141110283
1792744248.07,9.90,8.91,0.99,0.00,0.00,0.00,0.00,0,378288,305373007,619330142,606817817,141113485
1792744249.08,1.06,1.06,0.00,0.00,0.00,0.00,0.00,0,354024,305851054,679706041,667210245,141591862
1792744250.09,2.33,0.00,0.00,2.33,0.00,0.00,0.00,0,354304,306494548,907352282,894839957,142235026
1792744251.09,2.35,0.00,1.18,1.18,0.00,0.00,0.00,0,353624,307218340,1135505138,1122992813,142958818
1792744252.10,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,354272,307424723,1169746822,1157234497,143165201
1792744253.10,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,353196,307424723,1169746822,1157235235,143165693
1792744254.11,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,353196,307424723,1169746822,1157235235,143165693
1792744255.11,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353196,307424723,1169746822,1157235235,143165693
1792744256.11,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353196,307424723,1169746822,1157235235,143165693
1792744257.12,0.99,0.00,0.99,0.00,0.00,0.00,0.00,0,353196,307424841,1169746888,1157235235,143165693
1792744258.12,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,353192,307424841,1169746888,1157235235,143165693
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744242.04 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 378296 305373007 619330142 606812524 141108366
3 1792744243.05 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 378292 305373007 619330142 606812524 141108366
4 1792744244.05 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 378292 305373007 619330142 606812524 141108366
5 1792744245.06 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 378292 305373007 619330142 606812524 141108366
6 1792744246.06 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 378292 305373007 619330142 606812524 141108366
7 1792744247.07 3.00 2.00 1.00 0.00 0.00 0.00 0.00 0 378292 305373007 619330142 606813959 141110283
8 1792744248.07 9.90 8.91 0.99 0.00 0.00 0.00 0.00 0 378288 305373007 619330142 606817817 141113485
9 1792744249.08 1.06 1.06 0.00 0.00 0.00 0.00 0.00 0 354024 305851054 679706041 667210245 141591862
10 1792744250.09 2.33 0.00 0.00 2.33 0.00 0.00 0.00 0 354304 306494548 907352282 894839957 142235026
11 1792744251.09 2.35 0.00 1.18 1.18 0.00 0.00 0.00 0 353624 307218340 1135505138 1122992813 142958818
12 1792744252.10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 354272 307424723 1169746822 1157234497 143165201
13 1792744253.10 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 353196 307424723 1169746822 1157235235 143165693
14 1792744254.11 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 353196 307424723 1169746822 1157235235 143165693
15 1792744255.11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353196 307424723 1169746822 1157235235 143165693
16 1792744256.11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353196 307424723 1169746822 1157235235 143165693
17 1792744257.12 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0 353196 307424841 1169746888 1157235235 143165693
18 1792744258.12 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 353192 307424841 1169746888 1157235235 143165693
+17
View File
@@ -0,0 +1,17 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744262.17,0.98,0.00,0.98,0.00,10.78,0.00,0.00,0,353192,307424841,1169746888,1157235235,143165693
1792744263.17,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353192,307424841,1169746888,1157235235,143165693
1792744264.17,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,353188,307424959,1169746954,1157235235,143165693
1792744265.18,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353188,307424959,1169746954,1157235235,143165693
1792744266.18,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353188,307424959,1169746954,1157235235,143165693
1792744267.19,3.00,2.00,1.00,0.00,0.00,0.00,0.00,0,354408,307424959,1169746954,1157236736,143167610
1792744268.19,10.89,9.90,0.99,0.00,0.00,0.00,0.00,0,354660,307424959,1169746954,1157240594,143170812
1792744269.20,3.45,1.15,0.00,2.30,0.00,0.00,0.00,0,354388,308400267,1330880201,1318373841,144146120
1792744270.20,2.35,0.00,1.18,1.18,0.00,0.00,0.00,0,354268,308968597,1551150931,1538644571,144714450
1792744271.21,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,354420,309684409,1720399736,1707893376,145430262
1792744272.21,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,353244,309687124,1720414624,1707909002,145433469
1792744273.21,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,353236,309687124,1720414624,1707909002,145433469
1792744274.22,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353236,309687166,1720414666,1707909002,145433469
1792744275.22,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353236,309687166,1720414666,1707909002,145433469
1792744276.23,0.99,0.00,0.99,0.00,0.00,0.00,0.00,0,353236,309687166,1720414666,1707909002,145433469
1792744277.23,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,353236,309687166,1720414666,1707909002,145433469
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744262.17 0.98 0.00 0.98 0.00 10.78 0.00 0.00 0 353192 307424841 1169746888 1157235235 143165693
3 1792744263.17 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353192 307424841 1169746888 1157235235 143165693
4 1792744264.17 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 353188 307424959 1169746954 1157235235 143165693
5 1792744265.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353188 307424959 1169746954 1157235235 143165693
6 1792744266.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353188 307424959 1169746954 1157235235 143165693
7 1792744267.19 3.00 2.00 1.00 0.00 0.00 0.00 0.00 0 354408 307424959 1169746954 1157236736 143167610
8 1792744268.19 10.89 9.90 0.99 0.00 0.00 0.00 0.00 0 354660 307424959 1169746954 1157240594 143170812
9 1792744269.20 3.45 1.15 0.00 2.30 0.00 0.00 0.00 0 354388 308400267 1330880201 1318373841 144146120
10 1792744270.20 2.35 0.00 1.18 1.18 0.00 0.00 0.00 0 354268 308968597 1551150931 1538644571 144714450
11 1792744271.21 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 354420 309684409 1720399736 1707893376 145430262
12 1792744272.21 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 353244 309687124 1720414624 1707909002 145433469
13 1792744273.21 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 353236 309687124 1720414624 1707909002 145433469
14 1792744274.22 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353236 309687166 1720414666 1707909002 145433469
15 1792744275.22 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353236 309687166 1720414666 1707909002 145433469
16 1792744276.23 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0 353236 309687166 1720414666 1707909002 145433469
17 1792744277.23 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 353236 309687166 1720414666 1707909002 145433469
+2
View File
@@ -0,0 +1,2 @@
30a298e3e79201de93962bd179c7e09f1b9f1e65a5b83af34e2e55f081c2a002 test512m.bin
-rw-rw-r-- 1 ubuntu ubuntu 536870912 Oct 23 08:30 test512m.bin
+17
View File
@@ -0,0 +1,17 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744289.96,0.99,0.00,0.99,0.00,0.00,0.00,0.00,29520,366376,309694592,1720415832,1707909002,145433469
1792744290.96,0.00,0.00,0.00,0.00,0.00,0.00,0.00,29520,366376,309701125,1720416833,1707909002,145433469
1792744291.97,0.00,0.00,0.00,0.00,0.00,0.00,0.00,29520,366376,309701125,1720416833,1707909002,145433469
1792744292.97,1.00,0.00,1.00,0.00,0.00,0.00,0.00,29520,366376,309701125,1720416833,1707909002,145433469
1792744293.98,0.99,0.99,0.00,0.00,0.00,0.00,0.00,29520,366372,309701125,1720416833,1707909002,145433469
1792744294.98,3.00,2.00,1.00,0.00,0.00,0.00,0.00,29520,367632,309701125,1720416833,1707910437,145435386
1792744295.99,9.00,9.00,0.00,0.00,0.00,0.00,0.00,29520,367884,309701125,1720416833,1707914295,145438572
1792744297.00,71.29,37.62,14.85,18.81,0.00,0.00,71.64,33104,369324,310674630,1872596989,1861546890,145697533
1792744298.01,97.06,43.14,26.47,27.45,0.00,0.00,95.06,33104,380520,312081418,2104419626,2102856922,145978344
1792744299.02,63.00,27.00,19.00,17.00,0.00,0.00,61.10,33104,368796,313019142,2262025293,2249580959,146122093
1792744300.02,2.97,1.98,0.99,0.00,0.00,0.00,1.00,33104,367676,313020221,2262037939,2249596862,146125762
1792744301.03,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1792744302.03,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1792744303.04,1.96,0.98,0.98,0.00,0.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1792744304.04,0.00,0.00,0.00,0.00,31.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1792744305.05,1.00,0.00,1.00,0.00,0.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744289.96 0.99 0.00 0.99 0.00 0.00 0.00 0.00 29520 366376 309694592 1720415832 1707909002 145433469
3 1792744290.96 0.00 0.00 0.00 0.00 0.00 0.00 0.00 29520 366376 309701125 1720416833 1707909002 145433469
4 1792744291.97 0.00 0.00 0.00 0.00 0.00 0.00 0.00 29520 366376 309701125 1720416833 1707909002 145433469
5 1792744292.97 1.00 0.00 1.00 0.00 0.00 0.00 0.00 29520 366376 309701125 1720416833 1707909002 145433469
6 1792744293.98 0.99 0.99 0.00 0.00 0.00 0.00 0.00 29520 366372 309701125 1720416833 1707909002 145433469
7 1792744294.98 3.00 2.00 1.00 0.00 0.00 0.00 0.00 29520 367632 309701125 1720416833 1707910437 145435386
8 1792744295.99 9.00 9.00 0.00 0.00 0.00 0.00 0.00 29520 367884 309701125 1720416833 1707914295 145438572
9 1792744297.00 71.29 37.62 14.85 18.81 0.00 0.00 71.64 33104 369324 310674630 1872596989 1861546890 145697533
10 1792744298.01 97.06 43.14 26.47 27.45 0.00 0.00 95.06 33104 380520 312081418 2104419626 2102856922 145978344
11 1792744299.02 63.00 27.00 19.00 17.00 0.00 0.00 61.10 33104 368796 313019142 2262025293 2249580959 146122093
12 1792744300.02 2.97 1.98 0.99 0.00 0.00 0.00 1.00 33104 367676 313020221 2262037939 2249596862 146125762
13 1792744301.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
14 1792744302.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
15 1792744303.04 1.96 0.98 0.98 0.00 0.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
16 1792744304.04 0.00 0.00 0.00 0.00 31.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
17 1792744305.05 1.00 0.00 1.00 0.00 0.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
+18
View File
@@ -0,0 +1,18 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744309.94,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33104,367676,313026754,2262039072,2249596862,146125762
1792744310.94,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33104,367676,313026894,2262039927,2249596862,146125762
1792744311.95,1.00,0.00,1.00,0.00,0.00,0.00,0.99,33104,367676,313033986,2262041153,2249596862,146125762
1792744312.95,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33104,367676,313033986,2262041153,2249596862,146125762
1792744313.95,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33104,367668,313033986,2262041153,2249596862,146125762
1792744314.96,3.03,2.02,1.01,0.00,0.00,0.00,0.00,33104,368664,313033986,2262041153,2249598297,146127679
1792744315.97,8.91,8.91,0.00,0.00,0.00,0.00,0.00,33104,369140,313033986,2262041153,2249602155,146130865
1792744316.97,11.88,8.91,1.98,0.99,0.00,0.00,9.95,33104,369832,313085262,2270500890,2258490587,146163181
1792744317.98,95.05,47.52,24.75,22.77,0.00,0.00,94.16,33232,377892,314311904,2498239001,2492538742,146475520
1792744318.99,100.00,47.52,27.72,24.75,0.00,0.00,99.00,33232,384932,315509668,2717980211,2719067074,146741434
1792744320.00,43.56,19.80,12.87,10.89,0.00,0.00,41.56,33232,368892,315991713,2803819479,2790160977,146837651
1792744321.01,2.00,1.00,1.00,0.00,0.00,0.00,1.00,33232,367796,315998246,2803820612,2790163455,146839703
1792744322.01,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367796,315998246,2803820612,2790163455,146839703
1792744323.02,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33232,367796,315998246,2803820612,2790163455,146839703
1792744324.02,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367796,315998246,2803820612,2790163455,146839703
1792744325.03,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33232,367796,315998364,2803820678,2790163455,146839703
1792744326.03,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367796,315998364,2803820678,2790163455,146839703
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744309.94 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33104 367676 313026754 2262039072 2249596862 146125762
3 1792744310.94 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33104 367676 313026894 2262039927 2249596862 146125762
4 1792744311.95 1.00 0.00 1.00 0.00 0.00 0.00 0.99 33104 367676 313033986 2262041153 2249596862 146125762
5 1792744312.95 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33104 367676 313033986 2262041153 2249596862 146125762
6 1792744313.95 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33104 367668 313033986 2262041153 2249596862 146125762
7 1792744314.96 3.03 2.02 1.01 0.00 0.00 0.00 0.00 33104 368664 313033986 2262041153 2249598297 146127679
8 1792744315.97 8.91 8.91 0.00 0.00 0.00 0.00 0.00 33104 369140 313033986 2262041153 2249602155 146130865
9 1792744316.97 11.88 8.91 1.98 0.99 0.00 0.00 9.95 33104 369832 313085262 2270500890 2258490587 146163181
10 1792744317.98 95.05 47.52 24.75 22.77 0.00 0.00 94.16 33232 377892 314311904 2498239001 2492538742 146475520
11 1792744318.99 100.00 47.52 27.72 24.75 0.00 0.00 99.00 33232 384932 315509668 2717980211 2719067074 146741434
12 1792744320.00 43.56 19.80 12.87 10.89 0.00 0.00 41.56 33232 368892 315991713 2803819479 2790160977 146837651
13 1792744321.01 2.00 1.00 1.00 0.00 0.00 0.00 1.00 33232 367796 315998246 2803820612 2790163455 146839703
14 1792744322.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367796 315998246 2803820612 2790163455 146839703
15 1792744323.02 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33232 367796 315998246 2803820612 2790163455 146839703
16 1792744324.02 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367796 315998246 2803820612 2790163455 146839703
17 1792744325.03 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33232 367796 315998364 2803820678 2790163455 146839703
18 1792744326.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367796 315998364 2803820678 2790163455 146839703
+17
View File
@@ -0,0 +1,17 @@
epoch,cpu_busy,user,system,softirq,iowait,steal,haproxy_cpu,haproxy_rss_kb,mem_used_kb,eth0_rx,eth0_tx,eth1_rx,eth1_tx
1792744330.11,0.00,0.00,0.00,0.00,26.26,0.00,0.00,33232,367796,315998364,2803820678,2790163455,146839703
1792744331.12,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367796,316004897,2803821811,2790163455,146839703
1792744332.12,1.96,0.98,0.98,0.00,0.00,0.00,0.00,33232,367796,316005227,2803822705,2790163455,146839703
1792744333.13,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367792,316005227,2803822705,2790163455,146839703
1792744334.13,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33232,367792,316005227,2803822705,2790163455,146839703
1792744335.13,3.96,1.98,1.98,0.00,0.00,0.00,0.00,33232,368788,316005227,2803822705,2790164890,146841620
1792744336.14,8.91,8.91,0.00,0.00,0.00,0.00,0.00,33232,369264,316005227,2803822705,2790168748,146844806
1792744337.15,77.00,37.00,20.00,20.00,0.00,0.00,75.63,33360,370264,316948167,2973406055,2960543801,147104308
1792744338.16,94.12,45.10,24.51,24.51,0.00,0.00,91.98,33360,380112,317927273,3172069223,3167899633,147352529
1792744339.17,85.00,43.00,23.00,19.00,0.00,0.00,83.95,33360,368572,318746245,3345179745,3330949953,147547566
1792744340.18,3.00,2.00,1.00,0.00,0.00,0.00,0.99,33360,367908,318749770,3345192852,3330965495,147552887
1792744341.18,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33360,368084,318756303,3345193985,3330965495,147552887
1792744342.18,0.99,0.00,0.99,0.00,0.00,0.00,0.00,33360,368084,318756303,3345193985,3330965495,147552887
1792744343.19,0.99,0.99,0.00,0.00,0.99,0.00,0.00,33360,368084,318756303,3345193985,3330965495,147552887
1792744344.19,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33360,368084,318756303,3345193985,3330965495,147552887
1792744345.20,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33360,368084,318756303,3345193985,3330965495,147552887
1 epoch cpu_busy user system softirq iowait steal haproxy_cpu haproxy_rss_kb mem_used_kb eth0_rx eth0_tx eth1_rx eth1_tx
2 1792744330.11 0.00 0.00 0.00 0.00 26.26 0.00 0.00 33232 367796 315998364 2803820678 2790163455 146839703
3 1792744331.12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367796 316004897 2803821811 2790163455 146839703
4 1792744332.12 1.96 0.98 0.98 0.00 0.00 0.00 0.00 33232 367796 316005227 2803822705 2790163455 146839703
5 1792744333.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367792 316005227 2803822705 2790163455 146839703
6 1792744334.13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33232 367792 316005227 2803822705 2790163455 146839703
7 1792744335.13 3.96 1.98 1.98 0.00 0.00 0.00 0.00 33232 368788 316005227 2803822705 2790164890 146841620
8 1792744336.14 8.91 8.91 0.00 0.00 0.00 0.00 0.00 33232 369264 316005227 2803822705 2790168748 146844806
9 1792744337.15 77.00 37.00 20.00 20.00 0.00 0.00 75.63 33360 370264 316948167 2973406055 2960543801 147104308
10 1792744338.16 94.12 45.10 24.51 24.51 0.00 0.00 91.98 33360 380112 317927273 3172069223 3167899633 147352529
11 1792744339.17 85.00 43.00 23.00 19.00 0.00 0.00 83.95 33360 368572 318746245 3345179745 3330949953 147547566
12 1792744340.18 3.00 2.00 1.00 0.00 0.00 0.00 0.99 33360 367908 318749770 3345192852 3330965495 147552887
13 1792744341.18 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33360 368084 318756303 3345193985 3330965495 147552887
14 1792744342.18 0.99 0.00 0.99 0.00 0.00 0.00 0.00 33360 368084 318756303 3345193985 3330965495 147552887
15 1792744343.19 0.99 0.99 0.00 0.00 0.99 0.00 0.00 33360 368084 318756303 3345193985 3330965495 147552887
16 1792744344.19 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33360 368084 318756303 3345193985 3330965495 147552887
17 1792744345.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33360 368084 318756303 3345193985 3330965495 147552887
+22
View File
@@ -0,0 +1,22 @@
| Метрика | Напрямую (SNAT) | Через прокси | Δ |
|---|---|---|---|
| Время передачи, с | 4.5 ± 0.4 | 4.4 ± 0.1 | -0.1 (×1.0) |
| Скорость, МБ/с | 114 ± 10 | 116 ± 4 | +2 (×1.0) |
| CPU узла, среднее за передачу, % | 1.9 ± 0.4 | 80.7 ± 3.5 | +78.8 (×42.5) |
| CPU узла, пик, % | 3.1 ± 0.5 | 97.1 ± 2.4 | +94.0 (×31.3) |
| из них user, % | 0.4 ± 0.1 | 38.6 ± 2.4 | +38.3 (×109.9) |
| из них system, % | 0.5 ± 0.2 | 21.5 ± 1.0 | +21.0 (×43.5) |
| из них softirq, % | 1.1 ± 0.1 | 20.6 ± 0.8 | +19.5 (×19.5) |
| steal, % | 0.0 ± 0.0 | 0.0 ± 0.0 | +0.0 |
| CPU процесса haproxy, среднее, % ядра | 0.0 ± 0.0 | 79.3 ± 3.3 | +79.3 |
| CPU процесса haproxy, пик, % ядра | 0.0 ± 0.0 | 95.3 ± 2.9 | +95.3 |
| CPU-секунд на передачу 512 МБ | 0.18 ± 0.02 | 2.57 ± 0.09 | +2.39 (×14.4) |
| CPU-секунд на 1 ГБ | 0.36 ± 0.03 | 5.14 ± 0.18 | +4.78 (×14.4) |
| RSS haproxy, пик, МБ | 0 ± 0 | 32 ± 0 | +32 |
| Прирост RAM узла (used), пик, МБ | 0 ± 1 | 14 ± 2 | +14 (×29.7) |
По прогонам (cpu_avg / cpu_s / dur):
direct [(2.3, 0.19, 5.11), (1.4, 0.16, 4.18), (1.9, 0.19, 4.28)] активных секунд: [3, 4, 3]
proxy [(77.1, 2.45, 4.63), (79.5, 2.59, 4.39), (85.4, 2.67, 4.27)] активных секунд: [3, 3, 3]
База RAM узла до теста, МБ: {'direct': 354, 'proxy': 358}
+16
View File
@@ -0,0 +1,16 @@
[08:30:15] mode=direct haproxy=inactive endpoint=https://hb.ru-msk.vkcloud-storage.ru
direct 1 1792744226.530719891 1792744232.008054127 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-1.bin DUR 5.114287042
direct 2 1792744247.020881560 1792744252.130550338 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-2.bin DUR 4.180880017
direct 3 1792744267.143908876 1792744271.777545063 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-3.bin DUR 4.283684295
[08:31:23] mode=proxy haproxy=active endpoint=https://s3-v.myhost.local
proxy 1 1792744294.940018819 1792744299.901370579 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-1.bin DUR 4.625536100
proxy 2 1792744314.914868702 1792744320.073402610 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-2.bin DUR 4.387491701
proxy 3 1792744335.086865540 1792744339.691003954 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-3.bin DUR 4.269330188
delete: s3://clabatombuk/cpu-test/direct-1.bin
delete: s3://clabatombuk/cpu-test/proxy-1.bin
delete: s3://clabatombuk/cpu-test/proxy-3.bin
delete: s3://clabatombuk/cpu-test/direct-3.bin
delete: s3://clabatombuk/cpu-test/proxy-2.bin
delete: s3://clabatombuk/cpu-test/direct-2.bin
haproxy=active nftables=active
DONE