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: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
|
||||
Reference in new issue
Block a user