Files
document-haness/docs/keycloak-session-store/final/assets/d2-upgrade-direction/d2-upgrade-direction.svg
T

92 lines
7.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1376" height="319" viewBox="0 0 1376 319" role="img" aria-labelledby="diagram-title diagram-description">
<title id="diagram-title">방향에 따라 갈리는 업그레이드</title>
<desc id="diagram-description">26.7.0 에서 26.7.3 으로 올리는 것은 무중단이었고 87회 요청이 전부 200 이었다. 되돌리기는 Liquibase 가 체크섬 검증에서 막았다. 새 버전이 남긴 체크섬을 옛 버전이 거부하기 때문이다. 그런데 서비스는 살아 있었다. StatefulSet 롤링 업데이트가 첫 파드에서 멈추고 나머지를 건드리지 않았기 때문이다. 롤백 불가는 조건부이며 판단 기준은 databasechangelog 의 행 수가 업그레이드 전후로 같은가이다.</desc>
<metadata>{&quot;techviz&quot;:{&quot;spec_version&quot;:&quot;1.1&quot;,&quot;id&quot;:&quot;d2-upgrade-direction&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;D-1 · D-2 — 백업과 업그레이드&quot;,&quot;line&quot;:986}},&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" />
</marker>
<style>
:root { color-scheme: light; }
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
.canvas { fill: #ffffff; }
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
.group-label-bg { fill: #ffffff; }
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
.edge.style-dotted { stroke-dasharray: 2 5; }
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.edge.emphasis-muted { stroke: #9ca3af; }
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
.edge-label-bg { fill: #ffffff; }
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
.node-shape.assumption { stroke-dasharray: 4 4; }
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
.controller-led { fill: #4b5563; }
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
.node-detail { font-size: 11px; fill: #374151; }
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
</style>
</defs>
<rect class="canvas" width="1376" height="319" />
<polyline class="edge kind-read style-solid emphasis-normal" points="680.0,158.0 760.0,158.0 760.0,95.5 840.0,95.5" data-evidence="1006-1008" />
<rect class="edge-label-bg" x="758.2" y="112.8" width="51.5" height="22" rx="3" />
<text class="edge-label" x="784.0" y="127.8">판단 기준</text>
<polyline class="edge kind-blocked style-solid emphasis-normal" points="680.0,176.0 763.5,176.0 763.5,238.5 847.0,238.5" data-evidence="997-999" />
<rect class="edge-label-bg" x="761.8" y="193.2" width="51.5" height="22" rx="3" />
<text class="edge-label" x="787.5" y="208.2">중단 지점</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="220.0,167.0 300.0,167.0 300.0,167.0 380.0,167.0" data-evidence="988-996" />
<rect class="edge-label-bg" x="267.6" y="125.0" width="64.9" height="22" rx="3" />
<text class="edge-label" x="300.0" y="140.0">기동 시 검증</text>
<polyline class="edge kind-request style-solid emphasis-normal" points="1014.0,238.5 1097.5,238.5 1097.5,167.0 1181.0,167.0" data-evidence="997-1003" />
<rect class="edge-label-bg" x="1085.7" y="188.8" width="71.6" height="22" rx="3" />
<text class="edge-label" x="1121.5" y="203.8">잔여 파드 응답</text>
<g id="node-rollback">
<rect class="node-shape kind-process emphasis-warning role-source" data-evidence="988-995" x="70.0" y="135.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="145.0" y="165.0">옛 버전 롤백</text>
</g>
<g id="node-liquibase">
<rect class="node-shape kind-process emphasis-warning role-control" data-evidence="988-996" x="380.0" y="131.5" width="300.0" height="71.0" rx="7" />
<text class="node-label" x="530.0" y="158.5">Liquibase 검증</text>
<line class="node-detail-divider" x1="394.0" y1="179.5" x2="666.0" y2="179.5" />
<text class="node-detail" x="396.0" y="196.5">ValidationFailedException: 1 changesets check sum</text>
</g>
<g id="node-changelog">
<rect class="node-shape kind-datastore emphasis-primary role-support" data-evidence="1006-1008" x="840.0" y="71.8" width="181.0" height="47.3" /><ellipse class="node-shape kind-datastore emphasis-primary role-support" cx="930.5" cy="71.8" rx="90.5" ry="11.8" /><path class="storage-bottom" d="M 840.0 119.2 A 90.5 11.8 0 0 0 1021.0 119.2" />
<text class="node-label" x="930.5" y="87.0">databasechangelog 행 수</text>
<line class="node-detail-divider" x1="854.0" y1="108.0" x2="1007.0" y2="108.0" />
<text class="node-detail" x="856.0" y="125.0">전후 행 수 비교</text>
</g>
<g id="node-rolling">
<rect class="node-shape kind-process emphasis-primary role-control" data-evidence="997-999" x="847.0" y="203.0" width="167.0" height="71.0" rx="7" />
<text class="node-label" x="930.5" y="230.0">StatefulSet 롤링 업데이트</text>
<line class="node-detail-divider" x1="861.0" y1="251.0" x2="1000.0" y2="251.0" />
<text class="node-detail" x="863.0" y="268.0">나머지 파드 유지</text>
</g>
<g id="node-service">
<rect class="node-shape kind-service emphasis-primary role-target" data-evidence="997-1003" x="1181.0" y="135.0" width="150.0" height="64.0" rx="7" />
<text class="node-label" x="1256.0" y="165.0">외부 서비스</text>
</g>
</svg>