Overview
minor_compact_trigger specifies the threshold for the number of SSTables that triggers a minor compaction.
When the total number of Mini SSTables and Minor SSTables exceeds the value specified by the minor_compact_trigger parameter, the system backend attempts to trigger a Minor Compaction. However, whether a Minor Compaction is ultimately triggered is determined by other internal system logic.
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 | 2 |
| Value range | [0, 16] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Configuration example
Configure to attempt triggering a minor compaction when the total number of mini SSTables and minor SSTables exceeds 10.
obclient> ALTER SYSTEM SET minor_compact_trigger = 10;
References
For more information about minor compaction, see Minor compaction.