92 lines
7.6 KiB
XML
92 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="689" viewBox="0 0 680 689" 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>{"techviz":{"spec_version":"1.1","id":"d2-upgrade-direction","profile":"component-flow"},"source_context":{"document":"docs/keycloak-session-store/final/document.md","document_sha256":"1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe","anchor":{"kind":"heading","value":"D-1 · D-2 — 백업과 업그레이드","line":481}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":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="680" height="689" />
|
|
<polyline class="edge kind-read style-solid emphasis-normal" points="265.0,291.0 265.0,339.0 160.5,339.0 160.5,387.0" data-evidence="499-505" />
|
|
<rect class="edge-label-bg" x="187.0" y="297.0" width="51.5" height="22" rx="3" />
|
|
<text class="edge-label" x="212.8" y="312.0">판단 기준</text>
|
|
<polyline class="edge kind-blocked style-solid emphasis-normal" points="283.0,291.0 283.0,345.5 394.5,345.5 394.5,400.0" data-evidence="492-497" />
|
|
<rect class="edge-label-bg" x="313.0" y="303.5" width="51.5" height="22" rx="3" />
|
|
<text class="edge-label" x="338.8" y="318.5">중단 지점</text>
|
|
<polyline class="edge kind-request style-solid emphasis-normal" points="274.0,124.0 274.0,172.0 274.0,172.0 274.0,220.0" data-evidence="483-491" />
|
|
<rect class="edge-label-bg" x="265.6" y="158.0" width="64.9" height="22" rx="3" />
|
|
<text class="edge-label" x="298.0" y="173.0">기동 시 검증</text>
|
|
<polyline class="edge kind-request style-solid emphasis-normal" points="394.5,471.0 394.5,525.5 274.0,525.5 274.0,580.0" data-evidence="492-498" />
|
|
<rect class="edge-label-bg" x="298.4" y="483.5" width="71.6" height="22" rx="3" />
|
|
<text class="edge-label" x="334.2" y="498.5">잔여 파드 응답</text>
|
|
<g id="node-rollback">
|
|
<rect class="node-shape kind-process emphasis-warning role-source" data-evidence="483-490" x="199.0" y="60.0" width="150.0" height="64.0" rx="7" />
|
|
<text class="node-label" x="274.0" y="90.0">옛 버전 롤백</text>
|
|
</g>
|
|
<g id="node-liquibase">
|
|
<rect class="node-shape kind-process emphasis-warning role-control" data-evidence="483-491" x="124.0" y="220.0" width="300.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="274.0" y="247.0">Liquibase 검증</text>
|
|
<line class="node-detail-divider" x1="138.0" y1="268.0" x2="410.0" y2="268.0" />
|
|
<text class="node-detail" x="140.0" y="285.0">ValidationFailedException: 1 changesets check sum</text>
|
|
</g>
|
|
<g id="node-changelog">
|
|
<rect class="node-shape kind-datastore emphasis-primary role-support" data-evidence="499-505" x="70.0" y="400.0" width="181.0" height="71.0" /><ellipse class="node-shape kind-datastore emphasis-primary role-support" cx="160.5" cy="400.0" rx="90.5" ry="13.0" /><path class="storage-bottom" d="M 70.0 471.0 A 90.5 13.0 0 0 0 251.0 471.0" />
|
|
<text class="node-label" x="160.5" y="427.0">databasechangelog 행 수</text>
|
|
<line class="node-detail-divider" x1="84.0" y1="448.0" x2="237.0" y2="448.0" />
|
|
<text class="node-detail" x="86.0" y="465.0">전후 행 수 비교</text>
|
|
</g>
|
|
<g id="node-rolling">
|
|
<rect class="node-shape kind-process emphasis-primary role-control" data-evidence="492-497" x="311.0" y="400.0" width="167.0" height="71.0" rx="7" />
|
|
<text class="node-label" x="394.5" y="427.0">StatefulSet 롤링 업데이트</text>
|
|
<line class="node-detail-divider" x1="325.0" y1="448.0" x2="464.0" y2="448.0" />
|
|
<text class="node-detail" x="327.0" y="465.0">나머지 파드 유지</text>
|
|
</g>
|
|
<g id="node-service">
|
|
<rect class="node-shape kind-service emphasis-primary role-target" data-evidence="492-498" x="199.0" y="580.0" width="150.0" height="64.0" rx="7" />
|
|
<text class="node-label" x="274.0" y="610.0">외부 서비스</text>
|
|
</g>
|
|
</svg>
|