File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,29 @@ compute_ctl -D /var/db/postgres/compute \
32
32
-b /usr/local/bin/postgres
33
33
```
34
34
35
+ ## State Diagram
36
+
37
+ Computes can be in various states. Below is a diagram that details how a
38
+ compute moves between states.
39
+
40
+ ``` mermaid
41
+ %% https://mermaid.js.org/syntax/stateDiagram.html
42
+ stateDiagram-v2
43
+ [*] --> Empty : Compute spawned
44
+ Empty --> ConfigurationPending : Waiting for compute spec
45
+ ConfigurationPending --> Configuration : Received compute spec
46
+ Configuration --> Failed : Failed to configure the compute
47
+ Configuration --> Running : Compute has been configured
48
+ Empty --> Init : Compute spec is immediately available
49
+ Empty --> TerminationPending : Requested termination
50
+ Init --> Failed : Failed to start Postgres
51
+ Init --> Running : Started Postgres
52
+ Running --> TerminationPending : Requested termination
53
+ TerminationPending --> Terminated : Terminated compute
54
+ Failed --> [*] : Compute exited
55
+ Terminated --> [*] : Compute exited
56
+ ```
57
+
35
58
## Tests
36
59
37
60
Cargo formatter:
You can’t perform that action at this time.
0 commit comments