feat: implement estim 4

This commit is contained in:
2026-11-06 05:12:28 +03:00
parent ec111aadfb
commit b48e71f433
29 changed files with 504 additions and 194 deletions
+13 -13
View File
@@ -1,10 +1,10 @@
$ containers before
messenger-lab3_postgres_1 8c509b4f5143 Up About a minute (healthy)
messenger-lab3_redis_1 b5db2a433051 Up About a minute (healthy)
messenger-lab3_migrate_1 9fa71320cdba Exited (0) About a minute ago
messenger-lab3_api_1 0405cf8a4a54 Up About a minute
messenger-lab3_api_2 2751ae93e6d1 Up About a minute
messenger-lab3_lb_1 d3a35fe2295d Up About a minute
messenger-lab3_api_1 d63350b561c6 Up 42 seconds (healthy)
messenger-lab3_api_2 56e8d4ca6c28 Up About a minute (healthy)
messenger-lab3_lb_1 d0ec4e5311dd Up 4 minutes
messenger-lab3_migrate_1 82c01bec10d9 Exited (0) 14 minutes ago
messenger-lab3_postgres_1 0d8a6c71fcaf Up 13 minutes (healthy)
messenger-lab3_redis_1 37f40fddaa42 Up 13 minutes (healthy)
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
@@ -12,13 +12,13 @@ Executing explicit persistence hook; hook output suppressed to avoid leaking sec
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
$ containers after (same IDs, fresh Up time = restarted, volumes kept)
messenger-lab3_postgres_1 8c509b4f5143 Up 1 second (healthy)
messenger-lab3_redis_1 b5db2a433051 Up 1 second (healthy)
messenger-lab3_migrate_1 9fa71320cdba Exited (0) Less than a second ago
messenger-lab3_api_1 0405cf8a4a54 Up Less than a second
messenger-lab3_api_2 2751ae93e6d1 Up Less than a second
messenger-lab3_lb_1 d3a35fe2295d Up Less than a second
$ containers after (same IDs, restarted, volumes kept)
messenger-lab3_api_1 d63350b561c6 Up 2 seconds (healthy)
messenger-lab3_api_2 56e8d4ca6c28 Up 1 second (healthy)
messenger-lab3_lb_1 d0ec4e5311dd Up 2 seconds
messenger-lab3_migrate_1 82c01bec10d9 Exited (0) 14 minutes ago
messenger-lab3_postgres_1 0d8a6c71fcaf Up 2 seconds (healthy)
messenger-lab3_redis_1 37f40fddaa42 Up 1 second (healthy)
$ podman volume ls
messenger-lab3_pgdata