MongoDB

From Glee
Jump to: navigation, search

Replication

Example where replication must be done using a non-primary address, between two main instances and an arbiter :

hostname m01.example.lan
mongo
rs.initiate()
rs.conf()
rs.add("m02.example.lan")
rs.addArb("m0x.example.lan")
rs.conf()
exit
hostname m01.example.com