Add week 11 materials
This commit is contained in:
1 parent
a499e38e6e
commit
bc3e17008b
26 files changed
+1706
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="218" viewBox="0 0 1024 218" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Регистрация исполнителя в ZooKeeper</title>
|
||||
<desc id="desc">Исполнитель из первой сессии создаёт временный узел /member-a со значением online. Планировщик из второй сессии наблюдает за списком детей корня /. Показан фрагмент дерева перед закрытием первой сессии.</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="218" fill="#fff"/>
|
||||
<rect class="store" x="365" y="10" width="294" height="197" rx="10"/>
|
||||
<text class="title" x="512" y="42">Дерево ZooKeeper</text>
|
||||
<rect fill="#fff" stroke="#a4b9d2" x="470" y="57" width="84" height="42" rx="6"/>
|
||||
<text class="code" x="512" y="84">/</text>
|
||||
<path d="M512 99 V136" fill="none" stroke="#245795" stroke-width="2.5"/>
|
||||
<rect class="node" x="389" y="136" width="246" height="51" rx="6"/>
|
||||
<text class="code" x="512" y="168">member-a = online</text>
|
||||
<rect class="node" x="14" y="122" width="223" height="78" rx="9"/>
|
||||
<text class="title" x="125" y="154">Исполнитель</text>
|
||||
<text class="label" x="125" y="182">сессия 1</text>
|
||||
<path class="edge" d="M237 162 H384"/>
|
||||
<text class="code" x="307" y="149">create -e</text>
|
||||
<rect class="node" x="787" y="38" width="223" height="78" rx="9"/>
|
||||
<text class="title" x="898" y="71">Планировщик</text>
|
||||
<text class="label" x="898" y="99">сессия 2</text>
|
||||
<path class="edge" d="M787 78 H559"/>
|
||||
<rect x="669" y="44" width="99" height="27" fill="#fff"/>
|
||||
<text class="code" x="719" y="65">ls -w /</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
Reference in new issue
Block a user