-
Notifications
You must be signed in to change notification settings - Fork 38
/
zookeeper.d2
executable file
·83 lines (70 loc) · 2.16 KB
/
zookeeper.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env d2 --theme 200
#
# vim:ts=2:sts=2:sw=2:et:filetype=d2
#
# Author: Hari Sekhon
# Date: 2024-08-25 03:45:23 +0200 (Sun, 25 Aug 2024)
#
# https///github.com/HariSekhon/Diagrams-as-Code
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# Z o o K e e p e r
# ============================================================================ #
direction: right
title: {
label: Zookeeper Consensus
near: top-center
shape: text
style.font-size: 40
style.underline: true
}
classes: {
apps: {
label: Apps
icon: https://icons.terrastruct.com/azure%2FIntune%20Service%20Color%2FClient%20Apps.svg
shape: image
}
zookeeper: {
# overrides the names on each individual node
# label: Zookeeper
icon: https://diagrams.mingrammer.com/img/resources/onprem/network/zookeeper.png
shape: image
}
}
# ============================================================================ #
# N o d e s
# ============================================================================ #
apps.class: apps
zookeeper1: Zookeeper Node 1 {
class: zookeeper
}
zookeeper2: Zookeeper Node 2 {
class: zookeeper
}
zookeeper3: Zookeeper Node 3 {
class: zookeeper
}
# zookeeper4: Zookeeper Node 4 {
# class: zookeeper
# }
#
# zookeeper5: Zookeeper Node 5 {
# class: zookeeper
# }
# ============================================================================ #
# F l o w
# ============================================================================ #
apps -> zookeeper1
zookeeper1 <-> zookeeper2: consensus protocol
zookeeper1 <-> zookeeper3: consesnsu protocol
# zookeeper1 <-> zookeeper4: consesnsu protocol
# zookeeper1 <-> zookeeper5: consesnsu protocol
zookeeper2 <-> zookeeper3: consensus protocol
# zookeeper2 <-> zookeeper4: consensus protocol
# zookeeper2 <-> zookeeper5: consensus protocol