Data model
Last updated
Last updated
Storage structure is as the following:
Service layer
Cluster layer
Info entries as KV
Value contains the location of the server
And it could also contains the grouping of server. For example, VIP clients should only be directed towards VIP servers.
How many nodes are online.
How many nodes are operating correctly.
What are the resource (CPU, memory, disk) usage states for these online nodes.
If resource usage exceed the threshold, receive an alert.
βββββββββββββββββββββββββββ
β β
β Monitoring Center β
β β
βββββββββββββββββββββββββββ
β²
β
Step3.
Watch mechanism for
directory file change
β
β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Zookeeper β
β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Root dir β β
β β ---server001: json blob for resource β β
β β ---server002: json blob for resource β β
β β ---server003: json blob for resource β β
β β ... β β
β β ---server00N: json blob for resource β β
β β β β
β ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β²
β
β
step2. β step1.
ββreport resource health via ββ¬ββββββββββ΄ββββββββββββββββββ¬ββββββββcreate an ephemeralβββ
β heartbeat msg β β node upon start β
β β β β
β β β β
β β β β
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ
β Server node 1 β β Server node 2 β β Server node ... β β Server node N β
β β β β β β β β
β β β β β β β β
β ββββββββββββββ β β ββββββββββββββ β β ββββββββββββββ β β ββββββββββββββ β
β β Agent β β β β Agent β β β β Agent β β β β Agent β β
β β β β β β β β β β β β β β β β
β ββββββββββββββ β β ββββββββββββββ β β ββββββββββββββ β β ββββββββββββββ β
β β β β β β β β
ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββββββ