Добавить нагрузку при отказах и проверку SIGTERM через балансировщик

This commit is contained in:
2026-10-30 21:43:16 +03:00
parent 08aba1e8d3
commit 269b449ca5
5 changed files with 408 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# Наполняет БД синтетической историей и печатает планы запросов пагинации.
set -eu
cd "$(dirname "$0")/.."
run_sql() {
docker compose --env-file .env exec -T postgres psql -U messenger -d messenger -v ON_ERROR_STOP=1 -q
}
run_sql < scripts/seed_history.sql
run_sql < scripts/explain_history.sql