Note
This parameter is available starting with V2.2.77.
Description
data_storage_warning_tolerance_time specifies the tolerance time for the data disk state to be set to WARNING.
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 | 5s
NoteStarting from V4.0.0, the default value of this parameter is changed from 30s to 5s. |
| Value range | [1s, 300s]
NoteStarting from V4.0.0, the value range of this parameter is changed from [10s, 300s] to [1s, 300s]. |
| 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 an unexpected I/O failure occurs, the I/O Manager of OceanBase Database attempts to detect the data disk state through a probe thread. If the data disk state has not returned to normal after the time specified by this parameter, the probe thread sets the data disk state to WARNING. This state triggers events such as primary-to-standby switch to ensure normal business request processing.
Examples
Set the tolerance time for the data disk state to be set to WARNING to 20s.
obclient> ALTER SYSTEM SET data_storage_warning_tolerance_time = 20s;