Behavior and expectations
Does Database Traffic Control change my schema, indexes, or query plans?
Does Database Traffic Control change my schema, indexes, or query plans?
Is Database Traffic Control applied per cluster or per branch?
Is Database Traffic Control applied per cluster or per branch?
What happens when a query exceeds a resource budget in Enforce mode?
What happens when a query exceeds a resource budget in Enforce mode?
53000. The error message includes [PGINSIGHTS] Traffic Control: and details about why the query was blocked (for example, which limit was exceeded). Violations are visible in the Database Traffic Control page.Does Database Traffic Control affect queries in Warn mode?
Does Database Traffic Control affect queries in Warn mode?
[PGINSIGHTS] Traffic Control: and details about which limit would have been exceeded. Resource budgets also record violations for the UI. Violations are visible in the Database Traffic Control page.Resource budget matching
Can a query match multiple resource budgets?
Can a query match multiple resource budgets?
How do I know which resource budgets a query matched?
How do I know which resource budgets a query matched?
My SQLCommenter tags are not showing up in Insights. What's wrong?
My SQLCommenter tags are not showing up in Insights. What's wrong?
Understanding and responding to high violation rates
I see a sudden spike in violations. What should I do?
I see a sudden spike in violations. What should I do?
- Narrow the time range in the Database Traffic Control UI to the window where the spike occurs.
- Identify which resource budget has the highest violation count.
- Determine which workload or system attribute that resource budget targets.
- Use Insights to see what changed (new deployment, new dashboard, larger batch job, etc.).
- Decide whether the workload is misbehaving or the limits are too strict:
- If the workload is expected and healthy, consider relaxing limits slightly.
- If the workload is unexpected or clearly problematic, work with the owning team to correct it.
Violations are constantly high for a critical application workload. Is that bad?
Violations are constantly high for a critical application workload. Is that bad?
- The application’s normal behavior exceeds the resource budget limits, in which case you should adjust the resource budget; or
- The application is issuing more or heavier queries than intended, in which case you should treat this as a performance issue.
- Your queries might be poorly optimized, in which case you should inspect results in Insights for more details, or debug queries with the PlanetScale MCP Server.
- Your database may be under-provisioned, in which case you should consider upgrading your cluster to a larger size.
Quickly rolling back a misconfiguration
I enabled Enforce and now legitimate traffic is failing. How do I revert quickly?
I enabled Enforce and now legitimate traffic is failing. How do I revert quickly?
- Change the resource budget Mode from Enforce back to Warn — For new queries, this stops enforcing the resource budget while still recording violations.
- Temporarily set the resource budget Mode to Off — Use this for emergency rollback when you need to fully disable the resource budget.
- Loosen the resource budget’s limits — Increase capacity, burst, or concurrency to better match real traffic.
Configuration tips
How do I block expensive single queries immediately?
How do I block expensive single queries immediately?
0 across the board. This will block all executions of that query.How does concurrency interact with parallel queries?
How does concurrency interact with parallel queries?
Can I control how much shared memory is used for resource budgets?
Can I control how much shared memory is used for resource budgets?
Interaction with connection pooling and clients
How does Database Traffic Control interact with connection pooling?
How does Database Traffic Control interact with connection pooling?
Can I rely on Database Traffic Control instead of client‑side rate limiting?
Can I rely on Database Traffic Control instead of client‑side rate limiting?
- Protect upstream services
- Enforce per‑user or per‑tenant limits that are not visible at the database layer
- Set appropriate query timeouts

