rangefeed: use separate memory budgets for system and user tenant ranges #78977
Labels
A-kv-replication
Relating to Raft, consensus, and coordination.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-kv
KV Team
Is your feature request related to a problem? Please describe.
Currently tenants use single memory budget for all ranges. This could be problematic as changefeeds for user data could delay tenant system data if memory is scarce. Tenants should use separation between system and user range budgets similar to how it is used in system tenant.
Describe the solution you'd like
Tenant system ranges should have a smaller separate budget which should not be used by user ranges. It should also support dynamic system span configs (as added in #74555).
Mind that something needs to be done to handle asynchrony of config propagation. Existing fallbacks that declare all ranges as system is not good for rangefeeds as miscategorizing feed as system may compromise system feeds.
Jira issue: CRDB-14470
Epic CRDB-39959
The text was updated successfully, but these errors were encountered: