- 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
2.3 KiB
2.3 KiB
miroir-ctl Runbooks
This directory contains runbooks for each miroir-ctl subcommand. Each runbook includes:
- Purpose (one sentence)
- Preconditions (what must be true before running)
- Examples (common invocations)
- Gotchas (edge cases and warnings)
- See also (plan section references)
Runbooks
| Command | Runbook | Description |
|---|---|---|
status |
status.md | Show cluster health and node status |
node |
node.md | Add, remove, drain, and list nodes |
rebalance |
rebalance.md | Monitor shard migrations |
reshard |
reshard.md | Change index shard count |
verify |
verify.md | Check data integrity across replicas |
task |
task.md | Monitor background tasks |
dump |
dump.md | Export and import index data |
alias |
alias.md | Manage index aliases |
canary |
canary.md | Control canary deployments |
ttl |
ttl.md | Manage document expiration policies |
cdc |
cdc.md | Configure change data capture |
shadow |
shadow.md | Manage shadow indexing |
ui |
ui.md | Launch the Admin UI |
tenant |
tenant.md | Manage multi-tenancy |
explain |
explain.md | Analyze query plans |
key |
key.md | Manage API keys |
Quick Reference
# Cluster health
miroir-ctl status --watch
# Node operations
miroir-ctl node add --id node-3 --address http://node-3:7700 --replica-group 0
miroir-ctl node drain node-2
miroir-ctl node remove node-2
# Monitor operations
miroir-ctl rebalance status --watch
miroir-ctl task status
# Data operations
miroir-ctl dump export --index myindex --output myindex.dump
miroir-ctl verify --index myindex
# Admin UI
miroir-ctl ui
Authentication
All commands require an admin API key. Set it via:
- Environment variable:
export MIROIR_ADMIN_API_KEY=... - Credentials file:
~/.config/miroir/credentialswith[default].admin_api_key - Command line flag:
--admin-key ...(WARNING: visible in process list)
See also
- Plan §11 — common operations
- Plan §4 — crate layout
- Troubleshooting — common issues