Created
February 24, 2023 01:26
-
-
Save parkerfoshay/92f18923f78bc5f59462a481a051c870 to your computer and use it in GitHub Desktop.
reconfiguring replica set
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
rs.conf() | |
config = rs.config() | |
config.members[2].priority = 10 | |
rs.reconfig(config) | |
rs.status() | |
rs.remove(“mongodb.repl.member.two:27017”) | |
rs.add(“mongodb.repl.member.four:27017”) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment