Miro Krsjak
Miro Krsjak

Reputation: 363

Rethinkdb failover cluster with just 2 nodes

I would like to setup an IOT reporting database, with failover. The idea is to have a cluster with 2 nodes, one in a datacenter one at home. If "home" looses internet connection, it continues to operate and upon online status, "datacenter" would align to offline changes. Now, I read the rethinkdb docs, that you need at least 3 nodes for a failover to function. So the question is, is my scenario doable with just 2 nodes, if yes, how?

Upvotes: 0

Views: 155

Answers (1)

taygetos
taygetos

Reputation: 3040

According to the docu https://www.rethinkdb.com/docs/start-a-server/

First, start RethinkDB on the first machine:

$ rethinkdb --bind all

Then start RethinkDB on the second machine:

$ rethinkdb --join IP_OF_FIRST_MACHINE:29015 --bind all

Upvotes: 1

Related Questions