Skip to content

Instantly share code, notes, and snippets.

@colindooley11
Created September 15, 2020 15:54
Show Gist options
  • Save colindooley11/45fe6aa98cd46c8057b35f9c53f94dfb to your computer and use it in GitHub Desktop.
Save colindooley11/45fe6aa98cd46c8057b35f9c53f94dfb to your computer and use it in GitHub Desktop.
Set priorites for Mongo Replica Set #mongo #replicaset
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