mongodb.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # mongodb.conf
  2. # Where to store the data.
  3. dbpath=/ssd/mongodb
  4. #where to log
  5. logpath=/ssd/log/mongodb/mongodb.log
  6. logappend=true
  7. bind_ip = 0.0.0.0
  8. #port = 27017
  9. # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
  10. journal=true
  11. # Enables periodic logging of CPU utilization and I/O wait
  12. #cpu = true
  13. # Turn on/off security. Off is currently the default
  14. #noauth = true
  15. #auth = true
  16. # Verbose logging output.
  17. #verbose = true
  18. # Inspect all client data for validity on receipt (useful for
  19. # developing drivers)
  20. #objcheck = true
  21. # Enable db quota management
  22. #quota = true
  23. # Set oplogging level where n is
  24. # 0=off (default)
  25. # 1=W
  26. # 2=R
  27. # 3=both
  28. # 7=W+some reads
  29. #oplog = 0
  30. # Diagnostic/debugging option
  31. #nocursors = true
  32. # Ignore query hints
  33. #nohints = true
  34. # Disable the HTTP interface (Defaults to localhost:27018).
  35. #nohttpinterface = true
  36. # Turns off server-side scripting. This will result in greatly limited
  37. # functionality
  38. #noscripting = true
  39. # Turns off table scans. Any query that would do a table scan fails.
  40. #notablescan = true
  41. # Disable data file preallocation.
  42. #noprealloc = true
  43. # Specify .ns file size for new databases.
  44. # nssize = <size>
  45. # Accout token for Mongo monitoring server.
  46. #mms-token = <token>
  47. # Server name for Mongo monitoring server.
  48. #mms-name = <server-name>
  49. # Ping interval for Mongo monitoring server.
  50. #mms-interval = <seconds>
  51. # Replication Options
  52. # in replicated mongo databases, specify here whether this is a slave or master
  53. #slave = true
  54. #source = master.example.com
  55. # Slave only: specify a single database to replicate
  56. #only = master.example.com
  57. # or
  58. #master = true
  59. #source = slave.example.com
  60. # Address of a server to pair with.
  61. #pairwith = <server:port>
  62. # Address of arbiter server.
  63. #arbiter = <server:port>
  64. # Automatically resync if slave data is stale
  65. #autoresync
  66. # Custom size for replication operation log.
  67. #oplogSize = <MB>
  68. # Size limit for in-memory storage of op ids.
  69. #opIdMem = <bytes>