mongo_shard.conf 340 B

1234567891011121314151617
  1. net:
  2. bindIpAll: true
  3. port: 27017
  4. storage:
  5. dbPath: "/opt/mongo/store/data"
  6. directoryPerDB: true
  7. systemLog:
  8. destination: file
  9. path: "/opt/mongo/store/logs/mongo.log"
  10. logAppend: true
  11. security:
  12. keyFile: "/opt/mongo/key/keyfile"
  13. authorization: enabled
  14. replication:
  15. oplogSizeMB: 300
  16. sharding:
  17. clusterRole: shardsvr