Skip to content

Instantly share code, notes, and snippets.

@rauchg
Created April 21, 2011 22:59
Show Gist options
  • Save rauchg/935664 to your computer and use it in GitHub Desktop.
Save rauchg/935664 to your computer and use it in GitHub Desktop.
MongoDB replica set initialization
> rs.initiate({_id: "lbdevset", members: [{_id: 0, host: "HOST:28017"}, {_id: 1, host: "HOST:28018"}] })
> rs.addArb("HOST:28019")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment