membership

Custom Membership in OpenRaft

OpenRaft lets applications define election read quorums and append entries write quorums by replica count, node weight, or site layout. A cluster of 4 nodes can use a read quorum of 3 and a write quorum of 2. Across 3 sites, 9 nodes can commit after 4 replication confirmations.

Adaptive Membership Changes in OpenRaft: Skip Joint Consensus When Quorums Overlap

OpenRaft now skips joint consensus when every old quorum intersects every new quorum. A linear-time test identifies exactly when this is safe for majority-based configurations. It covers Raft’s familiar one-node-at-a-time changes and a few additional cases, while retaining joint consensus for changes that need it.

Raft Membership Changes: When a Leader Must Commit a Current-Term Entry First

Standard joint consensus provides its own log barrier through config entries. Single-step changes and joint consensus extended with rollback require a committed current-term entry before a new config. Two failure scenarios show why the difference comes down to quorum overlap.

The Pitfalls of Raft Membership Change

Raft’s single-server membership change carries two problems: its middle state can turn one datacenter into a single point of failure, and the original algorithm could lose a committed entry. Let us look at membership change through quorum sets, and see why joint consensus is the answer.

Raft 成员变更上踩的坑

Raft 在单步成员变更的设计上存在缺陷, 一定要抛弃单步变更, 使用joint consensus