ЛР3: HAProxy, реплики API, идемпотентность, отказы и rolling update, исследование масштабирования

This commit is contained in:
kolya5544
2026-10-03 05:10:45 +03:00
parent 0ab3a341aa
commit 7e6f66c3db
51 changed files with 6943 additions and 21 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Полная серия трека 1: base (SEND_STRATEGY=multi) и improved (function); см. REPORT.md. Занимает ~35 минут.
set -eu
cd "$(dirname "$0")/.."
PY="${PY:-python}"
export PYTHONUTF8=1
set_strategy() {
SEND_STRATEGY="$1" docker compose --env-file .env up -d --no-deps --force-recreate api >/dev/null 2>&1
sleep 12
}
set_strategy multi
$PY research/scaling.py --series A --concurrency 64 --tag base --out evidence
$PY research/scaling.py --series B --concurrency 64 --tag base --out evidence
$PY research/scaling.py --series B --concurrency 64 --pg-cpus 4 --tag base_pg4 --out evidence
set_strategy function
$PY research/scaling.py --series A --concurrency 64 --tag improved --out evidence
$PY research/scaling.py --series B --concurrency 64 --tag improved --out evidence
echo ALL-DONE