Files
document-haness/docs/keycloak-session-store/final/assets/a8-cache-vs-session/a8-cache-vs-session.alt.md
T

23 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 재시작이 지우는 것과 남기는 것
## Alternative text
재시작으로 Infinispan 캐시가 0 이 되지만 PostgreSQL 의 세션 행은 그대로 남아 refresh 가 계속 통하는 구성.
## Long description
롤링 재시작은 한 번에 한 파드씩 바꾼다. 파드가 죽으면 그 노드의 Infinispan sessions 캐시는 0 으로 초기화된다. 그러나 PostgreSQL 의 세션 행은 151개가 그대로 남았고 재시작 전에 발급한 refresh token 이 여전히 200 을 받는다. 전 구간 서비스 중단이 없었다. volatile 모드였다면 같은 재시작에서 400 Session not active 가 되어 전원 로그아웃이 된다.
## Elements and evidence
- **롤링 재시작** (process): 한 번에 한 파드씩 교체한다. Evidence: L612L614.
- **Infinispan sessions 캐시** (component): 파드와 함께 사라진다. Evidence: L612L618.
- **PostgreSQL 세션 행** (datastore): 재시작과 무관하다. Evidence: L612L618.
- **재시작 전 발급한 refresh token** (component): 여전히 통한다. Evidence: L612L618.
## Relationships
- **PostgreSQL 세션 행 → 재시작 전 발급한 refresh token:** 세션 조회. Evidence: L612L618.
- **롤링 재시작 → Infinispan sessions 캐시:** 캐시 초기화. Evidence: L612L618.
- **롤링 재시작 → PostgreSQL 세션 행:** 변경 없음. Evidence: L612L618.