Skip to content

Instantly share code, notes, and snippets.

@niccottrell
Created August 14, 2014 09:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niccottrell/86e361de32aacf08b71c to your computer and use it in GitHub Desktop.
Save niccottrell/86e361de32aacf08b71c to your computer and use it in GitHub Desktop.
mongodb arbiter configuration file (shard)
systemLog:
destination: file
path: "/var/log/mongo/mongo-arb.log"
logAppend: true
storage:
dbPath: "/var/lib/mongo-arb"
processManagement:
fork: true
pidFilePath: "/var/run/mongo/mongod-arb.pid"
net:
port: 27018
http:
enabled: true
replication:
replSetName: "rs1"
sharding:
clusterRole: shardsvr
security:
keyFile: "/var/lib/mongo/shard.key"
@niccottrell
Copy link
Author

This is the new configuration format for MongoDB 2.6+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment