Note
This parameter is available starting with V1.4.
Description
lease_time specifies the lease period of the heartbeat.
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. You can use the ALTER SYSTEM SET statement to modify the parameter.
NoteGenerally, we do not recommend that you modify this parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
If the Root Service does not receive heartbeat information from an OBServer node within the lease period, it considers the OBServer node to be offline.
Examples
Set the lease period of the heartbeat to 10s.
obclient> ALTER SYSTEM SET lease_time ='10s';
References
For more information about Root Service, see Database high availability.