d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Feature Request: Diagram Direction Control eg. Circular for Peer-to-Peer token ring and consensus technologies like Cassandra, Elasticsearch, Etc and ZooKeeper

Open HariSekhon opened this issue 1 year ago • 1 comments

Several technologies such as Cassandra, Elasticsearch, Etcd and ZooKeeper operate either token ring data splits or all-way consensus protocols and should be drawn as circular peer-to-peer ring technologies.

Right now I can't do this due to the lack of placement control (issue ##1285) and in this case diagram direction.

For example the following 3 diagrams in my Diagrams-as-Code repo should actually be rings for each of the main technologies:

The ZooKeeper one should actually be 5 nodes for High Availability during maintenance but I cannot draw it even close to circular if I add the other two nodes:

HariSekhon avatar Aug 25 '24 12:08 HariSekhon

related: https://github.com/terrastruct/d2/issues/1578

alixander avatar Aug 25 '24 16:08 alixander