Note
This parameter is available starting with V1.4.
Description
max_stale_time_for_weak_consistency specifies the maximum time that data read under the weak consistency mode can lag behind the leader.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 5s |
| Value range | [5s, +∞) |
| 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. |
Examples
Set the maximum time that data read under the weak consistency mode can lag behind the leader to 5s.
obclient> ALTER SYSTEM SET max_stale_time_for_weak_consistency= 5s;