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