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:
commit
ea1592800a
169 files changed
+5848
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user