Created
September 15, 2020 15:54
-
-
Save colindooley11/45fe6aa98cd46c8057b35f9c53f94dfb to your computer and use it in GitHub Desktop.
Set priorites for Mongo Replica Set #mongo #replicaset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf = rs.conf() | |
conf.members[4].priority = 15.0 | |
rs.reconfig(conf) | |
//rs.stepdown() if needed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment