Description
The minor_compact_trigger parameter specifies the threshold of the number of SSTables that triggers a minor compaction (dump). 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 privilege
Users in the
systenant and all users in user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify privilege
Users in the
systenant and all users in 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 Dump and merge.
