kfl62
kfl62

Reputation: 2514

mongoDB replication with offline nodes

Is it possible to set up mongoDB replica set with following scenario (if it is,how):

Upvotes: 1

Views: 1393

Answers (1)

Nekresh
Nekresh

Reputation: 2988

  • Backup only. In order to do this, you'll have to specify the priority of this node to 0. If your node is never going to be used as master nor queried, you can also set buildIndexes to false. More informations here.

  • Intermitent slave. Due to limitations (mainly on the oplog queue), you can't have a slave halted for a very long time if you have many writes on your MongoDB, see here. However, you can use the mongodump and mongorestore tools directly over network or by script + sync the backup file. More informations here. Note that a restore will bring a db or collection in a server and recreate the indexes completely (if you restore the system.indexes collection too) which can take some time.

Upvotes: 3

Related Questions