sofa-jraft icon indicating copy to clipboard operation
sofa-jraft copied to clipboard

Flexible raft: custom Quorum Size

Open killme2008 opened this issue 6 years ago • 5 comments

https://github.com/eBay/NuRaft/blob/master/docs/custom_quorum_size.md

killme2008 avatar Sep 11 '19 07:09 killme2008

Just wondering do you have a plan for this feature?

In my use case, I'm looking for a way to make sure the quorum size is 3 for a 5-peer deployment when there are only 3 or fewer peers in the configuration. There could be some reasons why not all peers in the configurations. For example, the peer is invisible if it can't be deployed because of the limit on the host resources while its IP is not static.

steven05jiang avatar Nov 17 '19 01:11 steven05jiang

@steven05jiang Yep, we have a plan, but it's not urgent right now, we don't put it into 1.3.0 milestone, maybe we will implement it in next release.Please keep attention on this issue.

killme2008 avatar Nov 22 '19 07:11 killme2008

@killme2008 Thx for the update! Looking forward to it.

steven05jiang avatar Nov 27 '19 17:11 steven05jiang

这个思路听起来是可以行的,并且它可以成为jraft的一大特性。但是目前好像没有看到这一设计应用于生产,jraft要应用这一特性,我们可能要制定详细的测试方案,这一块我没有好的思路。 另外,jraft是支持成员变更的,写死R=4,W=2应该不行的,我的想法是配置使用一个小数来配置,例如R=0.8,W=0.4

shihuili1218 avatar Apr 17 '23 09:04 shihuili1218

或者可以考虑作为一个测试分支,默认关闭,在小范围使用中印证是否正确

shihuili1218 avatar Apr 17 '23 09:04 shihuili1218