Note
For V4.2.1, this parameter is available starting with V4.2.1.
Description
compaction_schedule_tablet_batch_cnt specifies the maximum number of partitions in each batch during Compaction batch scheduling.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 50000 |
| Value range | [10000, 500000]
NoteStarting from V4.4.0, the value range is changed from [10000, 200000] to [10000, 500000]. |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Examples
Set the maximum number of partitions in each batch during Compaction batch scheduling to 50000.
obclient> ALTER SYSTEM SET compaction_schedule_tablet_batch_cnt = 50000;