mongodb - set up mongo db across 2 servers -


i setting mongo database in production environment. running off of 2 servers - want set 1 server can fail on other when , if necessary.

i new mongo , have sql server database. admit not sure how set such. tutorials of similar on web me? or advice regarding such setup?

replication in mongodb achieve goal.

here how replication works in mongodb

  1. a replica set set of 2 or more mongod cluster ( 3 preferred on 2 )
  2. one among them primary , rest secondaries.
  3. in case of failover of primary, secondaries form election , choose new primary. ( automated failover )
  4. there different member configuration available replica set, details in
  5. deployment details in

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -