From 0fc5a5280d7c3634683bab5557fa1066c4bc62cc Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 30 Jul 2019 14:39:10 +0200 Subject: [PATCH] introduce all major states --- ucloud-vm-states-brainstorm | 6 ------ ucloud-vm-states.dot | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) delete mode 100644 ucloud-vm-states-brainstorm create mode 100644 ucloud-vm-states.dot diff --git a/ucloud-vm-states-brainstorm b/ucloud-vm-states-brainstorm deleted file mode 100644 index bb92e0b..0000000 --- a/ucloud-vm-states-brainstorm +++ /dev/null @@ -1,6 +0,0 @@ -digraph G { - ucloud_scheduler [shape=box]; - ucloud_api [shape=box]; - ucloud_api -> NEW; - -} diff --git a/ucloud-vm-states.dot b/ucloud-vm-states.dot new file mode 100644 index 0000000..2059afe --- /dev/null +++ b/ucloud-vm-states.dot @@ -0,0 +1,26 @@ +digraph G { + ucloud_scheduler [shape=box]; + ucloud_api [shape=box]; + ucloud_vm [shape=box]; + + ucloud_scheduler -> SCHEDULED_FOR_DEPLOY [style="dotted"]; + ucloud_api -> NEW [label="Requested by user" style="dotted"]; + ucloud_api -> SUSPENDED [label="Requested by user" style="dotted"]; + ucloud_api -> DELETED [label="Requested by user" style="dotted"]; + ucloud_vm -> RUNNING [style="dotted"]; + + { rank = same; + ucloud_scheduler; + ucloud_api; + ucloud_vm; + } + + NEW -> SCHEDULED_FOR_DEPLOY [label="ucloud_scheduler selects hosts"]; + SCHEDULED_FOR_DEPLOY -> RUNNING [label="ucloud_vm starts VM"]; + RUNNING -> SUSPENDED; + SUSPENDED -> SCHEDULED_FOR_DEPLOY; + RUNNING -> DELETED; + + + +}