refactor: 문서 개선 중

This commit is contained in:
donghyeon-ka
2026-09-21 14:30:55 +09:00
parent c93cdea150
commit 805a18f486
1497 changed files with 525837 additions and 59152 deletions
@@ -10,13 +10,13 @@ JGroups 는 한 방향이 막혀도 열린 방향으로 재연결한다. 그래
## Elements and evidence
- **keycloak-0** (service): 코디네이터. 분단돼도 살아남는다. Evidence: L226L236.
- **막은 방향** (channel): raw 테이블 PREROUTING 에서 끊는다. Evidence: L226L236.
- **keycloak-1** (service): 분단되면 스스로 로드밸런서에서 빠진다. Evidence: L226L236.
- **열린 반대 방향** (channel): 비대칭 차단에서는 여기로 재연결한다. Evidence: L226L232.
- **keycloak-0** (service): 코디네이터. 분단돼도 살아남는다. Evidence: L536L545.
- **막은 방향** (channel): raw 테이블 PREROUTING 에서 끊는다. Evidence: L536L545.
- **keycloak-1** (service): 분단되면 스스로 로드밸런서에서 빠진다. Evidence: L536L545.
- **열린 반대 방향** (channel): 비대칭 차단에서는 여기로 재연결한다. Evidence: L536L542.
## Relationships
- **막은 방향 → keycloak-1:** 차단. Evidence: L226L232.
- **keycloak-0 → 막은 방향:** JGroups 메시지. Evidence: L226L232.
- **keycloak-1 → 열린 반대 방향:** 재연결. Evidence: L226L232.
- **막은 방향 → keycloak-1:** 차단. Evidence: L536L542.
- **keycloak-0 → 막은 방향:** JGroups 메시지. Evidence: L536L542.
- **keycloak-1 → 열린 반대 방향:** 재연결. Evidence: L536L542.
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="app.diagrams.net" modified="2026-07-23T00:00:00.000Z" agent="techviz-harness" version="24.7.17" type="device">
<diagram id="a5-partition-asymmetry" name="비대칭 차단은 가르지 못한다">
<mxGraphModel dx="680" dy="677" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<mxGraphModel dx="680" dy="1191" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1191" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="n_k0" value="keycloak-0&lt;br/&gt;cluster_size 1" tooltip="코디네이터. 분단돼도 살아남는다. | Evidence: L226-L236" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="70.0" y="60.0" width="150.0" height="71.0" as="geometry"/>
<mxCell id="n_k0" value="keycloak-0&lt;br/&gt;cluster_size 1" tooltip="코디네이터. 분단돼도 살아남는다. | Evidence: L536-L545" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="35.0" y="145.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_fwd" value="막은 방향&lt;br/&gt;conntrack 보다 먼저" tooltip="raw 테이블 PREROUTING 에서 끊는다. | Evidence: L226-L236" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="70.0" y="227.0" width="150.0" height="71.0" as="geometry"/>
<mxCell id="n_fwd" value="막은 방향&lt;br/&gt;conntrack 보다 먼저" tooltip="raw 테이블 PREROUTING 에서 끊는다. | Evidence: L536-L545" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;strokeColor=#d97706;fillColor=#fffdf5;" vertex="1" parent="1">
<mxGeometry x="35.0" y="455.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_k1" value="keycloak-1&lt;br/&gt;readiness 실패" tooltip="분단되면 스스로 로드밸런서에서 빠진다. | Evidence: L226-L236" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="70.0" y="394.0" width="150.0" height="71.0" as="geometry"/>
<mxCell id="n_k1" value="keycloak-1&lt;br/&gt;readiness 실패" tooltip="분단되면 스스로 로드밸런서에서 빠진다. | Evidence: L536-L545" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="35.0" y="765.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="n_rev" value="열린 반대 방향&lt;br/&gt;재연결 경로" tooltip="비대칭 차단에서는 여기로 재연결한다. | Evidence: L226-L232" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="70.0" y="561.0" width="150.0" height="71.0" as="geometry"/>
<mxCell id="n_rev" value="열린 반대 방향&lt;br/&gt;재연결 경로" tooltip="비대칭 차단에서는 여기로 재연결한다. | Evidence: L536-L542" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="35.0" y="1075.0" width="150.0" height="71.0" as="geometry"/>
</mxCell>
<mxCell id="e_f-k1" value="차단" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_fwd" target="n_k1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="169.0" y="346.0" as="offset"/>
<mxPoint x="134.0" y="645.5" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_k0-f" value="JGroups 메시지" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_k0" target="n_fwd">
<mxGeometry relative="1" as="geometry">
<mxPoint x="169.0" y="179.0" as="offset"/>
<mxPoint x="134.0" y="335.5" as="offset"/>
</mxGeometry>
</mxCell>
<mxCell id="e_k1-rev" value="재연결" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_k1" target="n_rev">
<mxGeometry relative="1" as="geometry">
<mxPoint x="169.0" y="513.0" as="offset"/>
<mxPoint x="134.0" y="955.5" as="offset"/>
</mxGeometry>
</mxCell>
</root>
@@ -6,10 +6,10 @@
{
"id": "edge-f-k1",
"type": "arrow",
"x": 145.0,
"y": 298.0,
"x": 110.0,
"y": 526.0,
"width": 0.0,
"height": 96.0,
"height": 239.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -37,15 +37,15 @@
],
[
0.0,
48.0
119.5
],
[
0.0,
48.0
119.5
],
[
0.0,
96.0
239.0
]
],
"lastCommittedPoint": null,
@@ -66,8 +66,8 @@
{
"id": "edge-label-f-k1",
"type": "text",
"x": 124.0,
"y": 334.0,
"x": 89.0,
"y": 633.5,
"width": 90,
"height": 24,
"angle": 0,
@@ -105,10 +105,10 @@
{
"id": "edge-k0-f",
"type": "arrow",
"x": 145.0,
"y": 131.0,
"x": 110.0,
"y": 216.0,
"width": 0.0,
"height": 96.0,
"height": 239.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -136,15 +136,15 @@
],
[
0.0,
48.0
119.5
],
[
0.0,
48.0
119.5
],
[
0.0,
96.0
239.0
]
],
"lastCommittedPoint": null,
@@ -165,8 +165,8 @@
{
"id": "edge-label-k0-f",
"type": "text",
"x": 124.0,
"y": 167.0,
"x": 89.0,
"y": 323.5,
"width": 90,
"height": 24,
"angle": 0,
@@ -204,10 +204,10 @@
{
"id": "edge-k1-rev",
"type": "arrow",
"x": 145.0,
"y": 465.0,
"x": 110.0,
"y": 836.0,
"width": 0.0,
"height": 96.0,
"height": 239.0,
"angle": 0,
"strokeColor": "#1e1e1e",
"backgroundColor": "transparent",
@@ -235,15 +235,15 @@
],
[
0.0,
48.0
119.5
],
[
0.0,
48.0
119.5
],
[
0.0,
96.0
239.0
]
],
"lastCommittedPoint": null,
@@ -264,8 +264,8 @@
{
"id": "edge-label-k1-rev",
"type": "text",
"x": 124.0,
"y": 501.0,
"x": 89.0,
"y": 943.5,
"width": 90,
"height": 24,
"angle": 0,
@@ -303,8 +303,8 @@
{
"id": "node-k0",
"type": "rectangle",
"x": 70.0,
"y": 60.0,
"x": 35.0,
"y": 145.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
@@ -333,8 +333,8 @@
{
"id": "node-label-k0",
"type": "text",
"x": 80.0,
"y": 70.0,
"x": 45.0,
"y": 155.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
@@ -372,8 +372,8 @@
{
"id": "node-fwd",
"type": "rectangle",
"x": 70.0,
"y": 227.0,
"x": 35.0,
"y": 455.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
@@ -402,8 +402,8 @@
{
"id": "node-label-fwd",
"type": "text",
"x": 80.0,
"y": 237.0,
"x": 45.0,
"y": 465.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
@@ -441,8 +441,8 @@
{
"id": "node-k1",
"type": "rectangle",
"x": 70.0,
"y": 394.0,
"x": 35.0,
"y": 765.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
@@ -471,8 +471,8 @@
{
"id": "node-label-k1",
"type": "text",
"x": 80.0,
"y": 404.0,
"x": 45.0,
"y": 775.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
@@ -510,8 +510,8 @@
{
"id": "node-rev",
"type": "rectangle",
"x": 70.0,
"y": 561.0,
"x": 35.0,
"y": 1075.0,
"width": 150.0,
"height": 71.0,
"angle": 0,
@@ -540,8 +540,8 @@
{
"id": "node-label-rev",
"type": "text",
"x": 80.0,
"y": 571.0,
"x": 45.0,
"y": 1085.0,
"width": 130.0,
"height": 51.0,
"angle": 0,
@@ -2,22 +2,22 @@
"harness_version": "0.2.0",
"spec_id": "a5-partition-asymmetry",
"spec_version": "1.1",
"spec_sha256": "d971af080c366e171592b1cfe7e62120eb0f4e0b5193e241e018e9440a44536b",
"spec_sha256": "0aa3da3e5c7c54040cf3edc7d09ab27531b6cef57d03bd7b3e6e944757431443",
"source_context": {
"document": "docs/keycloak-session-store/final/document.md",
"document_sha256": "1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe",
"document_sha256": "28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560",
"anchor": {
"kind": "heading",
"value": "A-5 · 비대칭 분단 — 전면 장애 경로가 없다",
"line": 246
"line": 576
}
},
"outputs": [
"a5-partition-asymmetry.svg",
"a5-partition-asymmetry.drawio",
"a5-partition-asymmetry.mmd",
"a5-partition-asymmetry.d2",
"a5-partition-asymmetry.dot",
"a5-partition-asymmetry.drawio",
"a5-partition-asymmetry.excalidraw",
"a5-partition-asymmetry.alt.md"
],
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="677" viewBox="0 0 680 677" role="img" aria-labelledby="diagram-title diagram-description">
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="1191" viewBox="0 0 680 1191" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">비대칭 차단은 가르지 못한다</title>
<desc id="diagram-description">JGroups 는 한 방향이 막혀도 열린 방향으로 재연결한다. 그래서 비대칭 차단으로는 cluster_size 가 2 로 유지된다. 양방향을 다 막으면 양쪽 모두 멤버 1개가 되지만 한쪽만 DOWN 이 된다. 코디네이터 쪽이 살아남고 분단된 쪽은 스스로 readiness 를 떨어뜨려 로드밸런서에서 빠지므로 외부 응답은 200 을 유지한다. 전면 장애 경로가 없다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;a5-partition-asymmetry&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/keycloak-session-store/final/document.md&quot;,&quot;document_sha256&quot;:&quot;1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;A-5 · 비대칭 분단 — 전면 장애 경로가 없다&quot;,&quot;line&quot;:246}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;a5-partition-asymmetry&quot;,&quot;profile&quot;:&quot;component-flow&quot;},&quot;source_context&quot;:{&quot;document&quot;:&quot;docs/keycloak-session-store/final/document.md&quot;,&quot;document_sha256&quot;:&quot;28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560&quot;,&quot;anchor&quot;:{&quot;kind&quot;:&quot;heading&quot;,&quot;value&quot;:&quot;A-5 · 비대칭 분단 — 전면 장애 경로가 없다&quot;,&quot;line&quot;:576}},&quot;evidence_policy&quot;:&quot;Each factual element cites source lines or is marked assumption.&quot;,&quot;diagram_only&quot;:true}</metadata>
<defs>
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M 0 0 L 10 5 L 0 10 z" />
@@ -49,38 +49,38 @@
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="680" height="677" />
<polyline class="edge kind-blocked style-solid emphasis-normal" points="145.0,298.0 145.0,346.0 145.0,346.0 145.0,394.0" data-evidence="226-232" />
<rect class="edge-label-bg" x="147.0" y="332.0" width="44.0" height="22" rx="3" />
<text class="edge-label" x="169.0" y="347.0">차단</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="145.0,131.0 145.0,179.0 145.0,179.0 145.0,227.0" data-evidence="226-232" />
<rect class="edge-label-bg" x="123.2" y="165.0" width="91.7" height="22" rx="3" />
<text class="edge-label" x="169.0" y="180.0">JGroups 메시지</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="145.0,465.0 145.0,513.0 145.0,513.0 145.0,561.0" data-evidence="226-232" />
<rect class="edge-label-bg" x="147.0" y="499.0" width="44.0" height="22" rx="3" />
<text class="edge-label" x="169.0" y="514.0">재연결</text>
<rect class="canvas" width="680" height="1191" />
<polyline class="edge kind-blocked style-solid emphasis-normal" points="110.0,526.0 110.0,645.5 110.0,645.5 110.0,765.0" data-evidence="536-542" />
<rect class="edge-label-bg" x="112.0" y="631.5" width="44.0" height="22" rx="3" />
<text class="edge-label" x="134.0" y="646.5">차단</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="110.0,216.0 110.0,335.5 110.0,335.5 110.0,455.0" data-evidence="536-542" />
<rect class="edge-label-bg" x="88.2" y="321.5" width="91.7" height="22" rx="3" />
<text class="edge-label" x="134.0" y="336.5">JGroups 메시지</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="110.0,836.0 110.0,955.5 110.0,955.5 110.0,1075.0" data-evidence="536-542" />
<rect class="edge-label-bg" x="112.0" y="941.5" width="44.0" height="22" rx="3" />
<text class="edge-label" x="134.0" y="956.5">재연결</text>
<g id="node-k0">
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="226-236" x="70.0" y="60.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="145.0" y="87.0">keycloak-0</text>
<line class="node-detail-divider" x1="84.0" y1="108.0" x2="206.0" y2="108.0" />
<text class="node-detail" x="86.0" y="125.0">cluster_size 1</text>
<rect class="node-shape kind-service emphasis-primary role-source" data-evidence="536-545" x="35.0" y="145.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="110.0" y="172.0">keycloak-0</text>
<line class="node-detail-divider" x1="49.0" y1="193.0" x2="171.0" y2="193.0" />
<text class="node-detail" x="51.0" y="210.0">cluster_size 1</text>
</g>
<g id="node-fwd">
<rect class="node-shape kind-channel emphasis-warning role-control" data-evidence="226-236" x="70.0" y="227.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="145.0" y="254.0">막은 방향</text>
<line class="node-detail-divider" x1="84.0" y1="275.0" x2="206.0" y2="275.0" />
<text class="node-detail" x="86.0" y="292.0">conntrack 보다 먼저</text>
<rect class="node-shape kind-channel emphasis-warning role-control" data-evidence="536-545" x="35.0" y="455.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="110.0" y="482.0">막은 방향</text>
<line class="node-detail-divider" x1="49.0" y1="503.0" x2="171.0" y2="503.0" />
<text class="node-detail" x="51.0" y="520.0">conntrack 보다 먼저</text>
</g>
<g id="node-k1">
<rect class="node-shape kind-service emphasis-normal role-target" data-evidence="226-236" x="70.0" y="394.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="145.0" y="421.0">keycloak-1</text>
<line class="node-detail-divider" x1="84.0" y1="442.0" x2="206.0" y2="442.0" />
<text class="node-detail" x="86.0" y="459.0">readiness 실패</text>
<rect class="node-shape kind-service emphasis-normal role-target" data-evidence="536-545" x="35.0" y="765.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="110.0" y="792.0">keycloak-1</text>
<line class="node-detail-divider" x1="49.0" y1="813.0" x2="171.0" y2="813.0" />
<text class="node-detail" x="51.0" y="830.0">readiness 실패</text>
</g>
<g id="node-rev">
<rect class="node-shape kind-channel emphasis-normal role-support" data-evidence="226-232" x="70.0" y="561.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="145.0" y="588.0">열린 반대 방향</text>
<line class="node-detail-divider" x1="84.0" y1="609.0" x2="206.0" y2="609.0" />
<text class="node-detail" x="86.0" y="626.0">재연결 경로</text>
<rect class="node-shape kind-channel emphasis-normal role-support" data-evidence="536-542" x="35.0" y="1075.0" width="150.0" height="71.0" rx="7" />
<text class="node-label" x="110.0" y="1102.0">열린 반대 방향</text>
<line class="node-detail-divider" x1="49.0" y1="1123.0" x2="171.0" y2="1123.0" />
<text class="node-detail" x="51.0" y="1140.0">재연결 경로</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB