ЛР 3: HAProxy + 2 реплики, общая идемпотентность, rolling update

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LOSYASH
2026-10-22 18:21:19 +03:00
co-authored by Claude Opus 5.5
parent 0ab3a341aa
commit a71c582195
54 changed files with 3192 additions and 40 deletions
+20
View File
@@ -0,0 +1,20 @@
python : Container mtusi-lab3-redis-1 Paused
строка:1 знак:23
+ ... cache.txt { python student-tests\logout_cache.py --base-url http://lo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( Container mtusi-lab3-redis-1 Paused :String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Container mtusi-lab3-redis-1 Unpaused
ok - session is warmed up in cache
== Redis яЁшюёЄрэютыхэ ==
$ docker compose --env-file .env pause redis
ok - logout is NOT confirmed while cache cannot be invalidated (got 503, expected 503)
$ docker compose --env-file .env unpause redis
== Redis тюёёЄрэютыхэ ==
ok - unconfirmed logout left the session consistent and valid (got 200)
ok - retry logout after Redis recovery -> 204 (got 204)
ok - old token after confirmed logout -> 401, no stale cache copy (got 401)
ok - old token still rejected on repeat (got 401)
6 passed, 0 failed