miroir/docs/ctl/status.md
jedarden adab169bed docs(miroir-ctl): add subcommand runbooks and help text (P11.4, miroir-uyx.4)
- Created docs/ctl/*.md runbooks for all 16 miroir-ctl subcommands
- Each runbook includes: purpose, preconditions, examples, gotchas, see also
- Added runbook location to --help output
- All runbooks under 50 lines for easy reading

Closes: miroir-uyx.4
2026-05-24 11:47:36 -04:00

27 lines
891 B
Markdown

# `miroir-ctl status`
## Purpose
Show cluster health, node status, and ongoing rebalancing operations.
## Preconditions
- Admin API key configured (`MIROIR_ADMIN_API_KEY` env var, `~/.config/miroir/credentials`, or `--admin-key` flag)
- Miroir orchestrator reachable at `--api-url` (default: `http://localhost:8080`)
## Examples
```bash
# One-time status snapshot
miroir-ctl status
# Continuously refresh every 2 seconds (use during operations)
miroir-ctl status --watch
```
## Gotchas
- `--watch` mode clears the terminal each refresh — use `Ctrl+C` to exit
- Degraded nodes show `⚠` but don't necessarily mean downtime — check individual node errors
- `fully_covered: false` means some shards have fewer than RF replicas — check `degraded_node_count`
## See also
- Plan §10 — health metrics and degraded node detection
- `miroir-ctl node list` — detailed node topology