A customer on a CloudLinux + cPanel host reports the site randomly serves 503s under traffic. CPU on the host is at 40%. MySQL slow log shows nothing dramatic. The customer’s PHP app appears healthy. What’s actually happening is MySQL Governor’s LVE limits — Lightweight Virtual Environment per-user caps on CPU, IO, concurrent connections, and IO operations against the database. When the account’s hot WordPress plugin hits the IO ceiling, Governor throttles queries until the next second, the PHP request times out, and the visitor gets a 503. The throttling is invisible from inside the application and from MySQL’s own logs.
What’s happening
MySQL Governor is the CloudLinux component that maps MySQL connections back to the cPanel account that owns the database, then enforces resource limits on those connections using the same LVE infrastructure that limits PHP. Defaults vary by reseller plan; common values are 10–25% of a CPU core, 1024 KB/s IO read, 1024 KB/s IO write, and 30 concurrent connections.
When a limit is hit, Governor doesn’t fail the query — it slows it down by inserting sleep cycles. From the application’s view, a query that normally takes 50ms takes 5 seconds. PHP-FPM workers stack up waiting for the query, hit max_children, and new visitors get 503 from the web server. The MySQL error log is silent.
The Governor also has multiple modes (abusers, single, all) that change which queries get throttled. abusers mode only throttles when limits are exceeded, which is the safe default. single mode throttles each query against its limit. all mode is more aggressive. The mode in use is in /etc/container/mysql-governor.xml.
How to verify
cat /etc/container/mysql-governor.xml | grep -E "default|level"
dbtop # live view of per-user DB resource usage and throttling
cloudlinux-config show
lvectl list --all # all LVE limits per user
mysql -e "SELECT user, COUNT(*) FROM information_schema.PROCESSLIST GROUP BY user"
dbtop is the diagnostic — it shows which account is being throttled in real time. If an account shows a non-zero “throttle %” column, that’s your problem. lvectl list shows the limits each user has — find the account, look at CPU, IO, IOPS, EP (entry processes), and NPROC.
The fix
- Identify whether throttling is the cause. Run
dbtopduring the next 503 incident. If the affected account shows throttling, the limits are too low for the workload. If not, look elsewhere — slow query log, PHP-FPM children, OPcache. - Raise the limit on the specific account, not the global default. Globally widening limits defeats the purpose of LVE:
wherelvectl set 1234 --cpu=50 --io=4096 --iops=20481234is the user’s LVE ID (fromlvectl list). The values are per-user. Higher values cost more host resources; you can’t raise everyone. - For Governor-specific limits, edit
/etc/container/mysql-governor.xml(per-user overrides go in<user name="...">blocks). The four Governor limits are CPU, READ, WRITE, and CONN. Restart governor:service db_governor restart. - Set a billable upgrade if the workload genuinely needs more. CloudLinux gives you the data to have the “your site needs a bigger plan” conversation; the IO chart from dbtop is a good visual.
- For chronic offenders that should be fixed, the slow query log digest (separate article) identifies the queries eating the IO budget. An index that reduces
Rows_examinedfrom 100k to 100 typically drops the IO consumption tenfold and removes the need to raise limits. - Disable Governor when troubleshooting:
service db_governor stopfor 5 minutes to confirm whether the 503s persist. If they go away, Governor is the cause; if they continue, look elsewhere. Re-enable after.
For shared CloudLinux hosts where Governor tuning is a recurring conversation between hosting providers and tenants, Stack Harbor’s cPanel server administration team monitors per-account DB usage and proposes plan changes before throttling reaches customer pages.