hashicorp/raft

Option for NonLeader

saschamonteiro opened this issue · 2 comments

I have a requirement to have 3 servers, but only 2 of them are allowed to become a leader, could this be achieved?

You can configure a server as NonVoter:

Nonvoter
. This is not exactly what you want, but maybe it helps. NonVoters receive logs, don't vote in elections and never become a leader themselfes.

thanks @i0rek , yeah that doesn't quite help, I need an elector/voter only, like some other systems have as option, I tried calling LeadershipTransfer from the instance I don't want to become leader, but times out if one of the other 2 servers is offline