Re:Consul, a new tool for service discovery and configuration
by mitchellh on Thursday April 17, 2014 @04:48PM
(#7606225)
We recommend three or five because that will get you a high level of fault tolerance. Consul runs just fine with one server, but you'll have no fault tolerance: if that one server becomes unavailable for any reason, then reads/writes for your cluster will not be served.
The leader is elected using Raft as the consensus algorithm (it is linked in the internals section of the docs).
You are correct though that if you run multiple servers, the leader election will happen automatically. There is no way to manually override it.
Now that i've re-read your architecture page, let me see if I understand this: the basic point behind using Consul is to have multiple servers agree on the result of a request, and communicate that agreement to a single node to write it, and then return it to the client. So really it's a fault-tolerant messaging platform that includes features that take advantage of such a network; do I have that right?
Also, your docs say there are between three and five servers, but here you're saying you only need one?