Overview
compaction_schedule_tablet_batch_cnt specifies the maximum number of partitions to be scheduled in a batch during compaction scheduling.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 50000 |
| Value range | [10000,500000] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
When setting up batch scheduling for compaction, the maximum number of partitions scheduled per batch is 50,000.
obclient> ALTER SYSTEM SET compaction_schedule_tablet_batch_cnt = 50000;