When creating table or region failover, a target node needs to be selected.
If the node’s lease has expired, the Selector
will not select it.
The frontend will also send heartbeats to Metasrv, sending an empty
heartbeat every HEARTBEAT_INTERVAL_MILLIS * 6 seconds.
Heartbeat interval time (is the basic unit of various time).
The default mailbox round-trip timeout.
In a lease, there are two opportunities for renewal.
The lease seconds of metasrv leader.
The lease seconds of a region. It’s set by 3 heartbeat intervals
(HEARTBEAT_INTERVAL_MILLIS × 3), plus some extra buffer (1 second).