Okay… So I keep finding myself googling for these GraphViz templates. Here’s the ones im using for my OpenStack Savanna preso this tuesday.
This should be interesting to anyone who is either (1) interested in giving an openstack savanna talk or (2) stealing my slides and modifying them or (3) needs to spice up their graphviz chops.
UML style diagrams
node_group_template_master -> cluster_template [arrowhead = diamond];
node_group_template_slave -> cluster_template [arrowhead = diamond]; cluster_template -> cluster |
Subgraphs
Here’s how to make subgraphs in. I’ve used this to show the three stages of oozie. In this case, a super distilled subgraph : Russian dolls of the oozie layers.
digraph G { subgraph cluster_a { Bundle; subgraph cluster_0 { coordinator; subgraph cluster_1 { workflow;}}}} |
Node Shapes
Node shapes are important when you want to show multiple attribtues of a node (i.e. describe internal data structure).
So, in the above graph, we have NODE definitions (i.e. CUSTOMER_PAGE) which use a | separator to create two parts of a box. Then we reference those node defs later on. You can also use the “node” field for a general default node type (see node [shape=record] above, which makes all shapes into records).
ER type cardinality diagrams
And finally, you can use different “arrowhead” implementations “crow”, “diamond”, and “empty”.
digraph cont { cluster_group -> node_group [arrowhead = crow]; }
|
2020 has not been a year we would have been able to predict. With a worldwide pandemic and lives thrown out of gear, as we head into 2021, we are thankful that our community and project continued to receive new developers, users and make small gains. For that and a...
It has been a while since we provided an update to the Gluster community. Across the world various nations, states and localities have put together sets of guidelines around shelter-in-place and quarantine. We request our community members to stay safe, to care for their loved ones, to continue to be...
The initial rounds of conversation around the planning of content for release 8 has helped the project identify one key thing – the need to stagger out features and enhancements over multiple releases. Thus, while release 8 is unlikely to be feature heavy as previous releases, it will be the...