Files
hse-2026/materials/11-consensus/seminar/media/etcd-partition.svg
T

33 lines
2.3 KiB
XML
Raw Normal View History

2026-11-28 00:56:20 +03:00
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="194" viewBox="0 0 1024 194" role="img" aria-labelledby="title desc">
<title id="title">Чтение с изолированной реплики etcd</title>
<desc id="desc">Два связанных узла подтвердили запись C. У отделённой ведомой осталось B. Клиент отправляет оба GET на локальный адрес именно этой ведомой.</desc>
<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" fill="#245795"/></marker>
</defs>
<style>
text { font-family: Arial, Helvetica, sans-serif; fill: #193456; text-anchor: middle; }
.title { font-size: 23px; font-weight: 700; }
.label { font-size: 20px; }
.code { font: 19px 'DejaVu Sans Mono', Menlo, monospace; }
.node { fill: #eaf2fc; stroke: #82a4ce; stroke-width: 1.5; }
.store { fill: #f6f9fd; stroke: #a4b9d2; stroke-width: 1.5; }
.edge { stroke: #245795; stroke-width: 2.5; fill: none; marker-end: url(#arrow); }
</style>
<rect width="1024" height="194" fill="#fff"/>
<rect class="store" x="14" y="9" width="584" height="173" rx="10"/>
<text class="title" x="306" y="44">Большинство подтвердило запись C</text>
<rect class="node" x="35" y="70" width="231" height="85" rx="9"/>
<text class="title" x="150" y="107">Лидер</text>
<text class="label" x="150" y="136">C в журнале</text>
<rect class="node" x="346" y="70" width="231" height="85" rx="9"/>
<text class="title" x="461" y="107">Ведомая реплика</text>
<text class="label" x="461" y="136">C в журнале</text>
<path d="M266 112 H346" fill="none" stroke="#245795" stroke-width="2.5"/>
<path d="M625 12 V181" fill="none" stroke="#385983" stroke-width="2.5" stroke-dasharray="7 6"/>
<rect class="store" x="652" y="9" width="358" height="173" rx="10"/>
<text class="title" x="831" y="44">Изолированная реплика</text>
<rect class="node" x="689" y="58" width="284" height="51" rx="7"/>
<text class="label" x="831" y="90">Хранит B</text>
<path class="edge" d="M831 138 V114"/>
<text class="label" x="831" y="165">Оба GET на localhost</text>
</svg>