Set Priority in a Replica Sehow to set priority in a replica sett to Prevent More Primary
-
Upload
luis-contreras -
Category
Documents
-
view
215 -
download
0
description
how to set priority in a replica set
Transcript of Set Priority in a Replica Sehow to set priority in a replica sett to Prevent More Primary
-
how to set priority in a replica set
1. Go to primary server and from the mongo shell, execute the following
cfg = rs.conf()
2. Set the priority to 0, to those members of the replica set you want to prevent become primary
cfg.members[2].priority = 0
3. Reconfigure your replica set
rs.reconfig(cfg)