forked from mtusi2026/mtusi2026lab3
ЛР3: HAProxy, реплики API, идемпотентность, отказы и rolling update, исследование масштабирования
This commit is contained in:
Executable
+18
@@ -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
|
||||
Reference in New Issue
Block a user