Raphael Stefani
Raphael Stefani

Reputation: 170

How to build a cluster in order to have full data replication between the nodes?

How can i build/configure a cockroach cluster in order to have all data in all nodes? I'm not talking about to have pieces of data spread across the nodes.

I've tried to start a cluster with locality flag but as soon i kill cockroach process in the machine which first recieved the data, i'm no longer able to execute a select and the command only return the data when i start this instance again.

In other words, i wanna to achieve a scenario that if i have total of 3 nodes and i lost 2 of them or they become unavaliabe, i still want to work normally.

In case that cockroachdb does't support this feature. How is the best way to achieve it?

Upvotes: 1

Views: 229

Answers (1)

Pete Vilter
Pete Vilter

Reputation: 11

This was answered on our forum, but repeating here:

Cockroach requires a majority of replicas to be available for each range to make progress. So, it won't be able to work normally if only 1 of 3 nodes (less than a majority) are available. You can add more nodes to decrease the likelihood of losing a majority.

Upvotes: 1

Related Questions