Raising MySQL Governor limits for a single noisy account is straightforward; tuning the levels globally for a server is where things get fragile. The level system layers default values with reseller plan overrides with per-user overrides, and changes at the default level cascade through every account that hasn’t been overridden. We’ve seen environments where the operator raised the default IO from 1024 to 4096 to fix one tenant and unintentionally let twenty others consume more disk bandwidth, surfacing as IO contention at peak hours that nobody connected to the change three days earlier.
What’s happening
Governor’s configuration in /etc/container/mysql-governor.xml defines limits at four levels of granularity:
<default>— the baseline that applies to every account with no other override.<plan>— overrides for a named cPanel reseller plan. A premium plan can have 4x the default limits without touching the default itself.<user>— overrides for a specific account by username. Highest precedence.<group>— overrides for an arbitrary group of users (less commonly used).
Each level can specify five resources: CPU, READ, WRITE, CONN, NPROC. Each resource has four-period values: current second, 5 seconds, 15 seconds, 30 seconds — Governor uses a sliding window so brief spikes don’t trip limits. So a “CPU limit” is actually four numbers, and adjusting them coherently matters.
The cPanel reseller plan ties into this via the feature_list on the account. cPanel sends “this user is on plan X” to Governor, and Governor picks the plan’s limits. If you create a plan in WHM and Governor doesn’t have a matching <plan> block, that plan’s users get the default.
How to verify
cat /etc/container/mysql-governor.xml
lvectl list --all | head -20
dbtop # see who's currently near their limit
mysql -e "SELECT user, COUNT(*) AS conn FROM information_schema.PROCESSLIST GROUP BY user ORDER BY conn DESC LIMIT 10"
whmapi1 listacctsfeatures user=acmecorp # confirm which plan an account is on
grep -A 2 "<plan" /etc/container/mysql-governor.xml
The XML shows the current configuration. lvectl list shows what’s actually applied per user. dbtop shows live usage. The cross-reference between WHM plans and Governor <plan> blocks confirms the mapping is intact.
The fix
- Take a snapshot of current configs before changing anything:
cp /etc/container/mysql-governor.xml /etc/container/mysql-governor.xml.bak-$(date +%F) lvectl list --all > /root/lve-snapshot-$(date +%F).txt - Distinguish “this one account needs more” from “the defaults are wrong”. The first is a
<user>override. The second is a default change with broad blast radius. - For a single account: edit
/etc/container/mysql-governor.xml, add a<user name="acmecorp">block with the new limits:
The four numbers per limit are the sliding-window targets (current second, last 5 seconds, last 15 seconds, last 30 seconds). Restart Governor:<user name="acmecorp"> <limit name="cpu" current="100" short="80" mid="60" long="40" /> <limit name="read" current="8192" short="6144" mid="4096" long="2048" /> </user>service db_governor restart. - For a plan-level adjustment, find the plan name with
whmapi1 listacctsfeatures user=acmecorp, then add a<plan name="premium">block in the same XML. Restart Governor. - For default-level changes, communicate to all relevant tenants first. A default raise from 1024 KB/s read to 4096 is a 4x increase in potential IO contention; on a host with 100 accounts, that can translate to disk saturation under load.
- Set the mode appropriately. In the same XML,
<mode>can beabusers(only throttle when limits exceeded, recommended),all(throttle everything continuously), orsingle(throttle individually per query, more granular but more CPU overhead).abusersis the right default for almost all hosts. - Verify the change applied: after restart,
dbtopshows the new limits per account. Confirm by triggering a load test against the modified account or watching the next traffic peak. - Roll back cleanly:
cp /etc/container/mysql-governor.xml.bak-2026-05-19 /etc/container/mysql-governor.xml && service db_governor restart.
For environments where Governor tuning is operational rather than emergency, Stack Harbor’s WHM server management team correlates dbtop usage histograms against plan tiers and recommends plan boundary adjustments quarterly.