Исправление по замечанию: кэш сессий наполняется после промаха

This commit is contained in:
alenchha
2026-10-23 17:42:38 +03:00
parent a0c16afa33
commit 1a60b9cd1f
16 changed files with 263 additions and 194 deletions
+8 -8
View File
@@ -1,6 +1,6 @@
--- состояние контейнеров до рестарта ---
api Up 38 seconds (healthy)
postgres Up Less than a second (health: starting)
api Up 39 seconds (healthy)
postgres Up 3 seconds (health: starting)
valkey Up 7 seconds (healthy)
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
@@ -10,9 +10,9 @@ api Up Less than a second (health: starting)
postgres Up Less than a second (health: starting)
valkey Up Less than a second (health: starting)
--- логи postgres о перезапуске ---
postgres-1 | 2026-10-19 15:51:09.945 UTC [1] LOG: starting PostgreSQL 17.7 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
postgres-1 | 2026-10-19 15:51:09.945 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2026-10-19 15:51:09.945 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2026-10-19 15:51:09.946 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2026-10-19 15:51:09.949 UTC [29] LOG: database system was shut down at 2026-10-19 15:51:09 UTC
postgres-1 | 2026-10-19 15:51:09.951 UTC [1] LOG: database system is ready to accept connections
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: starting PostgreSQL 17.7 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2026-10-23 14:36:53.364 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2026-10-23 14:36:53.366 UTC [29] LOG: database system was shut down at 2026-10-23 14:36:53 UTC
postgres-1 | 2026-10-23 14:36:53.368 UTC [1] LOG: database system is ready to accept connections