mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 22:40:40 +00:00
fix: ensure keep alive is completed in time (#4349)
* fix: ensure keep alive is completed in time * chore: apply suggestions from CR * chore: use write runtime * refactor: set META_LEASE_SECS to 5 * chore: set etcd replicas to 1 * chore: apply suggestions from CR * chore: apply suggestions from CR * fix: set `MissedTickBehavior::Delay` * chore: apply suggestions from CR
This commit is contained in:
@@ -33,7 +33,7 @@ pub const DATANODE_LEASE_SECS: u64 = REGION_LEASE_SECS;
|
||||
pub const FLOWNODE_LEASE_SECS: u64 = DATANODE_LEASE_SECS;
|
||||
|
||||
/// The lease seconds of metasrv leader.
|
||||
pub const META_LEASE_SECS: u64 = 3;
|
||||
pub const META_LEASE_SECS: u64 = 5;
|
||||
|
||||
/// In a lease, there are two opportunities for renewal.
|
||||
pub const META_KEEP_ALIVE_INTERVAL_SECS: u64 = META_LEASE_SECS / 2;
|
||||
|
||||
Reference in New Issue
Block a user