docs: add architecture diagrams for the three follow-up experiments
Each of A-7a, B-7a and D-4a had the concepts, procedure, commands and
terminal evidence but no diagram, which the rest of the series carries.
a7a-cache-temperature.svg the three cache states and the SQL each issues
b7a-orphan-lifecycle.svg ticket structure, accumulation across two
rotations, and why TTL is the only signal
d4a-hook-timeline.svg the 38m25s gap against the 1-2s one, on one axis
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e9baac21d5
commit
a2f749292a
@@ -0,0 +1,70 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 860 470" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,sans-serif">
|
||||
<style>
|
||||
.box{fill:#fff;stroke:#8c959f;stroke-width:1.4;rx:6}
|
||||
.dead{fill:#fff5f5;stroke:#cf222e;stroke-width:1.6;stroke-dasharray:5 3;rx:6}
|
||||
.ok{fill:#f6fdf6;stroke:#1a7f37;stroke-width:1.6;rx:6}
|
||||
.warn{fill:#fff8f0;stroke:#bf8700;stroke-width:1.5;rx:6}
|
||||
.t{font-size:12px;fill:#1f2328}
|
||||
.tb{font-size:12.5px;fill:#1f2328;font-weight:600}
|
||||
.s{font-size:10.5px;fill:#656d76}
|
||||
.ttl{font-size:14px;fill:#1f2328;font-weight:600}
|
||||
.r{stroke:#cf222e;stroke-width:1.6;fill:none}
|
||||
.g{stroke:#1a7f37;stroke-width:1.6;fill:none}
|
||||
.k{stroke:#8c959f;stroke-width:1.3;fill:none}
|
||||
</style>
|
||||
<defs>
|
||||
<marker id="a" markerWidth="8" markerHeight="8" refX="7" refY="3" orient="auto"><path d="M0,0 L7,3 L0,6 z" fill="#8c959f"/></marker>
|
||||
<marker id="ar" markerWidth="8" markerHeight="8" refX="7" refY="3" orient="auto"><path d="M0,0 L7,3 L0,6 z" fill="#cf222e"/></marker>
|
||||
<marker id="ag" markerWidth="8" markerHeight="8" refX="7" refY="3" orient="auto"><path d="M0,0 L7,3 L0,6 z" fill="#1a7f37"/></marker>
|
||||
</defs>
|
||||
<text x="20" y="26" class="ttl">A-7a — volatile + DB 정지의 결과는 「무엇을 하느냐」가 아니라 「캐시가 더운가」로 갈린다</text>
|
||||
<text x="20" y="44" class="s">문장 로깅(log_statement=all)으로 측정 · 세 상태 모두 재현</text>
|
||||
|
||||
<rect x="20" y="66" width="380" height="120" class="box"/>
|
||||
<text x="34" y="88" class="tb">로그인이 쏘는 SQL</text>
|
||||
<rect x="36" y="100" width="348" height="34" class="ok"/>
|
||||
<text x="48" y="122" class="t">0개 — realm·사용자·클라이언트가 전부 캐시</text>
|
||||
<text x="36" y="152" class="s">MARK_LOGIN_START / MARK_LOGIN_END 사이가 비어 있다</text>
|
||||
<text x="36" y="170" class="s">volatile 이라 세션 쓰기도 없다</text>
|
||||
|
||||
<rect x="440" y="66" width="400" height="120" class="box"/>
|
||||
<text x="454" y="88" class="tb">refresh 가 쏘는 SQL</text>
|
||||
<rect x="456" y="100" width="368" height="34" class="warn"/>
|
||||
<text x="466" y="115" class="t">select cscme1_0.SCOPE_ID from CLIENT_SCOPE_CLIENT</text>
|
||||
<text x="466" y="129" class="s">where CLIENT_ID=$1 and DEFAULT_SCOPE=$2 ('f' = optional)</text>
|
||||
<text x="454" y="152" class="s">★ REVOKED_TOKEN 은 한 번도 나오지 않는다 — A-7 의 가설은 틀렸다</text>
|
||||
<text x="454" y="170" class="s">그리고 첫 refresh 만 쏜다. 이후 3회는 SQL 0건 = 캐시됨</text>
|
||||
|
||||
<text x="20" y="222" class="tb">그래서 같은 설정이 세 가지 답을 낸다 — PostgreSQL 정지 시</text>
|
||||
|
||||
<rect x="20" y="240" width="266" height="120" class="dead"/>
|
||||
<text x="34" y="262" class="tb">① 완전 냉시동</text>
|
||||
<text x="34" y="282" class="s">재시작 직후, 아무것도 안 함</text>
|
||||
<text x="34" y="306" class="t">로그인 <tspan fill="#cf222e" font-weight="600">400</tspan> refresh 400</text>
|
||||
<text x="34" y="328" class="s">select ce1_0.ID from CLIENT</text>
|
||||
<text x="34" y="344" class="s">클라이언트 조회조차 캐시에 없다</text>
|
||||
|
||||
<rect x="298" y="240" width="266" height="120" class="warn"/>
|
||||
<text x="312" y="262" class="tb">② CLIENT 만 더움</text>
|
||||
<text x="312" y="282" class="s">로그인 1회 뒤 · ← A-7 이 본 상태</text>
|
||||
<text x="312" y="306" class="t">로그인 200 refresh <tspan fill="#bf8700" font-weight="600">500</tspan></text>
|
||||
<text x="312" y="328" class="s">CLIENT_SCOPE_CLIENT 조회 실패</text>
|
||||
<text x="312" y="344" class="s">Keycloak 로그가 이 SQL 을 직접 지목</text>
|
||||
|
||||
<rect x="576" y="240" width="264" height="120" class="ok"/>
|
||||
<text x="590" y="262" class="tb">③ 완전히 더움</text>
|
||||
<text x="590" y="282" class="s">refresh 3회로 캐시를 채운 뒤</text>
|
||||
<text x="590" y="306" class="t">로그인 200 refresh <tspan fill="#1a7f37" font-weight="600">200</tspan></text>
|
||||
<text x="590" y="328" class="s">SQL 0건 — DB 를 아예 안 본다</text>
|
||||
<text x="590" y="344" class="s">A-7 의 표와 정반대</text>
|
||||
|
||||
<path d="M286 300 L294 300" class="k" marker-end="url(#a)"/>
|
||||
<path d="M564 300 L572 300" class="k" marker-end="url(#a)"/>
|
||||
<text x="292" y="290" class="s">로그인 1회</text>
|
||||
<text x="570" y="290" class="s">refresh 3회</text>
|
||||
|
||||
<rect x="20" y="384" width="820" height="66" class="box"/>
|
||||
<text x="34" y="406" class="tb">남기는 것</text>
|
||||
<text x="34" y="426" class="s">· A-7 의 표에는 조건이 빠져 있었다 — 「volatile 이면 DB 없이 로그인된다」도 냉시동에서는 거짓이다</text>
|
||||
<text x="34" y="442" class="s">· 상태가 결과를 바꾸는데 그 상태가 안 보인다. A-1 의 conntrack 과 같은 계열의 함정이다</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
Reference in New Issue
Block a user