Skip to content

Instantly share code, notes, and snippets.

@cofyc
Created January 23, 2015 14:46
Show Gist options
  • Save cofyc/266d0d4dd8f54ead9ee9 to your computer and use it in GitHub Desktop.
Save cofyc/266d0d4dd8f54ead9ee9 to your computer and use it in GitHub Desktop.
/**
* dnspod-sr architecture
* Date: Fri Jan 23 22:44:47 2015 +0800
* Author: Yecheng Fu <cofyc.jackson@gmail.com>
*/
digraph G {
// graph
labelloc="t"
splines=true
label="dnspod-sr architecture"
dpi = 100
rankdir = LR
node [
shape=record
]
// nodes
clients -> sentinel [label="query (udp/tcp)"]
subgraph cluster_0 {
label = "dnspod-sr"
color = blue
sentinel -> fetchers [label="fetcher queue", style=dotted]
fetchers [
shape = record
label = "{fetchers | {fetcher 0 | fetcher 1 | ... }}"
]
fetchers -> quizzers [label="query queue", style=dotted]
fetchers -> memory [label="fetch"]
quizzers -> memory [label="store"]
memory [
label = "{datasets|ttl list} | memory"
color = green
]
{ rank=same; fetchers; memory; }
}
clients [
]
fetchers -> clients [
label="response (udp/tcp) if hits in memory"
constraint=false
]
quizzers [
label = "{quizzers | {quizzer 0 | quizzer 1 | ... }}"
]
quizzers -> clients [
label="response (udp/tcp)"
constraint=false
]
quizzers -> roots [
dir=both
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment