delonix system
O motor em si: events, info, df, prune, monitor, thermal.
The engine itself: events, info, df, prune, monitor, thermal.
Introspecção e manutenção. system prune é o GC (recupera espaço: containers
parados, dirs órfãos, imagens dangling, blobs CAS, hostfwds órfãos, redes vazias); system df
mostra o uso de disco; system monitor segue ligações/conntrack; system events o
fluxo de eventos.
Introspection and maintenance. system prune is the GC (reclaims
space: stopped containers, orphan dirs, dangling images, CAS blobs, orphan hostfwds, empty
networks); system df shows disk usage; system monitor follows
connections/conntrack; system events the event stream.
📄 Implementação real em Rust: cmd/system.rs
Usage: dlx system [OPTIONS] <COMMAND>
Commands:
events Engine events (create/start/die/remove/…), from oldest to most recent. With no daemon, the log is a shared append-only file — each command appends its own line (see `delonix_runtime_core::events`)
info Engine state: rootless?, cgroup delegation, network infra, counts
setup Diagnose — and, with `--delegate`, fix — cgroup delegation, the prerequisite for `--memory`/`--cpus`/`--pids-limit` to mean anything
df Disk usage by area (images, containers, volumes, VM images)
virt Host virtualization: hypervisor, KVM, virtio — and what there is to tune
prune Reclaim space: remove stopped containers, unused images, CAS blobs nobody references, empty cgroups and — the biggest space saver — **orphan container directories** (from nodes/containers that died abruptly without `rm`, with no registry entry)
monitor Active network connections per container (via conntrack): who comes in, who goes out, and between containers. Refreshes continuously (see `--no-stream`)
thermal Thermal governor: lowers Delonix's CPU budget when the CPU heats up and restores it when it cools down. Runs continuously (see `--once`)
help Print this message or the help of the given subcommand(s)
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpsystem thermal
Thermal governor: lowers Delonix's CPU budget when the CPU heats up and restores it when it cools down. Runs continuously (see --once)
Usage: dlx system thermal [OPTIONS]
Options:
--high <HIGH> Temperature (°C) at or above which it cools down [default: 85]
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
--low <LOW> Temperature (°C) below which it restores [default: 70]
--floor <FLOOR> Minimum CPU percentage it drops to [default: 40]
--interval <INTERVAL> Seconds between readings [default: 5]
--once One reading and exit (for cron/scripts, instead of the loop)
-h, --help Print helpExemplos
delonix system thermalsystem monitor
Active network connections per container (via conntrack): who comes in, who goes out, and between containers. Refreshes continuously (see --no-stream)
Usage: dlx system monitor [OPTIONS]
Options:
--interval <INTERVAL> Milliseconds between refreshes (minimum 300) [default: 1000]
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
--no-stream One sample and exit (without clearing the screen or repeating)
-h, --help Print helpExemplos
delonix system monitorsystem virt
Host virtualization: hypervisor, KVM, virtio — and what there is to tune
Usage: dlx system virt [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
--tune Apply the recommended tuning (needs root)
-h, --help Print helpExemplos
delonix system virtsudo delonix system virt --tunesystem setup
Diagnose — and, with --delegate, fix — cgroup delegation, the prerequisite for --memory/--cpus/--pids-limit to mean anything.
Without it the flags are ACCEPTED and INERT: the container runs with no limit at all. That is the failure mode this command exists for, and it is invisible without asking.
Usage: dlx system setup [OPTIONS]
Options:
--delegate
Apply the fix instead of only reporting it. Writing the system-wide drop-in needs root; the per-session remedy never does
--l18n <en|pt>
Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help
Print help (see a summary with '-h')Exemplos
delonix system setupsystemd-run --user --scope -p Delegate=yes -- delonix system setupsudo delonix system setup --delegatesystem events
Engine events (create/start/die/remove/…), from oldest to most recent. With no daemon, the log is a shared append-only file — each command appends its own line (see delonix_runtime_core::events)
Usage: dlx system events [OPTIONS]
Options:
-f, --follow Follow continuously (Ctrl-C to exit)
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-n, --tail <TAIL> Show only the last N (default: all)
-h, --help Print helpExemplos
delonix system events -n 20delonix system events --followsystem prune
Reclaim space: remove stopped containers, unused images, CAS blobs nobody references, empty cgroups and — the biggest space saver — orphan container directories (from nodes/containers that died abruptly without rm, with no registry entry)
Usage: dlx system prune [OPTIONS]
Options:
-f, --force Skip the confirmation prompt (REQUIRED when stdin is not a terminal)
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-a, --all Also remove unused images that DO have a tag (not just the dangling ones)
-h, --help Print helpExemplos
delonix system prunesystem df
Disk usage by area (images, containers, volumes, VM images)
Usage: dlx system df [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix system dfsystem info
Engine state: rootless?, cgroup delegation, network infra, counts
Usage: dlx system info [OPTIONS]
Options:
--l18n <en|pt> Output language: `en` (default) or `pt` (Portuguese, pt_AO). Also settable via `$DELONIX_L18N`. Global — works before any subcommand
-h, --help Print helpExemplos
delonix system infoLaboratórioLab
Enche disco com lixo (containers parados) e depois recupera-o.
for i in 1 2 3; do delonix container run --name lixo-$i alpine true; done
delonix system df
delonix system prune
delonix system dfFill up disk with junk (stopped containers) and then reclaim it.
for i in 1 2 3; do delonix container run --name junk-$i alpine true; done
delonix system df
delonix system prune
delonix system dfDesafioChallenge
Segue system events num terminal enquanto corres
container run/stop/rm noutro, e mapeia cada acção da CLI ao
evento exacto que ela emite.
Follow system events in one terminal while running
container run/stop/rm in another, and map each CLI action
to the exact event it emits.