2
the building blocks of the proxy
4
You may use "dot" from graphviz to generate human consumable output
7
$ dot -T pdf -o architecture.pdf architecture.dot
8
$ dot -T png -o architecture.png architecture.dot
10
or you generate a image-map
12
$ dot -T cmapx -o architecture.map -Tpng -o architecture.png architecture.dot && \
13
echo '<img src="architecture.png" border="0" usemap="#g"/>' > architecture.html && \
14
cat architecture.map >> architecture.html
28
<table border="1" cellborder="1">
30
<td bgcolor="grey" port="head">
31
<font color="white">Client</font>
34
<tr border="0"><td border="0"><table border="0">
36
<td border="1" port="app">app</td>
45
<table border="1" cellborder="1">
47
<td bgcolor="grey" port="head">
48
<font color="white">Client</font>
51
<tr border="0"><td border="0"><table border="0">
53
<td border="1" port="app">app</td>
64
<table border="1" cellborder="1">
66
<td bgcolor="grey" port="head">
67
<font color="white">MySQL Server</font>
70
<tr border="0"><td border="0"><table border="0">
72
<td border="1" port="port">10.0.0.1:3306</td>
82
<table border="1" cellborder="1">
84
<td bgcolor="grey" port="head">
85
<font color="white">MySQL Server</font>
88
<tr border="0"><td border="0"><table border="0">
90
<td border="1" port="port">10.0.0.2:3306</td>
102
<table border="1" cellborder="1">
104
<td bgcolor="black" port="head">
105
<font color="white">MySQL Proxy</font>
108
<tr border="0"><td border="0"><table border="0">
110
<td border="1" port="script">script</td>
113
<td border="1" port="plugin">plugin</td>
116
<td border="1" port="proxy">network core</td>
124
Clients1:app:e -> Blocks:w;
125
Clients2:app:e -> Blocks:w;
126
Blocks:e -> Backend1:port:w;
127
Blocks:e -> Backend2:port:w;