Use this to confirm a cluster can restart all critical VMs after one or more host failures.
Failure Capacity
Failure capacity is the spare capacity a cluster keeps so the VMs of a failed host (N+1) or more (N+2) can restart elsewhere. HA admission control enforces it by refusing power-ons that would break that reserve.
1. Failure capacity: can remaining hosts run everything after a host fails?
2. Calculate with the largest host offline.
3. Include memory reservations.
4. Admission control enforces it (vSphere).
5. Test.
N hosts − 1 failed → remaining capacity ≥ demand
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Simulate a host failure: do all VMs fit on the remaining hosts?
- HA admission control enabled and correct.
Step 2 Common mistakes Narrow the fault
- Planning capacity without N+1 host failure.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Admission control enforces the reserve — don't disable it casually.
- Largest host defines N+1 need.
- Reservations change slot math.
ha-manager status— HA reserveGet-ClusterNode— nodes countN+1 calculation— usage fits on N−1 hosts
ReferenceWhy it matters1 section · depth on demand
Sizing failover capacity
| Cluster size | Reserve for N+1 |
|---|---|
| 2 hosts | 50 % of each host |
| 3 hosts | 33 % |
| 4 hosts | 25 % |
| 8 hosts | 12.5 % |
vSphere HA admission control can enforce it (percentage or slot policy). Check that reservations and large VMs fit on the remaining hosts, not just total capacity.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
N+1 is a capacity statement, not an HA setting
HA only restarts VMs; it needs somewhere to put them. The Proxmox HA documentation warns that failover can overload small clusters.
| Cluster | Usable if one node fails (N+1) | Max planned utilisation of total |
|---|---|---|
| 2 nodes | 1 node | 50 % |
| 3 nodes | 2 nodes | 67 % |
| 4 nodes | 3 nodes | 75 % |
| 8 nodes | 7 nodes | 87.5 % |
With N+2 (maintenance plus failure), subtract two nodes. Planned maintenance is the most common "failure" — a node in maintenance must not leave the cluster unable to survive the next failure.
Check both RAM and CPU per failure scenario
pvesh get /cluster/resources --type vm --output-format json |
jq '[.[] | select(.status=="running")] | group_by(.node) | map({node: .[0].node, ram_gb: (map(.maxmem) | add / 1073741824 | floor), vcpus: (map(.maxcpu) | add)})'
For each node: can the remaining nodes take its running VMs' RAM (hard limit) and CPU (soft limit)?
Placement matters, not just totals
| Pitfall | Effect |
|---|---|
| One very large VM (for example 384 GB) | Needs a single node with that much free RAM after failure |
| Affinity/anti-affinity rules | Reduce placement options during recovery |
| Local storage or passthrough | VM cannot restart elsewhere at all |
| HA groups restricted to two nodes | Effective cluster size for those VMs is two |
Recovery priorities
Not every VM needs HA. Mark critical services HA-managed and leave test VMs out, so recovery capacity goes where it matters. In Proxmox, max_restart and max_relocate control retries; a service that cannot be placed ends in error and needs manual action.
Test it
Put a node into maintenance mode during working hours and watch where VMs go and how the remaining nodes' memory looks — a planned test is much cheaper than discovering the shortfall at 3 a.m.
Worked example
Failure capacity is the capacity left when the planned failure happens.
Worked example: 3 hosts × 384 GB = 1 152 GB. VMs use 700 GB. With one host down, 768 GB remain → 91 % used: technically fits, but with no room for hypervisor overhead and ballooning — performance suffers during the failure. Either add a host (4 × 384 GB → 1 152 GB after failure, 61 %) or reduce VM memory. vSphere HA admission control ("cluster resource percentage" or "slot policy") enforces this automatically.
Methods
| Method | Example |
|---|---|
| N+1 | Cluster survives one host failure |
| N+2 | Survives two hosts or one during maintenance |
| Percentage reservation | vSphere HA admission control 25 % CPU/memory |
| Dedicated failover hosts | Idle spare host |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Capacity Planning → Failure Capacity. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/html/libvirt-libvirt-domain.html · confidence 94%