Skip to content

Instantly share code, notes, and snippets.

@BrunoBonacci
Last active December 14, 2015 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoBonacci/5009721 to your computer and use it in GitHub Desktop.
Save BrunoBonacci/5009721 to your computer and use it in GitHub Desktop.
MongoDB Replica set configuration
# this is the replica set name
# every node will need to have the same name
replSet = setname
# this is the authetication encryption key
# this will be required to be same on every node
keyFile = /etc/mongodb.key
# This is the operational log size
# here we assume ~24GB for example
oplogSize = 24000
# optionally - create a separate directory per DB
directoryperdb = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment