[DOCS-4117] Please help advise where can I find a sample of mongodb.conf for a replicaSet. Created: 01/Oct/14  Updated: 11/Jan/17  Resolved: 03/Oct/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.6
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Minor - P4
Reporter: Deepak Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

osx


Participants:
Days since reply: 9 years, 19 weeks, 5 days ago

 Description   

I have setup a 3 member replica set using the mongoDB manual. My compliments on great documentation.

I set up a 3 member replicaSet. I found an example of mongodb.conf for a standalone instance, but could not find a mondodb.conf sample for a replica set. Please advise where I may find it. Also is there a method to create the file dynamically using rs.conf() and hydrating it to an o/s file on disk?
Thank you!
Deepak



 Comments   
Comment by Sam Kleinman (Inactive) [ 03/Oct/14 ]

The mongodb.conf is the same except for the replset name (http://docs.mongodb.org/manual/reference/configuration-options/#replication.replSetName or http://docs.mongodb.org/manual/reference/program/mongod/#cmdoption--replSet) options.

If you want to create replica sets pragmatically, it makes the most sense to encode your configuration changes in some sort of script rather than directly from MongoDB using a file. You may also want to consider using MMS to deploy, configure, and manage MongoDB deployments.

Generated at Thu Feb 08 07:47:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.