4 ms·
short answer: nope. cockroachdb replicates data for availability and in order to guarantee consistency across the replicas, it uses Raft[1] internally. Raft nec
by irfansharif 9y ago
short answer: nope. cockroachdb replicates data for availability and in order to guarantee consistency across the replicas, it uses Raft[1] internally. Raft necessitates a majority of the replicas remain available in order to operate. it ensures that a new 'leader' for each group of replicas is elected if the former leader fails, so that transactions can continue and affected replicas can rejoin their group once they're back online.
[1]: https://raft.github.io/raft.pdf https://raft.github.io/raft.pdf
- novembermike 9y agoWhat are the recommended configurations then? If I want to survive multiple node failures could I have 9 replicas?
- irfansharif 9y agoraft is premised on overlapping majorities, so to speak. in order to tolerate up to `n` node failures you'd need to run `2n + 1` instances (for nine nodes you'd tolerate up to four node failures).