DSKXOP5Q6NRJDD5NNEX7G3L3NHZFJZJE3TZFX25HC7ZHW2T3V6NAC
.arg(clap::Arg::with_name("port").long("port").takes_value(true))
.arg(clap::Arg::with_name("password").long("password").takes_value(true))
.arg(
clap::Arg::with_name("port")
.long("port")
.required(true)
.takes_value(true),
)
.arg(
clap::Arg::with_name("password")
.long("password")
.required(true)
.takes_value(true),
)
### The problem this solves
PostgreSQL has multiple ways to operate in a "leader-replicae" mode. However, failover isn't automatic, and requires another protocol to decide which of the replicae becomes the leader when the previous leader fails.
This crate solves this problem, in the particular configuration where one has an Etcd v3 server running, for example because of requirements from another server running on the same service.