Исправить замечания ревью: защита rollout от остановленных реплик, чтение серий, время экспериментов по часам Docker, выход сервера при ошибке старта

This commit is contained in:
2026-11-02 18:23:26 +03:00
parent b2973405f3
commit c9d0f73221
8 changed files with 153 additions and 25 deletions
+4 -1
View File
@@ -47,8 +47,11 @@ grep -v '^#' "$series" | while read -r name replicas cpus memory gomemlimit pool
stats=$!
sample_postgres "$dir/postgres.jsonl" &
pg=$!
# stdin is closed: `compose run` is interactive by default and would
# otherwise read the rest of the series file this loop is reading.
BENCH_OUT=$(abspath "$dir") docker compose --profile bench run --rm loadgen bench \
-rates "$RATES" -step "$step" -warmup "$warmup" -scrape >"$dir/loadgen.log" 2>&1 || echo " loadgen failed, see $dir/loadgen.log"
-rates "$RATES" -step "$step" -warmup "$warmup" -scrape >"$dir/loadgen.log" 2>&1 </dev/null ||
echo " loadgen failed, see $dir/loadgen.log"
kill "$stats" "$pg" 2>/dev/null || true
wait "$stats" "$pg" 2>/dev/null || true
cat "$dir/loadgen.log" | grep '^step' || true