Description
The minor_compact_trigger parameter specifies the threshold of the number of SSTables at which a minor compaction is triggered. When the total number of mini SSTables and minor SSTables reaches the threshold specified by the minor_compact_trigger parameter, the system triggers a minor compaction in the background.
Privilege requirements
Query the parameter
Users in the
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Users in the
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 2 |
| Value range | [0, 16] |
| Modifiable | Yes. It can be modified by using the ALTER SYSTEM SET statement. |
| Effective upon OBServer node restart | No |
Example
Set a minor compaction to be triggered when the total number of mini SSTables and minor SSTables reaches 10.
obclient> ALTER SYSTEM SET minor_compact_trigger = 10;
References
For more information about minor compactions, see Major compaction.