Overview
The compaction_mid_thread_score parameter specifies the number of worker threads for medium-priority compactions. Medium-priority compactions refer to those that compact minor SSTables.
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 | 0: Use the internal default value 6. |
| Value range | [0,100] |
| 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
Set the number of worker threads for priority compaction to 6.
obclient> ALTER SYSTEM SET compaction_mid_thread_score= 6;