-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clusters on top of/layered across /extended other clusters? #111
Comments
Hello, I juste discovered your tool this morning, and I agree this is a great tool that deserve to be known! I've been looking for something like that for years. I agree with this request. Another basic use case is cloud organization through multiple AZs. A DB cluster is a cluster, but each node are in a different AZ, each AZ being clusters too... |
Interesting. I'll have to review if this is possible and get back to here. Thank you. |
Amazing tool, it could easily become my daily go-to, if this feature can be implemented! |
@kbrady-vibrato @acere @Karreg from diagrams import Diagram, Cluster, Edge, Node
graph_attr = {
"layout":"neato",
}
scaling_clus_attr = {
"bgcolor":"transparent",
"pencolor":"blue",
"penwidth":"4.0"
}
with Diagram("\n\nOverlapping Clusters", show=False, graph_attr=graph_attr) as diag:
with Cluster("SubnetA"):
A_UpLf = Node("", shape="plaintext", pin="true", pos="0,4")
A_LwRt = Node("", shape="plaintext", pin="true", pos="4,0")
with Cluster("SubnetB"):
B_UpLf = Node("", shape="plaintext", pin="true", pos="6,4")
B_LwRt = Node("", shape="plaintext", pin="true", pos="10,0")
with Cluster("Scaling Set", graph_attr=scaling_clus_attr):
SS_UpLf = Node("", shape="plaintext", pin="true", pos="2,3")
SS_LwRt = Node("", shape="plaintext", pin="true", pos="8,1")
n1 = Node("node 1", shape="circle", labelloc="c", pin="true", pos="3,2")
n1 = Node("node 2", shape="box", labelloc="c", pin="true", pos="7,2")
diag |
hi @clayms - yes this is pretty much what i envisioned |
Thanks @clayms, this is the correct visual representation! It would be great to be able to achieve the same without having to manually pin down the cluster and the nodes, but I understand that computing the correct item position becomes quickly hard to manage. |
Yes, it's exactly the need. Without position computing it would be great (since any other component can move on it's own). |
Hi,
First off - thanks for an awesome diagramming tool - its been a really good experience the last couple of days getting stuff down in my head in to code.
That said, I have hit a bit of a quandary trying to represent a scaling set across 2 Azure subnets - this would be 3 clusters ideally:
I would like the
Scaling Set
cluster to be extended across bothSubnetA
andSubnetB
- is this possible?Thanks for all your hard work!
The text was updated successfully, but these errors were encountered: