Stack
View the target state of the LooT stack, fetch packages for machines and start rollouts – for system admins only.
What stack administration is for#
A LooT stack consists of the services of an installation (ingest, writer, query, web application and more) running on one or more machines. The core is the machine with the central services, satellites are further machines. Stack administration holds the target state: which components should run on which machine in how many instances. Every saved change is a numbered revision; the newest one applies. You create revisions in the workbench on the System page (see the System page in the workbench manual). The commands on this page show the target state, fetch the files for a machine and roll a revision out.
The address of stack administration is that of the node server (api.<domain>), which loot stores at sign-in (loot login). If it is unreachable, the command reports that stack administration cannot be reached at this address.
Common rules#
--revision(short-r) takes a revision number orlatest. The default islatest, the current revision.--hostnames a machine by the name used in stack administration. Without--hostthe core is meant.- Times appear in your local time, with the global option
--utcin UTC. - Exit code 0 means success, 1 a rejection or a failed rollout, 2 a wrong invocation (Configuration).
loot stack pullwrites files and is therefore blocked in the workbench console; uselooton the machine for which you need the package.
loot stack status#
Shows the target state: the machines with the current and the last rolled-out revision, plus the target/actual comparison against system monitoring.
loot stack statusThe command has no options of its own. The table names for each machine its name, role (Kern = core or Satellit = satellite), the number of components, the state of the last rollout and the agent (the program on the machine that performs the rollout: verbunden = connected, getrennt = disconnected or keiner = none). Below it, the target/actual comparison lists deviations only (too few, too many or unexpected instances, component not running). If system monitoring cannot be reached, a note "not available" with the reason appears instead.
$ loot stack status
Soll-Zustand: Revision 14
Rechner Rolle Komponenten Rollout Agent
core Kern 18 Revision 14 ausgerollt (2026-11-29T22:10:41+01:00, 3f9a2c1) verbunden (3f9a2c1)
gpu-1 Satellit 2 Revision 13 ausgerollt (2026-11-20T08:02:15+01:00, 1b7e440) verbunden (1b7e440)
Soll-Ist-Vergleich: Abweichungen
Komponente Soll Ist Stand
Query-Server 2 1 zu wenige InstanzenAn installation that has not saved any revision yet reports "Grundzustand (keine Revision gespeichert)" (base state, no revision saved).
loot stack revisions#
Lists the saved revisions, newest first: number, time, who saved it, number of warnings and comment.
loot stack revisions$ loot stack revisions
Revision Gespeichert Von Warnungen Kommentar
14 2026-11-29T21:58:03+01:00 alice 0 Query-Server auf 2 Instanzen
13 2026-11-19T17:30:44+01:00 alice 1 GPU-Rechner für Prognosemodellloot stack pull#
Fetches the package of a machine from a revision: the files topology.json and stack.env used to roll the machine out. Secrets are never in them. The command writes the files to a directory, prints their paths and reports "pulled" to stack administration.
loot stack pull [-r <revision>] [--host <machine>] [-o <directory>]| Option | Meaning | Default |
|---|---|---|
-r, --revision <revision> | Revision number or latest | latest |
--host <machine> | Name of the machine | the core |
-o, --output <directory> | Directory for the files (created if needed) | . (current directory) |
Notes on the rollout go to the error output (Hinweis: …), so the file paths stay alone on the standard output. If the machine has nothing to roll out in the revision, the command ends with an error.
$ loot stack pull --host gpu-1 -o /srv/loot-rollout
/srv/loot-rollout/topology.json
/srv/loot-rollout/stack.env
Revision 14 für „gpu-1“ geholt.loot stack report#
Reports the result of a rollout to stack administration. You need it when you roll a machine out by hand (after loot stack pull); with loot stack rollout the agents report themselves.
loot stack report --state <succeeded|failed> [-r <revision>] [--host <machine>] [--version-name <text>] [--message <text>]| Option | Meaning | Default |
|---|---|---|
--state <state> (required) | Result: succeeded or failed | – |
-r, --revision <revision> | Revision number or latest | latest |
--host <machine> | Name of the machine | the core |
--version-name <text> | rolled-out LooT version, e.g. the commit | empty |
--message <text> | Message, mainly on a failure | empty |
$ loot stack report --state succeeded --revision 14 --host gpu-1 --version-name 3f9a2c1
Revision 14 auf „gpu-1“: ausgerollt.loot stack rollout#
Has the agents of the machines roll a revision out – the core first, then the other machines – and follows the progress. For each machine every change of state is printed; at the end comes the overall result.
loot stack rollout [-r <revision>] [--no-wait]| Option | Meaning | Default |
|---|---|---|
-r, --revision <revision> | Revision number or latest | latest |
--no-wait | only start, do not wait for the end | waits until the end |
The exit code is 0 only if all machines succeeded. If a rollout is already running, the server rejects a second one. Because the rollout of the core also restarts ingest and stack administration, loot bridges short outages while following and gives up only after five minutes without a connection; loot stack status then shows the state.
$ loot stack rollout
Rollout 9: Revision 14 auf core, gpu-1.
core: wartet – Wartet auf den Agenten
core: rollt aus – Auftrag abgeholt
core: ausgerollt
gpu-1: wartet – Wartet auf den Kern
gpu-1: rollt aus – Auftrag abgeholt
gpu-1: ausgerollt
Rollout 9: ausgerollt.See also#
- System page in the workbench manual: creating and checking revisions.
- Command index and Configuration.