Overview
mlog_trim_interval specifies the scheduling interval for the automatic mlog trimming task.
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 | Time |
| Default Value | 1d |
| Value range | [5s, 30d] |
| 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
Set the time interval for the background mlog trimming task to
5s.obclient> ALTER SYSTEM SET mlog_trim_interval = '5s';Set the time interval for the background MLog truncation task to
1d.obclient> ALTER SYSTEM SET mlog_trim_interval = '1d';