Добавить мессенджер на Java с PostgreSQL и сессиями в Redis.
Данные и действующий токен переживают рестарт, сессии хранятся в Redis с AOF. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
scripts/restart.sh перезапускает postgres и redis, ждёт healthy и затем перезапускает api.
|
||||
Volumes pgdata и redisdata не удаляются. Тот же Bearer-токен после рестарта читает те же данные.
|
||||
|
||||
После прогона:
|
||||
api, postgres, redis — healthy.
|
||||
uid процесса API: uid=10001(messenger)
|
||||
Redis: aof_enabled:1, aof_last_write_status:ok
|
||||
docker stop -t 10 api: docker_stop_ms=2280, лог event=shutdown phase=end duration_ms=2006
|
||||
Reference in New Issue
Block a user