Crates.io | postrep |
lib.rs | postrep |
version | 0.1.0 |
source | src |
created_at | 2021-06-04 14:04:49.670998 |
updated_at | 2021-06-04 14:04:49.670998 |
description | A clustering tool for PostgreSQL, based on Etcd |
homepage | |
repository | |
max_upload_size | |
id | 406144 |
size | 174,460 |
Postrep uses a fixed replication strategy (streaming replication), a fixed leader election tool (Etcd 3), to achieve proper failover when the cluster leader fails.
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.