refactor: 문서 개선 중
This commit is contained in:
+9
-9
@@ -10,15 +10,15 @@
|
||||
|
||||
## Elements and evidence
|
||||
|
||||
- **옛 버전 롤백** (process): 이미지 태그를 옛 버전으로 되돌린다. Evidence: L483–L490.
|
||||
- **Liquibase 검증** (process): 새 버전이 남긴 체크섬을 거부한다. Evidence: L483–L491.
|
||||
- **StatefulSet 롤링 업데이트** (process): 첫 파드가 실패하면 거기서 멈춘다. Evidence: L492–L497.
|
||||
- **외부 서비스** (service): 남은 파드가 계속 200 을 낸다. Evidence: L492–L498.
|
||||
- **databasechangelog 행 수** (datastore): 전후로 같으면 롤백된다. Evidence: L499–L505.
|
||||
- **옛 버전 롤백** (process): 이미지 태그를 옛 버전으로 되돌린다. Evidence: L988–L995.
|
||||
- **Liquibase 검증** (process): 새 버전이 남긴 체크섬을 거부한다. Evidence: L988–L996.
|
||||
- **StatefulSet 롤링 업데이트** (process): 첫 파드가 실패하면 거기서 멈춘다. Evidence: L997–L999.
|
||||
- **외부 서비스** (service): 남은 파드가 계속 200 을 낸다. Evidence: L997–L1003.
|
||||
- **databasechangelog 행 수** (datastore): 전후로 같으면 롤백된다. Evidence: L1006–L1008.
|
||||
|
||||
## Relationships
|
||||
|
||||
- **Liquibase 검증 → databasechangelog 행 수:** 판단 기준. Evidence: L499–L505.
|
||||
- **Liquibase 검증 → StatefulSet 롤링 업데이트:** 중단 지점. Evidence: L492–L497.
|
||||
- **옛 버전 롤백 → Liquibase 검증:** 기동 시 검증. Evidence: L483–L491.
|
||||
- **StatefulSet 롤링 업데이트 → 외부 서비스:** 잔여 파드 응답. Evidence: L492–L498.
|
||||
- **Liquibase 검증 → databasechangelog 행 수:** 판단 기준. Evidence: L1006–L1008.
|
||||
- **Liquibase 검증 → StatefulSet 롤링 업데이트:** 중단 지점. Evidence: L997–L999.
|
||||
- **옛 버전 롤백 → Liquibase 검증:** 기동 시 검증. Evidence: L988–L996.
|
||||
- **StatefulSet 롤링 업데이트 → 외부 서비스:** 잔여 파드 응답. Evidence: L997–L1003.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# 방향에 따라 갈리는 업그레이드
|
||||
# Question: 되돌릴 수 있는지는 무엇이 결정하는가
|
||||
direction: down
|
||||
direction: right
|
||||
n0: "옛 버전 롤백" {
|
||||
shape: rectangle
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
digraph techviz {
|
||||
graph [rankdir=TB, splines=ortho, nodesep=0.55, ranksep=0.85];
|
||||
graph [rankdir=LR, splines=ortho, nodesep=0.55, ranksep=0.85];
|
||||
node [fontname=Helvetica, fontsize=11, margin="0.18,0.12", style="rounded,filled", fillcolor=white, color="#2d4357", penwidth=1.5];
|
||||
edge [fontname=Helvetica, fontsize=10, color="#364b5f", penwidth=1.4, arrowsize=0.75];
|
||||
n0 [label="옛 버전 롤백", shape=box, style="rounded,filled"];
|
||||
|
||||
+15
-15
@@ -1,43 +1,43 @@
|
||||
<?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="d2-upgrade-direction" name="방향에 따라 갈리는 업그레이드">
|
||||
<mxGraphModel dx="680" dy="689" 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="1376" dy="319" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1376" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0"/>
|
||||
<mxCell id="1" parent="0"/>
|
||||
<mxCell id="n_rollback" value="옛 버전 롤백" tooltip="이미지 태그를 옛 버전으로 되돌린다. | Evidence: L483-L490" 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="199.0" y="60.0" width="150.0" height="64.0" as="geometry"/>
|
||||
<mxCell id="n_rollback" value="옛 버전 롤백" tooltip="이미지 태그를 옛 버전으로 되돌린다. | Evidence: L988-L995" 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="135.0" width="150.0" height="64.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_liquibase" value="Liquibase 검증<br/>ValidationFailedException: 1 changesets check sum" tooltip="새 버전이 남긴 체크섬을 거부한다. | Evidence: L483-L491" 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="124.0" y="220.0" width="300.0" height="71.0" as="geometry"/>
|
||||
<mxCell id="n_liquibase" value="Liquibase 검증<br/>ValidationFailedException: 1 changesets check sum" tooltip="새 버전이 남긴 체크섬을 거부한다. | Evidence: L988-L996" 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="380.0" y="131.5" width="300.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_changelog" value="databasechangelog 행 수<br/>전후 행 수 비교" tooltip="전후로 같으면 롤백된다. | Evidence: L499-L505" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;shape=cylinder3;boundedLbl=1;backgroundOutline=1;fillColor=#eef6fb;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
|
||||
<mxGeometry x="70.0" y="387.0" width="181.0" height="97.0" as="geometry"/>
|
||||
<mxCell id="n_changelog" value="databasechangelog 행 수<br/>전후 행 수 비교" tooltip="전후로 같으면 롤백된다. | Evidence: L1006-L1008" style="whiteSpace=wrap;html=1;rounded=1;strokeWidth=2;fontSize=14;fontStyle=1;fillColor=#ffffff;strokeColor=#2d4357;verticalAlign=middle;shape=cylinder3;boundedLbl=1;backgroundOutline=1;fillColor=#eef6fb;strokeColor=#2563eb;strokeWidth=2;" vertex="1" parent="1">
|
||||
<mxGeometry x="840.0" y="60.0" width="181.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_rolling" value="StatefulSet 롤링 업데이트<br/>나머지 파드 유지" tooltip="첫 파드가 실패하면 거기서 멈춘다. | Evidence: L492-L497" 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="311.0" y="400.0" width="167.0" height="71.0" as="geometry"/>
|
||||
<mxCell id="n_rolling" value="StatefulSet 롤링 업데이트<br/>나머지 파드 유지" tooltip="첫 파드가 실패하면 거기서 멈춘다. | Evidence: L997-L999" 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="847.0" y="203.0" width="167.0" height="71.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="n_service" value="외부 서비스" tooltip="남은 파드가 계속 200 을 낸다. | Evidence: L492-L498" 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="199.0" y="580.0" width="150.0" height="64.0" as="geometry"/>
|
||||
<mxCell id="n_service" value="외부 서비스" tooltip="남은 파드가 계속 200 을 낸다. | Evidence: L997-L1003" 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="1181.0" y="135.0" width="150.0" height="64.0" as="geometry"/>
|
||||
</mxCell>
|
||||
<mxCell id="e_l-cl" value="판단 기준" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_liquibase" target="n_changelog">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="212.8" y="311.0" as="offset"/>
|
||||
<mxPoint x="784.0" y="126.8" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_l-ro" value="중단 지점" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_liquibase" target="n_rolling">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="338.8" y="317.5" as="offset"/>
|
||||
<mxPoint x="787.5" y="207.2" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_r-l" value="기동 시 검증" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_rollback" target="n_liquibase">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="298.0" y="172.0" as="offset"/>
|
||||
<mxPoint x="300.0" y="139.0" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
<mxCell id="e_ro-s" value="잔여 파드 응답" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeWidth=2;endArrow=block;endFill=1;" edge="1" parent="1" source="n_rolling" target="n_service">
|
||||
<mxGeometry relative="1" as="geometry">
|
||||
<mxPoint x="334.2" y="497.5" as="offset"/>
|
||||
<mxPoint x="1121.5" y="202.8" as="offset"/>
|
||||
</mxGeometry>
|
||||
</mxCell>
|
||||
</root>
|
||||
|
||||
+80
-80
@@ -6,10 +6,10 @@
|
||||
{
|
||||
"id": "edge-l-cl",
|
||||
"type": "arrow",
|
||||
"x": 160.5,
|
||||
"y": 291.0,
|
||||
"width": 104.5,
|
||||
"height": 96.0,
|
||||
"x": 680.0,
|
||||
"y": 95.5,
|
||||
"width": 160.0,
|
||||
"height": 62.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -32,20 +32,20 @@
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
104.5,
|
||||
0.0,
|
||||
62.5
|
||||
],
|
||||
[
|
||||
80.0,
|
||||
62.5
|
||||
],
|
||||
[
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
104.5,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
160.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -66,8 +66,8 @@
|
||||
{
|
||||
"id": "edge-label-l-cl",
|
||||
"type": "text",
|
||||
"x": 167.75,
|
||||
"y": 299.0,
|
||||
"x": 739.0,
|
||||
"y": 114.75,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -105,10 +105,10 @@
|
||||
{
|
||||
"id": "edge-l-ro",
|
||||
"type": "arrow",
|
||||
"x": 283.0,
|
||||
"y": 291.0,
|
||||
"width": 111.5,
|
||||
"height": 109.0,
|
||||
"x": 680.0,
|
||||
"y": 176.0,
|
||||
"width": 167.0,
|
||||
"height": 62.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -135,16 +135,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
54.5
|
||||
83.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
111.5,
|
||||
54.5
|
||||
83.5,
|
||||
62.5
|
||||
],
|
||||
[
|
||||
111.5,
|
||||
109.0
|
||||
167.0,
|
||||
62.5
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -165,8 +165,8 @@
|
||||
{
|
||||
"id": "edge-label-l-ro",
|
||||
"type": "text",
|
||||
"x": 293.75,
|
||||
"y": 305.5,
|
||||
"x": 742.5,
|
||||
"y": 195.25,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -204,10 +204,10 @@
|
||||
{
|
||||
"id": "edge-r-l",
|
||||
"type": "arrow",
|
||||
"x": 274.0,
|
||||
"y": 124.0,
|
||||
"width": 0.0,
|
||||
"height": 96.0,
|
||||
"x": 220.0,
|
||||
"y": 167.0,
|
||||
"width": 160.0,
|
||||
"height": 0.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -234,16 +234,16 @@
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
48.0
|
||||
80.0,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
96.0
|
||||
160.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -264,8 +264,8 @@
|
||||
{
|
||||
"id": "edge-label-r-l",
|
||||
"type": "text",
|
||||
"x": 253.0,
|
||||
"y": 160.0,
|
||||
"x": 255.0,
|
||||
"y": 127.0,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -303,10 +303,10 @@
|
||||
{
|
||||
"id": "edge-ro-s",
|
||||
"type": "arrow",
|
||||
"x": 274.0,
|
||||
"y": 471.0,
|
||||
"width": 120.5,
|
||||
"height": 109.0,
|
||||
"x": 1014.0,
|
||||
"y": 167.0,
|
||||
"width": 167.0,
|
||||
"height": 71.5,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -329,20 +329,20 @@
|
||||
"locked": false,
|
||||
"points": [
|
||||
[
|
||||
120.5,
|
||||
0.0,
|
||||
71.5
|
||||
],
|
||||
[
|
||||
83.5,
|
||||
71.5
|
||||
],
|
||||
[
|
||||
83.5,
|
||||
0.0
|
||||
],
|
||||
[
|
||||
120.5,
|
||||
54.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
54.5
|
||||
],
|
||||
[
|
||||
0.0,
|
||||
109.0
|
||||
167.0,
|
||||
0.0
|
||||
]
|
||||
],
|
||||
"lastCommittedPoint": null,
|
||||
@@ -363,8 +363,8 @@
|
||||
{
|
||||
"id": "edge-label-ro-s",
|
||||
"type": "text",
|
||||
"x": 289.25,
|
||||
"y": 485.5,
|
||||
"x": 1076.5,
|
||||
"y": 190.75,
|
||||
"width": 90,
|
||||
"height": 24,
|
||||
"angle": 0,
|
||||
@@ -402,8 +402,8 @@
|
||||
{
|
||||
"id": "node-rollback",
|
||||
"type": "rectangle",
|
||||
"x": 199.0,
|
||||
"y": 60.0,
|
||||
"x": 70.0,
|
||||
"y": 135.0,
|
||||
"width": 150.0,
|
||||
"height": 64.0,
|
||||
"angle": 0,
|
||||
@@ -432,8 +432,8 @@
|
||||
{
|
||||
"id": "node-label-rollback",
|
||||
"type": "text",
|
||||
"x": 209.0,
|
||||
"y": 70.0,
|
||||
"x": 80.0,
|
||||
"y": 145.0,
|
||||
"width": 130.0,
|
||||
"height": 44.0,
|
||||
"angle": 0,
|
||||
@@ -471,8 +471,8 @@
|
||||
{
|
||||
"id": "node-liquibase",
|
||||
"type": "rectangle",
|
||||
"x": 124.0,
|
||||
"y": 220.0,
|
||||
"x": 380.0,
|
||||
"y": 131.5,
|
||||
"width": 300.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
@@ -501,8 +501,8 @@
|
||||
{
|
||||
"id": "node-label-liquibase",
|
||||
"type": "text",
|
||||
"x": 134.0,
|
||||
"y": 230.0,
|
||||
"x": 390.0,
|
||||
"y": 141.5,
|
||||
"width": 280.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
@@ -540,10 +540,10 @@
|
||||
{
|
||||
"id": "node-changelog",
|
||||
"type": "rectangle",
|
||||
"x": 70.0,
|
||||
"y": 387.0,
|
||||
"x": 840.0,
|
||||
"y": 60.0,
|
||||
"width": 181.0,
|
||||
"height": 97.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "#e7f5ff",
|
||||
@@ -570,10 +570,10 @@
|
||||
{
|
||||
"id": "node-label-changelog",
|
||||
"type": "text",
|
||||
"x": 80.0,
|
||||
"y": 397.0,
|
||||
"x": 850.0,
|
||||
"y": 70.0,
|
||||
"width": 161.0,
|
||||
"height": 77.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
"strokeColor": "#1e1e1e",
|
||||
"backgroundColor": "transparent",
|
||||
@@ -609,8 +609,8 @@
|
||||
{
|
||||
"id": "node-rolling",
|
||||
"type": "rectangle",
|
||||
"x": 311.0,
|
||||
"y": 400.0,
|
||||
"x": 847.0,
|
||||
"y": 203.0,
|
||||
"width": 167.0,
|
||||
"height": 71.0,
|
||||
"angle": 0,
|
||||
@@ -639,8 +639,8 @@
|
||||
{
|
||||
"id": "node-label-rolling",
|
||||
"type": "text",
|
||||
"x": 321.0,
|
||||
"y": 410.0,
|
||||
"x": 857.0,
|
||||
"y": 213.0,
|
||||
"width": 147.0,
|
||||
"height": 51.0,
|
||||
"angle": 0,
|
||||
@@ -678,8 +678,8 @@
|
||||
{
|
||||
"id": "node-service",
|
||||
"type": "rectangle",
|
||||
"x": 199.0,
|
||||
"y": 580.0,
|
||||
"x": 1181.0,
|
||||
"y": 135.0,
|
||||
"width": 150.0,
|
||||
"height": 64.0,
|
||||
"angle": 0,
|
||||
@@ -708,8 +708,8 @@
|
||||
{
|
||||
"id": "node-label-service",
|
||||
"type": "text",
|
||||
"x": 209.0,
|
||||
"y": 590.0,
|
||||
"x": 1191.0,
|
||||
"y": 145.0,
|
||||
"width": 130.0,
|
||||
"height": 44.0,
|
||||
"angle": 0,
|
||||
|
||||
+5
-5
@@ -2,26 +2,26 @@
|
||||
"harness_version": "0.2.0",
|
||||
"spec_id": "d2-upgrade-direction",
|
||||
"spec_version": "1.1",
|
||||
"spec_sha256": "1900af5e51837783471656df7ad19888dbca5f323396175b7d4f1a23d8a6f444",
|
||||
"spec_sha256": "0cebfcc3d0db59dfb864ed62ee9b08be860e5f4b845990180ea998d918538259",
|
||||
"source_context": {
|
||||
"document": "docs/keycloak-session-store/final/document.md",
|
||||
"document_sha256": "1d44cba1905544d92f1d26ae36a8deb64a3db3914d6b488fd30d6ae7f8cfbabe",
|
||||
"document_sha256": "28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560",
|
||||
"anchor": {
|
||||
"kind": "heading",
|
||||
"value": "D-1 · D-2 — 백업과 업그레이드",
|
||||
"line": 481
|
||||
"line": 986
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
"d2-upgrade-direction.svg",
|
||||
"d2-upgrade-direction.drawio",
|
||||
"d2-upgrade-direction.mmd",
|
||||
"d2-upgrade-direction.d2",
|
||||
"d2-upgrade-direction.dot",
|
||||
"d2-upgrade-direction.drawio",
|
||||
"d2-upgrade-direction.excalidraw",
|
||||
"d2-upgrade-direction.alt.md"
|
||||
],
|
||||
"lint_issue_count": 0,
|
||||
"lint_issue_count": 1,
|
||||
"assumption_count": 0,
|
||||
"assumptions_allowed": false,
|
||||
"composition_profile": "component-flow",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
%% 방향에 따라 갈리는 업그레이드
|
||||
%% question: 되돌릴 수 있는지는 무엇이 결정하는가
|
||||
flowchart TB
|
||||
flowchart LR
|
||||
n0["옛 버전 롤백"]
|
||||
n1["Liquibase 검증"]
|
||||
n2["StatefulSet 롤링 업데이트"]
|
||||
|
||||
+31
-31
@@ -1,8 +1,8 @@
|
||||
<?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">
|
||||
<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>{"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>
|
||||
<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":"28aef96a2bbb94fbb10ade26a71238fee62a5a4d9fa6e7749ae98cfd0a65e560","anchor":{"kind":"heading","value":"D-1 · D-2 — 백업과 업그레이드","line":986}},"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" />
|
||||
@@ -49,43 +49,43 @@
|
||||
.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>
|
||||
<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="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>
|
||||
<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="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>
|
||||
<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="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>
|
||||
<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="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>
|
||||
<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="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>
|
||||
<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>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
Reference in New Issue
Block a user