baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.86k stars 865 forks source link

raft learner support. #386

Open liyichao opened 1 year ago

liyichao commented 1 year ago

learner will neither participate in elections nor be inclued in quorum, and will not trigger election_timeout or vote.

This feature makes it easy to add a read-only replica to server, only making minimum influence to the raft group. It is also useful for replication between clusters at different data center.