Note
This parameter is available starting with V2.2.77.
Description
data_storage_warning_tolerance_time specifies the time that the data disk remains in the WARNING state before the system takes action.
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 status through a probe thread. If the data disk status has not recovered within the time specified by this parameter, the probe thread sets the data disk status to WARNING. This status triggers events such as primary-to-standby switch to ensure normal service for business requests.
Examples
Set the tolerance time for the data disk state to WARNING to 20s.
obclient> ALTER SYSTEM SET data_storage_warning_tolerance_time = 20s;