Scale
Admin guide · Scale runbook
🟡 When needed · ⚠️ check disk first · snapshot before limits
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Capacity, limits, sharding | Disk headroom, baseline health | Measure, limit, snapshot | Health 200, limits shown, disk free | Re-apply old limits or copy snapshot |
When to use
You are adding capacity to an Incus service, changing CPU or memory limits, or deciding whether the system needs sharding or a larger host. This is not a routine operation: do it when measurements justify it.
Before you start
- Check
df -h /andincus listfirst. Each Vibe project raises its ownimages:ubuntu/24.04instance; repeated "New Project" runs stack up VMs and can fill the host. Reuse an existing project where possible and clean up withincus delete --force <container>when a clean VM is not required. - Record the current limits so they can be restored verbatim.
- Read the SLOs and the hardware guide before buying capacity.
- Use the
incusCLI only; the legacy container runtime is not supported.
Steps
## 1. Measure before changing anything
df -h /
sudo incus list --format csv
curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health
## 2. Snapshot, then apply limits (repository AGENTS.md)
sudo incus snapshot create <container> pre-upgrade-$(date +%Y%m%d)
sudo incus config set <container> limits.cpu 2
sudo incus config set <container> limits.memory 4GiB
sudo incus config device set <container> root size 20GiB
Choose the numbers for your host; the values above are the documented examples, not a recommended size. For data growth, follow database optimization and sharding architecture. For local models, see local LLM and desktop hardware.
Verify
| Check | Command | Pass condition |
|---|---|---|
| Config | sudo incus info <container> |
limits show the values you set |
| Disk | df -h / |
headroom remains |
| Health | curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health |
200 |
| Ports | sudo incus exec <container> -- ss -tlnp |
service ports still listening |
| Snapshot | sudo incus snapshot list <container> |
pre-change snapshot present |
If health drops or disk fills, stop and revert before doing anything else.
Roll back
🔴 Re-apply the previous values with the same incus config set commands, or
copy the pre-change snapshot into a new instance and swap names:
sudo incus config set <container> limits.cpu <previous-value>
sudo incus config set <container> limits.memory <previous-value>
sudo incus copy <container>/<snapshot> <container>-restored
sudo incus start <container>-restored
Re-run the verification table after the swap.
See also buying guide, supported platforms, SLOs, scaling and load balancing, disk and queue runbook and Operate.