Note
- For V4.4.x, this parameter is available starting with V4.4.0.
- For V4.3.5, this parameter is available starting with V4.3.5 BP1.
Description
unit_gc_wait_time specifies the maximum wait time for Unit GC. If the wait time exceeds this value, a forced GC is performed.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 1m, which indicates 1 minute |
| Value range | [0, 30d] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
When you modify the parameter value, you can specify the unit after the number. Valid units include us (microsecond), ms (millisecond), s (second), m (minute), h (hour), and d (day).
Examples
Set the maximum wait time for Unit GC to 1 minute. If the wait time exceeds 1 minute, a forced GC is performed.
obclient> ALTER SYSTEM SET unit_gc_wait_time = '1m';