initial diagrams to discuss 12383-compute-nodes-state-diagram
authorNico Cesar <nico@curoverse.com>
Mon, 2 Oct 2017 17:40:02 +0000 (13:40 -0400)
committerNico Cesar <nico@curoverse.com>
Mon, 2 Oct 2017 17:40:02 +0000 (13:40 -0400)
refs #12383

doc/images/compute-nodes-state-diagram-current.dot [new file with mode: 0644]
doc/images/compute-nodes-state-diagram-proposed.dot [new file with mode: 0644]

diff --git a/doc/images/compute-nodes-state-diagram-current.dot b/doc/images/compute-nodes-state-diagram-current.dot
new file mode 100644 (file)
index 0000000..e1238f8
--- /dev/null
@@ -0,0 +1,27 @@
+digraph graphname {
+
+### To create the image:
+### dot -Tpng compute-nodes-state-diagram-current.dot > compute-nodes-state-diagram-current.png
+
+### States
+
+in_whishlist [label="in whishlist"];
+unpaired;
+paired;
+stale;
+shutting_down [label="shutting down"];
+draining;
+gone;
+
+### Transitions
+
+in_whishlist -> unpaired    [ label = "create()" ];
+unpaired -> stale           [ label = "timeout(20m)" ]; 
+unpaired -> paired          [ label = "ping()" ];
+stale -> shutting_down      [ label = "shutdown()" ]; 
+paired -> draining          [ label = "finish_job()" ]; 
+stale -> gone               [ label = "detected_gone()" ];
+paired -> gone              [ label = "detected_down()" ];
+shutting_down -> gone       [ label = "detected_gone()" ]; 
+
+}
diff --git a/doc/images/compute-nodes-state-diagram-proposed.dot b/doc/images/compute-nodes-state-diagram-proposed.dot
new file mode 100644 (file)
index 0000000..acf6097
--- /dev/null
@@ -0,0 +1,25 @@
+digraph graphname {
+
+### To create the image:
+### dot -Tpng compute-nodes-state-diagram-proposed.dot > compute-nodes-state-diagram-proposed.png
+
+### States
+
+in_whishlist [label="in whishlist"];
+requested;
+assigned;
+paired;
+shutting_down [label="shutting down"];
+draining;
+gone;
+
+### Transitions
+
+in_whishlist -> requested    [ label = "request(size)" ];
+requested -> paired          [ label = "ping()" ]; 
+paired -> assigned           [ label = "assign_job(job_id)" ];
+assigned -> draining         [ label = "drain()" ]; 
+draining -> shutting_down    [ label = "shutdown()" ]; 
+shutting_down -> gone        [ label = "detected_gone()" ];
+
+}