The instinct to capacity-plan by CPU and RAM averages is wrong on cPanel. Averages hide the burst behaviour that actually causes customer pain. The signals that matter are the ones that correspond to “a customer is hitting a wall right now” — LVE faults, queue depth, request slot exhaustion. Watch these, not the dashboards.
The trade-off
A box at 30% average CPU can be the source of half the support tickets because one account is sustained at LVE limit for hours per day. A box at 80% average CPU can be perfectly healthy if every tenant has headroom. The averages don’t tell you which is which.
How to verify — the signals worth watching
- LVE faults per account, per day.
lveinfo --period=1d --by-fault=cpuand--by-fault=pmem. Accounts with sustained faults are either hitting a real ceiling (need a plan upgrade) or running broken code (need a support conversation). A fleet with more than 5% of accounts faulting daily is over capacity. - Exim queue depth.
exim -bpc. Sustained values above 5,000 mean either a spammer in your fleet, a downstream block, or genuine mail capacity exhaustion. - Apache scoreboard via mod_status. Worker slot utilization. If
BusyWorkers / MaxRequestWorkersis sustained above 80%, you’re queueing requests at the front door. Slow PHP-FPM responses propagate back here. - PHP-FPM pool slot utilization. Check the FPM status page per pool. Saturation here means a slow database call or external API is back-pressuring everyone.
- MySQL active threads and queue.
SHOW PROCESSLISTplus thread cache hit rate. Active threads > available CPU cores sustained = contention. - Disk queue depth.
iostat -x 5, look ataqu-sz. Sustained queues above 1 on SSD, above 5 on spinning, mean I/O is the constraint.
What to do
- Set thresholds at percentages of “the wall,” not arbitrary numbers. Alert at 70% of LVE limit for any account; alert at 80% of Apache MaxRequestWorkers.
- Capture these signals to a time-series store (Prometheus, InfluxDB) — point-in-time inspection misses the bursts.
- Review the top-faulting 10 accounts monthly. Outliers either need a plan change conversation or a “your code is broken” conversation.
- Build the capacity dashboard around these signals, not around CPU averages. The CPU graph is decorative; the LVE fault graph is operational.
- When you have to add capacity, add it to the dimension that’s actually saturating. Adding RAM to a CPU-bound host doesn’t help.
For an example of the alerting layer on top, see actionable HTTP latency alerts. Stack Harbor sets up capacity dashboards by signal as part of WHM server management.