Overview
kv_ttl_history_recycle_interval specifies the retention period for historical records of the TTL task. The historical record table of the TTL task only retains records within the most recent period of length kv_ttl_history_recycle_interval.
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 | 7d |
| Value range | [1d, 180d] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to Restart OBServer for the Change to Take Effect | No, the setting takes effect immediately. |
Configuration example
Set the retention period for task history records with a TTL to 7 days.
obclient> ALTER SYSTEM SET kv_ttl_history_recycle_interval= '7d';