terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.51k stars 414 forks source link

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

Open HariSekhon opened 2 weeks ago

HariSekhon commented 2 weeks ago

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:

alixander commented 2 weeks ago

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