Files
hse-2026/materials/11-consensus/seminar/media/scheduler-address.svg
T
2026-11-28 00:56:20 +03:00

33 lines
2.1 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="192" viewBox="0 0 1024 192" role="img" aria-labelledby="title desc">
<title id="title">Как сервис заказов находит активный планировщик</title>
<desc id="desc">Активный экземпляр планировщика публикует свой IP-адрес B в etcd. Сервис заказов читает этот IP-адрес и отправляет запрос на доставку напрямую планировщику.</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="192" fill="#fff"/>
<rect class="node" x="14" y="29" width="233" height="76" rx="9"/>
<text class="title" x="130" y="75">Сервис заказов</text>
<rect class="store" x="357" y="29" width="310" height="76" rx="9"/>
<text class="title" x="512" y="59">etcd</text>
<text class="code" x="512" y="88">/scheduler/leader = B</text>
<rect class="node" x="777" y="29" width="233" height="76" rx="9"/>
<text class="title" x="894" y="62">Планировщик</text>
<text class="label" x="894" y="89">IP-адрес B</text>
<path class="edge" d="M247 70 H351"/>
<text class="code" x="301" y="59">GET</text>
<path class="edge" d="M777 70 H673"/>
<text class="code" x="723" y="59">PUT</text>
<path class="edge" d="M130 105 V151 H894 V111"/>
<rect x="405" y="133" width="214" height="32" fill="#fff"/>
<text class="label" x="512" y="157">Запрос на доставку</text>
</svg>