Crates.io | sdcons |
lib.rs | sdcons |
version | 0.1.0 |
source | src |
created_at | 2021-07-25 03:33:06.772856 |
updated_at | 2021-07-25 03:33:06.772856 |
description | An implementation of geo-replicated distributed consensus algorithm: SDPaxos |
homepage | https://github.com/patricknicholas/sdcons/ |
repository | https://github.com/patricknicholas/sdcons/ |
max_upload_size | |
id | 426963 |
size | 255,196 |
sdcons
is an implementation of geo-replicated distributed consensus algorithm. It is based on the paper:
SDPaxos: Building Efficient Semi-Decentralized Geo-replicated State Machines (ACM Symposium on Cloud Computing 2018, SoCC '18)
Like original SDPaxos, sdcons
provides one-round-trip latency reading and writing capabilities under realistic configurations (deployed with three or five nodes).
In addition, I ported some optimizations mentioned in the raft algorithm to SDPaxos. Including:
These optimizations make SDPaxos easier to implement and verify.
However, the current sdcons
has not yet implemented the Straggler detection mentioned in the SDPaxos paper.
Unlike SDPaxos, sdcons
uses the term channel
to represent the paxos commiting progress. The Ordering instance is represented as Index, the Command instance is represented as Entry. Because the term index is used to represent Ordering instance, I choose term id to represent the index in raft.
At present, sdcons has not performed benchmarking and related performance optimization.
See examples/
.
Thanks etcd for providing the amazing Go implementation of raft!