Note
This parameter is available starting with V1.4.
Description
max_stale_time_for_weak_consistency specifies the maximum amount of time that a read operation in weak-consistency mode can lag behind the leader replica.
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 allowed stale time for reads in weak-consistency mode to 5 seconds.
obclient> ALTER SYSTEM SET max_stale_time_for_weak_consistency= '5s';
