Note
This parameter is available starting with V1.4.
Description
lease_time specifies the heartbeat lease time.
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
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 10s |
| Value range | [1s, 5min] |
| Modifiable | Yes
NoteGenerally, we do not recommend that you modify this parameter. |
| Effective upon OBServer node restart | No |
Considerations
If the Root Service does not receive heartbeat information from an OBServer node within the heartbeat lease time, the OBServer node is considered to be offline.
Examples
Set the heartbeat lease time to 10s.
obclient> ALTER SYSTEM SET lease_time ='10s';
References
For more information about the Root Service, see Database high availability.