Note
This parameter is available starting with V4.0.0.
Description
The compaction_mid_thread_score parameter specifies the number of worker threads for medium-priority compactions. A medium-priority compaction is one that is performed on a Minor SSTable.
Privilege requirements
Query the parameter
Tenants, including the
systenant and user tenants, can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Tenants, including the
systenant and user tenants, can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0, which indicates to use the internal default value 6 |
| Valid range | [0,100] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify it. |
| Effective immediately after the setting is made. |
Example
Set the number of worker threads for medium-priority compactions to 6.
obclient> ALTER SYSTEM SET compaction_mid_thread_score= 6;