Skip to content

Resource warning thresholds — catching problems before the customer notices

A customer who calls about slowness already had a degraded experience for hours. Resource alerts at the right thresholds catch the problem before they notice.

A customer who opens a ticket because “my site is slow” has been having a degraded experience for some time before deciding to call. By the time their email reaches the helpdesk, the host has been in trouble for hours. Alerts that fire when a problem is in early stages — not when it has already broken something — turn the same incident into a quiet fix during business hours. The threshold values matter; too sensitive and you get noise, too lenient and you might as well not have alerts.

What’s happening

The operating signal we want is “this metric is moving in a direction that will cause an incident if it continues for another hour”. For CPU, that is sustained high load (not a single spike). For memory, growing swap use or shrinking available memory. For disk, both space and inodes nearing their cap. For LVE, repeated incidents on the same user.

Each metric has a natural “fine, normal, warning, critical” band. The warning band should fire before the critical band by enough time that a human can respond. For cPanel hosts, that gap is usually 30-60 minutes.

How to verify

The thresholds we use as a baseline. Adjust per host capacity, but the shape is consistent:

MetricWarningCritical
Load average (5min) > N cores80% of cores120%
RAM free<20%<10%
Swap used>100 MB sustained>500 MB
Disk space /var /home>80%>90%
Inode use>80%>90%
MySQL connections>70% max>90%
PHP-FPM listen queue>5 sustained>50
LVE incidents on any user>5/hour>20/hour
Mail queue size>1000>5000
Apache busy workers>70% MaxRequestWorkers>90%

Implementation paths: cPanel ships Cpanel::Service::Daemons that report some of this. WHM > System Health surfaces a subset. For real monitoring, point a Prometheus node_exporter + a CloudLinux exporter at the host and alert from Alertmanager. Or use any of the SaaS monitoring tools that have a cPanel plugin.

The fix

  1. Pick a monitoring tool that the on-call rotation actually reads. A perfect set of alerts that nobody sees is worse than a basic set that gets attention.
  2. Set the thresholds above as starting values. Tune up if you get noise; tune down if you keep missing incidents.
  3. Configure response routing. Warning alerts go to a channel the team checks during business hours; critical alerts page. The split prevents alert fatigue.
  4. Tie alerts to runbooks. Each alert should link to a specific KB article: “MySQL connections high” → “check the slow query log and the connection limit; here are the commands”.
  5. Auto-resolve transient spikes. A single 5-minute load spike at backup time should not page. Either exclude backup windows or require the threshold to be sustained for N minutes.
  6. Review monthly. Which alerts fired, which were noise, which were real, which incidents had no alert? Adjust thresholds based on the gaps.

The goal: the customer never has to tell you the host is in trouble. Stack Harbor configures monitoring + alerting as part of environment management.