fix: filter out outdated heartbeat (#2303)

* fix: filter out outdated heartbeat, #1707

* feat: reorder handlers

* refactor: disableXXX to enableXXX

* feat: make full use of region leases to facilitate failover

* chore: minor refactor

* chore: by comment

* feat: logging on inactive/active
This commit is contained in:
JeremyHi
2023-09-03 10:25:50 +08:00
committed by Ruihang Xia
parent 648b2ae293
commit a7fa40e16d
20 changed files with 218 additions and 132 deletions

View File

@@ -93,7 +93,7 @@ struct StartCommand {
#[clap(long)]
use_memory_store: Option<bool>,
#[clap(long)]
disable_region_failover: Option<bool>,
enable_region_failover: Option<bool>,
#[clap(long)]
http_addr: Option<String>,
#[clap(long)]
@@ -140,8 +140,8 @@ impl StartCommand {
opts.use_memory_store = use_memory_store;
}
if let Some(disable_region_failover) = self.disable_region_failover {
opts.disable_region_failover = disable_region_failover;
if let Some(enable_region_failover) = self.enable_region_failover {
opts.enable_region_failover = enable_region_failover;
}
if let Some(http_addr) = &self.http_addr {