Overview
lease_time specifies the duration of a heartbeat lease.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Only the
systenant can modify this parameter. User tenants cannot modify it.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Time |
| Default Value | 10s |
| Value range | [1s, 5min] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification.
NoteModifying this parameter is generally not recommended. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
If the Root Service does not receive a heartbeat from an OBServer node within the heartbeat lease duration, the OBServer node is considered offline.
Configuration example
Set the heartbeat lease duration to 10 seconds.
obclient> ALTER SYSTEM SET lease_time ='10s';
References
For more information about Root Service, see High availability at the database layer.