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 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 time, it considers the OBServer node to be offline.
Examples
Set the heartbeat lease time to 10s.
obclient> ALTER SYSTEM SET lease_time ='10s';
References
For more information about Root Service, see High availability at the database layer.
