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

+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
1792744800.19,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,398184,319335656,3345640929,3330998565,147611790
1792744801.20,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,398184,319335722,3345641757,3330998565,147611790
1792744802.20,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,398184,319335854,3345643013,3330998565,147611790
1792744803.20,4.00,2.00,2.00,0.00,0.00,0.00,0.00,0,398184,319336346,3345644523,3330998565,147611790
1792744804.21,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,398180,319336596,3345645813,3330998565,147611790
1792744805.22,4.00,2.00,2.00,0.00,0.00,0.00,0.00,0,398180,319336662,3345646609,3331000000,147613707
1792744806.22,9.90,9.90,0.00,0.00,0.00,0.00,0.00,0,398180,319336794,3345648147,3331003858,147616909
1792744807.23,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,364988,320158045,3498366978,3483720575,148438016
1792744808.23,38.37,8.14,9.30,19.77,0.00,1.16,0.00,0,368480,321473557,3727617558,3712964982,149748902
1792744809.24,2.22,1.11,0.00,1.11,0.00,0.00,0.00,0,368384,321928737,3888627577,3873973939,150203500
1792744810.24,2.00,1.00,1.00,0.00,0.00,0.00,0.00,0,367632,321931654,3888643436,3873988798,150206675
1792744811.24,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,368088,321931852,3888650742,3873988798,150206675
1792744812.25,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,368088,321931918,3888651394,3873988798,150206675
1792744813.25,2.00,1.00,0.00,0.00,0.00,1.00,0.00,0,368088,321932116,3888658796,3873988798,150206675
1792744814.26,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,368088,321932182,3888659448,3873988798,150206675
1792744815.26,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,368088,321932314,3888661082,3873988798,150206675
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 1792744800.19 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 398184 319335656 3345640929 3330998565 147611790
3 1792744801.20 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 398184 319335722 3345641757 3330998565 147611790
4 1792744802.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 398184 319335854 3345643013 3330998565 147611790
5 1792744803.20 4.00 2.00 2.00 0.00 0.00 0.00 0.00 0 398184 319336346 3345644523 3330998565 147611790
6 1792744804.21 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 398180 319336596 3345645813 3330998565 147611790
7 1792744805.22 4.00 2.00 2.00 0.00 0.00 0.00 0.00 0 398180 319336662 3345646609 3331000000 147613707
8 1792744806.22 9.90 9.90 0.00 0.00 0.00 0.00 0.00 0 398180 319336794 3345648147 3331003858 147616909
9 1792744807.23 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 364988 320158045 3498366978 3483720575 148438016
10 1792744808.23 38.37 8.14 9.30 19.77 0.00 1.16 0.00 0 368480 321473557 3727617558 3712964982 149748902
11 1792744809.24 2.22 1.11 0.00 1.11 0.00 0.00 0.00 0 368384 321928737 3888627577 3873973939 150203500
12 1792744810.24 2.00 1.00 1.00 0.00 0.00 0.00 0.00 0 367632 321931654 3888643436 3873988798 150206675
13 1792744811.24 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 368088 321931852 3888650742 3873988798 150206675
14 1792744812.25 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 368088 321931918 3888651394 3873988798 150206675
15 1792744813.25 2.00 1.00 0.00 0.00 0.00 1.00 0.00 0 368088 321932116 3888658796 3873988798 150206675
16 1792744814.26 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 368088 321932182 3888659448 3873988798 150206675
17 1792744815.26 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 368088 321932314 3888661082 3873988798 150206675
+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
1792744819.72,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,368088,321932710,3888665496,3873988798,150206675
1792744820.72,1.01,0.00,1.01,0.00,0.00,0.00,0.00,0,368088,321932842,3888667466,3873988798,150206675
1792744821.73,1.00,1.00,0.00,0.00,0.00,0.00,0.00,0,368088,321932908,3888668038,3873988798,150206675
1792744822.73,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,368088,321933040,3888669886,3873988798,150206675
1792744823.74,1.98,0.99,0.99,0.00,2.97,0.00,0.00,0,368084,321933106,3888670474,3873988798,150206675
1792744824.74,4.95,2.97,1.98,0.00,0.00,0.00,0.00,0,370088,321933238,3888671826,3873990233,150208592
1792744825.75,10.10,10.10,0.00,0.00,0.00,0.00,0.00,0,370084,321933304,3888672510,3873994091,150211860
1792744826.75,2.22,0.00,1.11,1.11,0.00,0.00,0.00,0,369140,322643941,4024351024,4009670543,150922365
1792744827.76,2.41,1.20,0.00,1.20,0.00,0.00,0.00,0,368820,323387961,4254204494,4239523153,151666319
1792744828.76,2.30,0.00,1.15,1.15,0.00,0.00,0.00,0,369028,323974299,4439334268,4424650227,152252395
1792744829.77,2.00,1.00,1.00,0.00,0.00,0.00,0.00,0,367968,323992020,4447784558,4433099877,152270464
1792744830.77,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,367968,323992152,4447786720,4433099877,152270464
1792744831.78,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,367968,323992218,4447787516,4433099877,152270464
1792744832.78,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,367968,323992350,4447790196,4433099877,152270464
1792744833.79,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,367968,323992416,4447790976,4433099877,152270464
1792744834.79,1.98,0.99,0.99,0.00,5.94,0.00,0.00,0,367968,323992548,4447793230,4433099877,152270464
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 1792744819.72 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 368088 321932710 3888665496 3873988798 150206675
3 1792744820.72 1.01 0.00 1.01 0.00 0.00 0.00 0.00 0 368088 321932842 3888667466 3873988798 150206675
4 1792744821.73 1.00 1.00 0.00 0.00 0.00 0.00 0.00 0 368088 321932908 3888668038 3873988798 150206675
5 1792744822.73 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 368088 321933040 3888669886 3873988798 150206675
6 1792744823.74 1.98 0.99 0.99 0.00 2.97 0.00 0.00 0 368084 321933106 3888670474 3873988798 150206675
7 1792744824.74 4.95 2.97 1.98 0.00 0.00 0.00 0.00 0 370088 321933238 3888671826 3873990233 150208592
8 1792744825.75 10.10 10.10 0.00 0.00 0.00 0.00 0.00 0 370084 321933304 3888672510 3873994091 150211860
9 1792744826.75 2.22 0.00 1.11 1.11 0.00 0.00 0.00 0 369140 322643941 4024351024 4009670543 150922365
10 1792744827.76 2.41 1.20 0.00 1.20 0.00 0.00 0.00 0 368820 323387961 4254204494 4239523153 151666319
11 1792744828.76 2.30 0.00 1.15 1.15 0.00 0.00 0.00 0 369028 323974299 4439334268 4424650227 152252395
12 1792744829.77 2.00 1.00 1.00 0.00 0.00 0.00 0.00 0 367968 323992020 4447784558 4433099877 152270464
13 1792744830.77 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 367968 323992152 4447786720 4433099877 152270464
14 1792744831.78 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 367968 323992218 4447787516 4433099877 152270464
15 1792744832.78 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 367968 323992350 4447790196 4433099877 152270464
16 1792744833.79 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 367968 323992416 4447790976 4433099877 152270464
17 1792744834.79 1.98 0.99 0.99 0.00 5.94 0.00 0.00 0 367968 323992548 4447793230 4433099877 152270464
+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
1792744839.66,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,367968,323993088,4447799854,4433099877,152270464
1792744840.67,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,367968,323993154,4447800570,4433099877,152270464
1792744841.67,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,367964,323993286,4447802194,4433099877,152270464
1792744842.68,0.99,0.00,0.99,0.00,0.00,0.00,0.00,0,367964,323993352,4447802910,4433099877,152270464
1792744843.68,2.00,1.00,1.00,0.00,0.00,0.00,0.00,0,367964,323993562,4447804990,4433099877,152270464
1792744844.69,4.00,3.00,1.00,0.00,0.00,0.00,0.00,0,368960,323993628,4447805706,4433101312,152272381
1792744845.70,10.78,8.82,0.98,0.00,0.00,0.98,0.00,0,369212,323993760,4447807730,4433105170,152275583
1792744846.70,1.19,0.00,0.00,1.19,0.00,0.00,0.00,0,368644,324877221,4634283395,4619580077,153158978
1792744847.71,2.33,1.16,1.16,0.00,0.00,0.00,0.00,0,369036,325407257,4871327530,4856622532,153688882
1792744848.71,2.13,1.06,1.06,0.00,0.00,0.00,0.00,0,369336,325708803,4989967433,4975261677,153990362
1792744849.72,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0,369336,325725166,4998421287,4983713919,154006593
1792744850.72,1.98,0.99,0.99,0.00,0.00,0.00,0.00,0,367972,325725232,4998422077,4983714491,154007085
1792744851.73,1.01,0.00,1.01,0.00,0.00,0.00,0.00,0,367972,325725364,4998423877,4983714491,154007085
1792744852.73,0.99,0.99,0.00,0.00,0.00,0.00,0.00,0,367972,325725430,4998424737,4983714491,154007085
1792744853.73,2.00,1.00,1.00,0.00,0.00,0.00,0.00,0,367972,325725562,4998426611,4983714491,154007085
1792744854.74,1.00,0.00,1.00,0.00,0.00,0.00,0.00,0,367972,325725628,4998427471,4983714491,154007085
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 1792744839.66 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 367968 323993088 4447799854 4433099877 152270464
3 1792744840.67 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 367968 323993154 4447800570 4433099877 152270464
4 1792744841.67 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 367964 323993286 4447802194 4433099877 152270464
5 1792744842.68 0.99 0.00 0.99 0.00 0.00 0.00 0.00 0 367964 323993352 4447802910 4433099877 152270464
6 1792744843.68 2.00 1.00 1.00 0.00 0.00 0.00 0.00 0 367964 323993562 4447804990 4433099877 152270464
7 1792744844.69 4.00 3.00 1.00 0.00 0.00 0.00 0.00 0 368960 323993628 4447805706 4433101312 152272381
8 1792744845.70 10.78 8.82 0.98 0.00 0.00 0.98 0.00 0 369212 323993760 4447807730 4433105170 152275583
9 1792744846.70 1.19 0.00 0.00 1.19 0.00 0.00 0.00 0 368644 324877221 4634283395 4619580077 153158978
10 1792744847.71 2.33 1.16 1.16 0.00 0.00 0.00 0.00 0 369036 325407257 4871327530 4856622532 153688882
11 1792744848.71 2.13 1.06 1.06 0.00 0.00 0.00 0.00 0 369336 325708803 4989967433 4975261677 153990362
12 1792744849.72 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0 369336 325725166 4998421287 4983713919 154006593
13 1792744850.72 1.98 0.99 0.99 0.00 0.00 0.00 0.00 0 367972 325725232 4998422077 4983714491 154007085
14 1792744851.73 1.01 0.00 1.01 0.00 0.00 0.00 0.00 0 367972 325725364 4998423877 4983714491 154007085
15 1792744852.73 0.99 0.99 0.00 0.00 0.00 0.00 0.00 0 367972 325725430 4998424737 4983714491 154007085
16 1792744853.73 2.00 1.00 1.00 0.00 0.00 0.00 0.00 0 367972 325725562 4998426611 4983714491 154007085
17 1792744854.74 1.00 0.00 1.00 0.00 0.00 0.00 0.00 0 367972 325725628 4998427471 4983714491 154007085
+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
1792744867.92,1.00,0.00,1.00,0.00,0.00,0.00,0.00,29756,382048,325734472,4998475185,4983714491,154007085
1792744868.93,3.96,0.99,0.99,0.99,0.00,0.99,0.99,29756,382044,325741809,4998477176,4983714491,154007085
1792744869.94,2.94,0.98,0.98,0.00,0.00,0.98,0.00,29756,382044,325741941,4998478922,4983714491,154007085
1792744870.95,1.00,1.00,0.00,0.00,0.00,0.00,0.00,29756,382044,325742007,4998479670,4983714491,154007085
1792744871.95,0.00,0.00,0.00,0.00,0.00,0.00,0.00,29756,382044,325742217,4998481956,4983714491,154007085
1792744872.96,6.86,4.90,1.96,0.00,0.00,0.00,0.00,29756,384308,325742283,4998482586,4983715926,154009002
1792744873.97,9.00,8.00,1.00,0.00,0.00,0.00,0.00,29756,384308,325742415,4998484684,4983719784,154012188
1792744874.97,37.37,23.23,9.09,5.05,0.00,0.00,36.82,33084,391348,326043765,5043535246,5033920950,154123689
1792744875.99,97.09,44.66,26.21,26.21,0.00,0.00,93.63,33212,400680,327294783,5268654246,5267185232,154434312
1792744877.00,97.00,47.00,27.00,23.00,0.00,0.00,95.99,33212,388676,328389783,5452550918,5441388369,154658613
1792744878.01,56.86,26.47,15.69,14.71,0.00,0.00,52.24,33212,382552,328968386,5540176147,5524400291,154760349
1792744879.02,1.01,0.00,1.01,0.00,0.00,0.00,1.99,33212,382776,328975354,5540178210,5524400291,154760349
1792744880.02,1.98,0.99,0.99,0.00,0.00,0.00,0.00,33212,382776,328975486,5540180864,5524400291,154760349
1792744881.03,0.00,0.00,0.00,0.00,0.00,0.00,0.00,33212,382776,328975552,5540181724,5524400291,154760349
1792744882.03,1.98,0.99,0.99,0.00,0.00,0.00,0.00,33212,382776,328975684,5540183518,5524400291,154760349
1792744883.04,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33212,382776,328975828,5540185056,5524400291,154760349
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 1792744867.92 1.00 0.00 1.00 0.00 0.00 0.00 0.00 29756 382048 325734472 4998475185 4983714491 154007085
3 1792744868.93 3.96 0.99 0.99 0.99 0.00 0.99 0.99 29756 382044 325741809 4998477176 4983714491 154007085
4 1792744869.94 2.94 0.98 0.98 0.00 0.00 0.98 0.00 29756 382044 325741941 4998478922 4983714491 154007085
5 1792744870.95 1.00 1.00 0.00 0.00 0.00 0.00 0.00 29756 382044 325742007 4998479670 4983714491 154007085
6 1792744871.95 0.00 0.00 0.00 0.00 0.00 0.00 0.00 29756 382044 325742217 4998481956 4983714491 154007085
7 1792744872.96 6.86 4.90 1.96 0.00 0.00 0.00 0.00 29756 384308 325742283 4998482586 4983715926 154009002
8 1792744873.97 9.00 8.00 1.00 0.00 0.00 0.00 0.00 29756 384308 325742415 4998484684 4983719784 154012188
9 1792744874.97 37.37 23.23 9.09 5.05 0.00 0.00 36.82 33084 391348 326043765 5043535246 5033920950 154123689
10 1792744875.99 97.09 44.66 26.21 26.21 0.00 0.00 93.63 33212 400680 327294783 5268654246 5267185232 154434312
11 1792744877.00 97.00 47.00 27.00 23.00 0.00 0.00 95.99 33212 388676 328389783 5452550918 5441388369 154658613
12 1792744878.01 56.86 26.47 15.69 14.71 0.00 0.00 52.24 33212 382552 328968386 5540176147 5524400291 154760349
13 1792744879.02 1.01 0.00 1.01 0.00 0.00 0.00 1.99 33212 382776 328975354 5540178210 5524400291 154760349
14 1792744880.02 1.98 0.99 0.99 0.00 0.00 0.00 0.00 33212 382776 328975486 5540180864 5524400291 154760349
15 1792744881.03 0.00 0.00 0.00 0.00 0.00 0.00 0.00 33212 382776 328975552 5540181724 5524400291 154760349
16 1792744882.03 1.98 0.99 0.99 0.00 0.00 0.00 0.00 33212 382776 328975684 5540183518 5524400291 154760349
17 1792744883.04 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33212 382776 328975828 5540185056 5524400291 154760349
+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
1792744888.03,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33212,382776,328976474,5540192268,5524400291,154760349
1792744889.04,1.00,0.00,1.00,0.00,0.00,0.00,0.00,33212,382772,328983073,5540194417,5524400291,154760349
1792744890.04,1.98,0.99,0.99,0.00,0.00,0.00,0.00,33212,382772,328983601,5540197079,5524400291,154760349
1792744891.05,1.00,0.00,1.00,0.00,31.00,0.00,0.00,33212,382772,328983667,5540197897,5524400291,154760349
1792744892.05,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33212,382772,328983799,5540199345,5524400291,154760349
1792744893.06,4.00,3.00,1.00,0.00,0.00,0.00,0.00,33212,383768,328983865,5540200077,5524401726,154762266
1792744894.06,10.89,8.91,1.98,0.00,0.00,0.00,0.00,33212,384020,328983997,5540201625,5524405584,154765452
1792744895.07,60.61,33.33,15.15,12.12,0.00,0.00,59.73,33340,386136,329696289,5673431545,5659713609,154964649
1792744896.08,88.12,44.55,24.75,18.81,0.00,0.00,84.11,33340,386012,330539221,5885246125,5871373421,155201699
1792744897.09,89.00,43.00,25.00,21.00,0.00,0.00,85.87,33340,383904,331539410,6089896103,6073606979,155412652
1792744898.10,3.96,1.98,1.98,0.00,0.00,0.00,1.99,33340,382624,331541877,6089911506,6073622377,155416883
1792744899.11,1.98,0.99,0.99,0.00,0.00,0.00,0.00,33340,382828,331548476,6089913547,6073622377,155416883
1792744900.11,1.01,0.00,1.01,0.00,0.00,0.00,0.00,33340,382828,331548608,6089915943,6073622377,155416883
1792744901.12,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33340,382828,331548674,6089916819,6073622377,155416883
1792744902.12,1.00,0.00,1.00,0.00,0.00,0.00,0.00,33340,382828,331548806,6089918581,6073622377,155416883
1792744903.13,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33340,382828,331548872,6089919999,6073622377,155416883
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 1792744888.03 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33212 382776 328976474 5540192268 5524400291 154760349
3 1792744889.04 1.00 0.00 1.00 0.00 0.00 0.00 0.00 33212 382772 328983073 5540194417 5524400291 154760349
4 1792744890.04 1.98 0.99 0.99 0.00 0.00 0.00 0.00 33212 382772 328983601 5540197079 5524400291 154760349
5 1792744891.05 1.00 0.00 1.00 0.00 31.00 0.00 0.00 33212 382772 328983667 5540197897 5524400291 154760349
6 1792744892.05 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33212 382772 328983799 5540199345 5524400291 154760349
7 1792744893.06 4.00 3.00 1.00 0.00 0.00 0.00 0.00 33212 383768 328983865 5540200077 5524401726 154762266
8 1792744894.06 10.89 8.91 1.98 0.00 0.00 0.00 0.00 33212 384020 328983997 5540201625 5524405584 154765452
9 1792744895.07 60.61 33.33 15.15 12.12 0.00 0.00 59.73 33340 386136 329696289 5673431545 5659713609 154964649
10 1792744896.08 88.12 44.55 24.75 18.81 0.00 0.00 84.11 33340 386012 330539221 5885246125 5871373421 155201699
11 1792744897.09 89.00 43.00 25.00 21.00 0.00 0.00 85.87 33340 383904 331539410 6089896103 6073606979 155412652
12 1792744898.10 3.96 1.98 1.98 0.00 0.00 0.00 1.99 33340 382624 331541877 6089911506 6073622377 155416883
13 1792744899.11 1.98 0.99 0.99 0.00 0.00 0.00 0.00 33340 382828 331548476 6089913547 6073622377 155416883
14 1792744900.11 1.01 0.00 1.01 0.00 0.00 0.00 0.00 33340 382828 331548608 6089915943 6073622377 155416883
15 1792744901.12 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33340 382828 331548674 6089916819 6073622377 155416883
16 1792744902.12 1.00 0.00 1.00 0.00 0.00 0.00 0.00 33340 382828 331548806 6089918581 6073622377 155416883
17 1792744903.13 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33340 382828 331548872 6089919999 6073622377 155416883
+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
1792744907.89,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33340,382828,331549424,6089928091,6073622377,155416883
1792744908.89,1.00,0.00,1.00,0.00,0.00,0.00,0.00,33340,382824,331549556,6089930019,6073622377,155416883
1792744909.90,2.94,0.98,0.98,0.98,0.00,0.00,1.00,33340,382824,331556656,6089932536,6073622377,155416883
1792744910.90,1.01,0.00,1.01,0.00,0.00,0.00,0.00,33340,382824,331556788,6089934752,6073622377,155416883
1792744911.91,0.99,0.99,0.00,0.00,0.00,0.00,0.00,33340,382824,331556854,6089935468,6073622377,155416883
1792744912.91,4.04,2.02,2.02,0.00,0.00,0.00,0.00,33340,383820,331556998,6089938492,6073623812,155418800
1792744913.92,9.90,9.90,0.00,0.00,0.00,0.00,0.00,33340,384072,331557064,6089939406,6073627670,155421986
1792744914.93,82.00,41.00,21.00,20.00,0.00,0.00,80.64,33468,386604,332519114,6273866836,6259505563,155704709
1792744915.94,83.17,42.57,21.78,18.81,0.00,0.00,80.17,33468,383544,333541774,6478981276,6462221762,155933825
1792744916.95,70.00,33.00,22.00,15.00,0.00,0.00,66.39,33468,383312,334263598,6631144528,6614246315,156098850
1792744917.95,4.95,2.97,1.98,0.00,0.00,0.00,2.98,33468,382732,334265305,6631158115,6614261527,156102371
1792744918.96,3.00,1.00,2.00,0.00,5.00,0.00,0.00,33468,382948,334272339,6631161770,6614261527,156102371
1792744919.97,0.99,0.99,0.00,0.00,45.54,0.00,0.00,33468,382948,334272471,6631162780,6614261527,156102371
1792744920.97,1.01,0.00,1.01,0.00,0.00,0.00,0.00,33468,382944,334272603,6631165450,6614261527,156102371
1792744921.98,1.98,0.99,0.99,0.00,0.00,0.00,0.00,33468,382944,334272669,6631166374,6614261527,156102371
1792744922.98,1.00,1.00,0.00,0.00,0.00,0.00,0.00,33468,382944,334272867,6631168972,6614261527,156102371
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 1792744907.89 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33340 382828 331549424 6089928091 6073622377 155416883
3 1792744908.89 1.00 0.00 1.00 0.00 0.00 0.00 0.00 33340 382824 331549556 6089930019 6073622377 155416883
4 1792744909.90 2.94 0.98 0.98 0.98 0.00 0.00 1.00 33340 382824 331556656 6089932536 6073622377 155416883
5 1792744910.90 1.01 0.00 1.01 0.00 0.00 0.00 0.00 33340 382824 331556788 6089934752 6073622377 155416883
6 1792744911.91 0.99 0.99 0.00 0.00 0.00 0.00 0.00 33340 382824 331556854 6089935468 6073622377 155416883
7 1792744912.91 4.04 2.02 2.02 0.00 0.00 0.00 0.00 33340 383820 331556998 6089938492 6073623812 155418800
8 1792744913.92 9.90 9.90 0.00 0.00 0.00 0.00 0.00 33340 384072 331557064 6089939406 6073627670 155421986
9 1792744914.93 82.00 41.00 21.00 20.00 0.00 0.00 80.64 33468 386604 332519114 6273866836 6259505563 155704709
10 1792744915.94 83.17 42.57 21.78 18.81 0.00 0.00 80.17 33468 383544 333541774 6478981276 6462221762 155933825
11 1792744916.95 70.00 33.00 22.00 15.00 0.00 0.00 66.39 33468 383312 334263598 6631144528 6614246315 156098850
12 1792744917.95 4.95 2.97 1.98 0.00 0.00 0.00 2.98 33468 382732 334265305 6631158115 6614261527 156102371
13 1792744918.96 3.00 1.00 2.00 0.00 5.00 0.00 0.00 33468 382948 334272339 6631161770 6614261527 156102371
14 1792744919.97 0.99 0.99 0.00 0.00 45.54 0.00 0.00 33468 382948 334272471 6631162780 6614261527 156102371
15 1792744920.97 1.01 0.00 1.01 0.00 0.00 0.00 0.00 33468 382944 334272603 6631165450 6614261527 156102371
16 1792744921.98 1.98 0.99 0.99 0.00 0.00 0.00 0.00 33468 382944 334272669 6631166374 6614261527 156102371
17 1792744922.98 1.00 1.00 0.00 0.00 0.00 0.00 0.00 33468 382944 334272867 6631168972 6614261527 156102371
+22
View File
@@ -0,0 +1,22 @@
| Метрика | Напрямую (SNAT) | Через прокси | Δ |
|---|---|---|---|
| Время передачи, с | 4.5 ± 0.2 | 4.4 ± 0.1 | -0.1 (×1.0) |
| Скорость, МБ/с | 114 ± 6 | 117 ± 3 | +3 (×1.0) |
| CPU узла, среднее за передачу, % | 5.9 ± 5.4 | 76.6 ± 3.2 | +70.7 (×13.0) |
| CPU узла, пик, % | 14.4 ± 17.0 | 89.8 ± 5.7 | +75.4 (×6.2) |
| из них user, % | 1.4 ± 1.2 | 38.2 ± 2.1 | +36.8 (×27.1) |
| из них system, % | 1.5 ± 1.1 | 20.9 ± 1.0 | +19.4 (×13.7) |
| из них softirq, % | 2.8 ± 2.9 | 17.5 ± 0.3 | +14.7 (×6.2) |
| steal, % | 0.1 ± 0.2 | 0.0 ± 0.0 | -0.1 (×0.0) |
| CPU процесса haproxy, среднее, % ядра | 0.0 ± 0.0 | 74.0 ± 3.1 | +74.0 |
| CPU процесса haproxy, пик, % ядра | 0.0 ± 0.0 | 87.5 ± 6.4 | +87.5 |
| CPU-секунд на передачу 512 МБ | 0.27 ± 0.13 | 2.59 ± 0.18 | +2.32 (×9.5) |
| CPU-секунд на 1 ГБ | 0.54 ± 0.26 | 5.19 ± 0.35 | +4.64 (×9.5) |
| RSS haproxy, пик, МБ | 0 ± 0 | 33 ± 0 | +33 |
| Прирост RAM узла (used), пик, МБ | 1 ± 1 | 8 ± 7 | +7 (×7.7) |
По прогонам (cpu_avg / cpu_s / dur):
direct [(13.5, 0.45, 4.16), (2.3, 0.2, 4.57), (1.9, 0.17, 4.72)] активных секунд: [3, 3, 3]
proxy [(72.1, 2.84, 4.37), (79.2, 2.49, 4.5), (78.4, 2.45, 4.24)] активных секунд: [4, 3, 3]
База RAM узла до теста, МБ: {'direct': 389, 'proxy': 373}
+16
View File
@@ -0,0 +1,16 @@
[08:39:54] mode=direct haproxy=inactive endpoint=https://hb.ru-msk.vkcloud-storage.ru
direct 1 1792744805.171076717 1792744809.674236344 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-1.bin DUR 4.164552204
direct 2 1792744824.692133016 1792744829.625008893 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-2.bin DUR 4.569779447
direct 3 1792744844.638931787 1792744849.730297294 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/direct-3.bin DUR 4.718449409
[08:41:01] mode=proxy haproxy=active endpoint=https://s3-v.myhost.local
proxy 1 1792744872.900789987 1792744877.994482621 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-1.bin DUR 4.370354428
proxy 2 1792744893.009359870 1792744897.854499496 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-2.bin DUR 4.504413279
proxy 3 1792744912.867776650 1792744917.443986788 | upload: ./test512m.bin to s3://clabatombuk/cpu-test/proxy-3.bin DUR 4.241256150
delete: s3://clabatombuk/cpu-test/direct-1.bin
delete: s3://clabatombuk/cpu-test/direct-2.bin
delete: s3://clabatombuk/cpu-test/proxy-1.bin
delete: s3://clabatombuk/cpu-test/direct-3.bin
delete: s3://clabatombuk/cpu-test/proxy-3.bin
delete: s3://clabatombuk/cpu-test/proxy-2.bin
haproxy=active nftables=active
DONE