Matteo Scandolo | eb0d11c | 2017-08-08 13:05:26 -0700 | [diff] [blame^] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
rdudyala | b086cf3 | 2016-08-11 00:07:45 -0400 | [diff] [blame] | 19 | # mongodb.conf |
| 20 | |
| 21 | # Where to store the data. |
| 22 | dbpath=/var/lib/mongodb |
| 23 | |
| 24 | #where to log |
| 25 | logpath=/var/log/mongodb/mongodb.log |
| 26 | |
| 27 | logappend=true |
| 28 | |
| 29 | bind_ip = localhost |
| 30 | #port = 27017 |
| 31 | |
| 32 | # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling |
| 33 | journal=true |
| 34 | smallfiles = true |
| 35 | |
| 36 | # Enables periodic logging of CPU utilization and I/O wait |
| 37 | #cpu = true |
| 38 | |
| 39 | # Turn on/off security. Off is currently the default |
| 40 | #noauth = true |
| 41 | #auth = true |
| 42 | |
| 43 | # Verbose logging output. |
| 44 | #verbose = true |
| 45 | |
| 46 | # Inspect all client data for validity on receipt (useful for |
| 47 | # developing drivers) |
| 48 | #objcheck = true |
| 49 | |
| 50 | # Enable db quota management |
| 51 | #quota = true |
| 52 | |
| 53 | # Set oplogging level where n is |
| 54 | # 0=off (default) |
| 55 | # 1=W |
| 56 | # 2=R |
| 57 | # 3=both |
| 58 | # 7=W+some reads |
| 59 | #oplog = 0 |
| 60 | |
| 61 | # Diagnostic/debugging option |
| 62 | #nocursors = true |
| 63 | |
| 64 | # Ignore query hints |
| 65 | #nohints = true |
| 66 | |
| 67 | # Disable the HTTP interface (Defaults to localhost:27018). |
| 68 | #nohttpinterface = true |
| 69 | |
| 70 | # Turns off server-side scripting. This will result in greatly limited |
| 71 | # functionality |
| 72 | #noscripting = true |
| 73 | |
| 74 | # Turns off table scans. Any query that would do a table scan fails. |
| 75 | #notablescan = true |
| 76 | |
| 77 | # Disable data file preallocation. |
| 78 | #noprealloc = true |
| 79 | |
| 80 | # Specify .ns file size for new databases. |
| 81 | # nssize = <size> |
| 82 | |
| 83 | # Accout token for Mongo monitoring server. |
| 84 | #mms-token = <token> |
| 85 | |
| 86 | # Server name for Mongo monitoring server. |
| 87 | #mms-name = <server-name> |
| 88 | |
| 89 | # Ping interval for Mongo monitoring server. |
| 90 | #mms-interval = <seconds> |
| 91 | |
| 92 | # Replication Options |
| 93 | |
| 94 | # in replicated mongo databases, specify here whether this is a slave or master |
| 95 | #slave = true |
| 96 | #source = master.example.com |
| 97 | # Slave only: specify a single database to replicate |
| 98 | #only = master.example.com |
| 99 | # or |
| 100 | #master = true |
| 101 | #source = slave.example.com |
| 102 | |
| 103 | # Address of a server to pair with. |
| 104 | #pairwith = <server:port> |
| 105 | # Address of arbiter server. |
| 106 | #arbiter = <server:port> |
| 107 | # Automatically resync if slave data is stale |
| 108 | #autoresync |
| 109 | # Custom size for replication operation log. |
| 110 | #oplogSize = <MB> |
| 111 | # Size limit for in-memory storage of op ids. |
| 112 | #opIdMem = <bytes> |
| 113 | |
| 114 | # SSL options |
| 115 | # Enable SSL on normal ports |
| 116 | #sslOnNormalPorts = true |
| 117 | # SSL Key file and password |
| 118 | #sslPEMKeyFile = /etc/ssl/mongodb.pem |
| 119 | #sslPEMKeyPassword = pass |