Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep nodes within specific clusters

Tags:

graphviz

dot

I've been looking over the GraphViz docs and stackoverflow for the last hour, but can't find a solution to this problem. I have several clusters in my dot file, and I need certain nodes to stay within specific clusters. Some of the nodes have relationships with nodes in other clusters. It seems every time I save the file, a few of the nodes jump between different clusters. Is there a way to define a node as always being part of a specific cluster?

like image 414
hhh Avatar asked Apr 12 '13 16:04

hhh


People also ask

What is the difference between cluster and node?

Each cluster also has a master (control plane) that manages the nodes and pods (more on pods below) of the cluster. A node represents a single machine in a cluster, typically either a physical machine or virtual machine that's located either on-premises or hosted by a cloud service provider.

How cluster nodes are connected?

Nodes in a cluster are usually connected to each other through high-speed local area networks. Each node runs its own instance of an operating system. A computer cluster may range from a simple two-node system connecting two personal computers to a supercomputer with a cluster architecture.

How many nodes are part of the cluster?

Every cluster has one master node, which is a unified endpoint within the cluster, and at least two worker nodes. All of these nodes communicate with each other through a shared network to perform operations. In essence, you can consider them to be a single system.

What is 3 node cluster?

Basic 3-nodes Cluster Configuration This example describes a Cluster with three nodes where each node has a direct connection to a database. Figure 215. Configuration of 3-nodes Cluster, each node has access to a database. Configuration of Node 1 on 192.168.1.131.


1 Answers

I figured out how to avoid this issue.

I was defining both the nodes and the edges within the subgraphs, so I think it was getting confused when edges included nodes that should not be contained within the subgraph.

Instead, I just only define the nodes (all the nodes) within the subgraphs, and define the edges afterwards all together at the end of the file. Works like a champ :)

like image 186
hhh Avatar answered Oct 15 '22 08:10

hhh