Skip to main content

Module deployments

Module deployments 

Source
Expand description

The Deployments page (M4.4b, decisions 121-129): one graph of everything the UI shows. The UI on top (in standalone inside its process), linked by HTTP to each deployment’s webserver; in each deployment’s frame its webserver, linked by the database to its masters, and its workers, each linked by gRPC to the master it registered with. Each rectangle around nodes is a process. A node with a problem is yellow (a warning) or red (an error). Clicking a node opens its panel: its facts, its problems and its configuration, as TOML. Every configuration was masked by the node it belongs to before it left that node’s process, and is masked again before it is shown.

Structs§

Asked
A deployment as asked.
ConnectionRow
One of the UI’s connections, in its panel.
Edge
A line between two nodes.
Frame
A rectangle on the graph: a process (around its nodes) or a deployment’s frame.
Graph
The graph: deployment frames, processes, the lines between nodes, the nodes, in drawing order.
GraphNode
A node on the graph.
NodePanel
A node’s panel, shown when its node is clicked.
StatusProblem
A problem in the Status block’s list, opening its node’s panel.
StatusRow
A deployment’s line in the Status block above the graph (decision 462).
UiSide
The UI’s own side, as the graph shows it.

Enums§

Level
How bad a node’s problems are: its colour.

Constants§

NODE_HEIGHT
A node’s height on the graph (three lines).
NODE_WIDTH
A node’s width on the graph.
UI_ANCHOR
The UI’s anchor.
WORKER_STATES
The worker states in the order the Status block counts them: the ones that need a look first after active.

Functions§

graph
The graph and the nodes’ panels for the UI (ui) and the deployments as asked.
list
GET /deployments: the graph of everything the UI shows, each deployment asked at once, and each node’s panel.
master_anchor
A master’s anchor on the Deployments page.
pretty
A configuration as shown: masked again here (each node masked its own before it left its process; one that didn’t, an older or altered node, still shows no secret), its unset values left out, as TOML (as JSON, indented, should TOML not hold it).
short
An ID’s last 8 characters: a UUIDv7’s are random, enough to tell its masters apart (its first ones are its time, the same for masters started within a minute).
status
The Status block: a line per deployment as asked, in their order (decision 462).
webserver_anchor
A deployment’s webserver’s anchor.
worker_anchor
A worker’s anchor on the Deployments page.