Note
This parameter is available starting with V1.4.
Description
lease_time specifies the heartbeat lease duration.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.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 heartbeat lease duration, the OBServer node is considered offline.
Examples
Set the heartbeat lease duration to 10s.
obclient> ALTER SYSTEM SET lease_time ='10s';
References
For more information about the Root Service, see Database high availability.