Last active
March 9, 2017 03:22
-
-
Save tleyden/78561f33fe6aa788ec885d49fb5878c8 to your computer and use it in GitHub Desktop.
Sequence diagram of cbboostrap (https://github.com/couchbase/cbbootstrap) via https://bramp.github.io/js-sequence-diagrams/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"><svg xmlns="http://www.w3.org/2000/svg" width="1485" height="422" xmlns:xlink="http://www.w3.org/1999/xlink"><source><![CDATA[Couchbase Node 1->CBBootstrap: CreateOrJoin (cluster-id=1, ip-addr=node1) | |
Couchbase Node 2->CBBootstrap: CreateOrJoin (cluster-id=1, ip-addr=node2) | |
CBBootstrap -> Couchbase Node 1: (initial-node=true) | |
CBBootstrap -> Couchbase Node 2: (initial-node=false, initial-ip=node1) | |
Note left of Couchbase Node 1: Node 1 wins race,\nbecomes initial node | |
Note right of Couchbase Node 2: Node 2 loses race,\njoins cluster via Node 1 | |
]]></source><desc></desc><defs><marker viewBox="0 0 5 5" markerWidth="5" markerHeight="5" orient="auto" refX="5" refY="2.5" id="markerArrowBlock"><path d="M 0 0 L 5 2.5 L 0 5 z"></path></marker><marker viewBox="0 0 9.6 16" markerWidth="4" markerHeight="16" orient="auto" refX="9.6" refY="8" id="markerArrowOpen"><path d="M 9.6,8 1.92,16 0,13.7 5.76,8 0,2.286 1.92,0 9.6,8 z"></path></marker></defs><g class="title"></g><g class="actor"><rect x="155.21875" y="20" width="173.625" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="165.21875" y="44.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="165.21875">Couchbase Node 1</tspan></text></g><g class="actor"><rect x="155.21875" y="364.375" width="173.625" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="165.21875" y="388.875" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="165.21875">Couchbase Node 1</tspan></text></g><line x1="242.03125" x2="242.03125" y1="58" y2="364.375" stroke="#000000" fill="none" style="stroke-width: 2;"></line><g class="actor"><rect x="602.4921875" y="20" width="125.609375" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="612.4921875" y="44.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="612.4921875">CBBootstrap</tspan></text></g><g class="actor"><rect x="602.4921875" y="364.375" width="125.609375" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="612.4921875" y="388.875" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="612.4921875">CBBootstrap</tspan></text></g><line x1="665.296875" x2="665.296875" y1="58" y2="364.375" stroke="#000000" fill="none" style="stroke-width: 2;"></line><g class="actor"><rect x="1001.75" y="20" width="173.625" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="1011.75" y="44.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="1011.75">Couchbase Node 2</tspan></text></g><g class="actor"><rect x="1001.75" y="364.375" width="173.625" height="38" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="1011.75" y="388.875" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="1011.75">Couchbase Node 2</tspan></text></g><line x1="1088.5625" x2="1088.5625" y1="58" y2="364.375" stroke="#000000" fill="none" style="stroke-width: 2;"></line><g class="signal"><text x="252.03125" y="88.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="252.03125">CreateOrJoin (cluster-id=1, ip-addr=node1)</tspan></text><line x1="242.03125" x2="665.296875" y1="96" y2="96" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url("#markerArrowBlock");"></line></g><g class="signal"><text x="675.296875" y="126.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="675.296875">CreateOrJoin (cluster-id=1, ip-addr=node2)</tspan></text><line x1="1088.5625" x2="665.296875" y1="134" y2="134" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url("#markerArrowBlock");"></line></g><g class="signal"><text x="362.453125" y="164.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="362.453125">(initial-node=true)</tspan></text><line x1="665.296875" x2="242.03125" y1="172" y2="172" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url("#markerArrowBlock");"></line></g><g class="signal"><text x="694.5" y="202.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="694.5">(initial-node=false, initial-ip=node1)</tspan></text><line x1="665.296875" x2="1088.5625" y1="210" y2="210" stroke="#000000" fill="none" style="stroke-width: 2; marker-end: url("#markerArrowBlock");"></line></g><g class="note"><rect x="20" y="230" width="202.03125" height="47.1875" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="25" y="249.5" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="25">Node 1 wins race,</tspan><tspan dy="1.2em" x="25">becomes initial node</tspan></text></g><g class="note"><rect x="1108.5625" y="297.1875" width="240.4375" height="47.1875" stroke="#000000" fill="#ffffff" style="stroke-width: 2;"></rect><text x="1113.5625" y="316.6875" style="font-size: 16px; font-family: "Andale Mono", monospace;"><tspan x="1113.5625">Node 2 loses race,</tspan><tspan dy="1.2em" x="1113.5625">joins cluster via Node 1</tspan></text></g></svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment