resource_broker_config
The resource broker is an actor service that controls resource consumption on YDB nodes, such as:
CPU— number of threadsMemory— RAM
Different types of activities (background operations, TTL data deletion, etc.) run in different resource broker queues. Each queue has a limited number of resources:
| Queue name | CPU | Memory | Description |
|---|---|---|---|
queue_ttl |
2 | — | TTL data deletion operations. |
queue_backup |
2 | — | Backup operations. |
queue_restore |
2 | — | Restore from backup operations. |
queue_build_index |
10 | — | Online secondary index creation operations. |
queue_cdc_initial_scan |
4 | — | Initial table scan operations. |
Note
It is recommended to extend the resource broker configuration using tags !inherit and !append.
Example of extending the resource broker configuration with a custom limit for the queue_ttl queue:
resource_broker_config: !inherit
queues: !append
- name: queue_ttl
limit:
cpu: 4
Was the article helpful?
Previous
Next