digraph G {
edge [fontname="FangSong"];
node [fontname="FangSong" rankdir="TD"];
subgraph cluster_application {
fontname="FangSong";
node [shape=record rankdir="TD"];
label="应用和展现层"
application [label="{
{ {<app> app| <api> api} | {<ui> 前端ui| <server> 服务端server} |<static> 静态文件服务}
}"];
}
nginx_proxy [label="nginx代理集群", shape="record"];
subgraph cluster_chlid_system {
fontname="FangSong";
label="子系统层";
node [shape="record"];
chlid_systems [label="
<child_system1> 子系统1|<child_system2> 子系统2 |<child_system3> 子系统3|<child_system_n> 子系统n
|<child_system_img> 图片子系统 |<child_system3_file> 文件子系统
"];
}
application:api->nginx_proxy;
application:server->nginx_proxy;
nginx_proxy->chlid_systems:child_system1;
nginx_proxy->chlid_systems:child_system2;
nginx_proxy->chlid_systems:child_system3;
nginx_proxy->chlid_systems:child_system_n;
subgraph cluster_base_service {
fontname="FangSong";
label="基础服务层";
node [shape="record" nodesep="1.5"];
subgraph cluster_database {
label="数据库";
database [label="{<dbproxy> dbproxy集群
| {<child_system1_db> 子系统1\n数据库|<child_system2_db> 子系统2\n数据库 |<child_system3_db> 子系统3\n数据库|<child_system..._db> 子系统...\n数据库}
}"]
}
subgraph cluster_files {
label="文件存储系统";
file_system [label="<img> 图片存储|<files> 小文件存储"];
}
}
chlid_systems->database:dbproxy;
chlid_systems->file_system:img;
chlid_systems->file_system:files;
}
转载于:https://my.oschina.net/xming4321/blog/547337