fuel-library/deployment/puppet/mongodb/templates/mongodb.conf.erb
Bogdan Dobrelya 3f99d39be8 Fix mongo logs verbosity
W/o this patch a mongo logs are too huge to be processed by
logrotate without issues.

The solution is to reduce the non debug verbosity level for logs
and do not log all transactions as well (use the quiet option):
* Sync the quiet parameter from puppetlabs-mongodb v0.10.0
* Lower the logs verbosity for a non debug case
* Use the quiet parameter for a non debug case

Closes-bug: #1427197
Related-bug: #1393400

Change-Id: I3a3ba70029167928565baa46a77a5c0c0dbacbe8
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2015-03-17 20:28:54 +00:00

172 lines
4.3 KiB
Plaintext

# mongo.conf - generated from Puppet
#where to log
<% if @quiet -%>
quiet = <%= @quiet %>
<% end -%>
<% if @use_syslog -%>
syslog = true
<% else -%>
logpath=<%= @logpath %>
<% end -%>
logappend=<%= @logappend %>
<% if @bind_ip -%>
# Set this option to configure the mongod or mongos process to bind to and
# listen for connections from applications on this address.
# You may concatenate a list of comma separated values to bind mongod to multiple IP addresses.
bind_ip = <%= @bind_ip.join(',') %>
<% end -%>
<% if @fork -%>
# fork and run in background
fork=<%= @fork %>
<% end -%>
port = <%= @port %>
dbpath=<%= @dbpath %>
<% if @pidfilepath -%>
# location of pidfile
pidfilepath = <%= @pidfilepath %>
<% end -%>
<% if @nojournal -%>
# Disables write-ahead journaling
nojournal = <%= @nojournal %>
<% end -%>
<% if @journal -%>
# Enables journaling
journal = <%= @journal %>
<% end -%>
<% if @cpu -%>
# Enables periodic logging of CPU utilization and I/O wait
cpu = <%= @cpu %>
<% end -%>
# Turn on/off security. Off is currently the default
<% if @noauth -%>
noauth=<%= @noauth %>
<% end -%>
<% if @auth -%>
auth=<%= @auth %>
<% end -%>
<% if @verbose -%>
# Verbose logging output.
verbose = <%= @verbose %>
<% end -%>
<% if @verbositylevel -%>
<%= @verbositylevel -%> = true
<% end -%>
<% if @objcheck -%>
# Inspect all client data for validity on receipt (useful for
# developing drivers)
objcheck = <%= @objcheck %>
<% end -%>
<% if @maxconns -%>
maxConns = <%= @maxconns %>
<% end -%>
<% if @quota -%>
# Enable db quota management
quota = <%= @quota %>
<% if @quotafiles -%>
quotaFiles = <%= @quotafiles %>
<% end -%>
<% end -%>
<% if @diaglog -%>
# Set oplogging level where n is
# 0=off (default)
# 1=W
# 2=R
# 3=both
# 7=W+some reads
diaglog = <%= @diaglog %>
<% end -%>
<% if @oplog_size -%>
# Specifies a maximum size in megabytes for the replication operation log
oplogSize = <%= @oplog_size %>
<% end -%>
<% if @nohints -%>
# Ignore query hints
nohints = <%= @nohints %>
<% end -%>
<% if @nohttpinterface -%>
# Disable the HTTP interface (Defaults to localhost:27018).
nohttpinterface = <%= @nohttpinterface %>
<% end -%>
<% if @noscripting -%>
# Turns off server-side scripting. This will result in greatly limited
# functionality
noscripting = <%= @noscripting %>
<% end -%>
<% if @notablescan -%>
# Turns off table scans. Any query that would do a table scan fails.
notablescan = <%= @notablescan %>
<% end -%>
<% if @noprealloc -%>
# Disable data file preallocation.
noprealloc = <%= @noprealloc %>
<% end -%>
<% if @nssize -%>
# Specify .ns file size for new databases in megabytes.
nssize = <%= @nssize %>
<% end -%>
<% if @mms_token -%>
# Accout token for Mongo monitoring server.
mms-token = <%= @mms_token %>
<% end -%>
<% if @mms_name -%>
# Server name for Mongo monitoring server.
mms-name = <%= @mms_name %>
<% end -%>
<% if @mms_interval -%>
# Ping interval for Mongo monitoring server.
mms-interval = <%= @mms_interval %>
<% end -%>
<% if @slave -%>
slave = <%= @slave %>
<% end -%>
<% if @source -%>
source = <%= @source %>
<% end -%>
<% if @only -%>
# Slave only: specify a single database to replicate
only = <%= @only %>
<% end -%>
<% if @master -%>
master = <%= @master %>
<% end -%>
<% if @directoryperdb -%>
# Alters the storage pattern of the data directory to store each database
# files in a distinct folder.
directoryperdb = <%= @directoryperdb %>
<% end -%>
<% if @replset -%>
# Configure ReplicaSet membership
replSet = <%= @replset %>
<% end -%>
<% if @smallfiles -%>
# Use a smaller default data file size.
smallfiles = <%= @smallfiles %>
<% end -%>
<% if @rest -%>
# Enable rest API (disabled by default)
rest = <%= @rest %>
<% end -%>
<% if @profile -%>
# Modify this value to changes the level of database profiling, which inserts
# information about operation performance into output of mongod or the log file.
#0 = Off. No profiling. default
#1 = On. Only includes slow operations.
#2 = On. Includes all operations.
profile = <%= @profile %>
<% end -%>
<% if @slowms -%>
# Sets the threshold in milliseconds for mongod to consider a query slow for the profiler.
slowms = <%= @slowms %>
<% end -%>
<% if @keyfile -%>
# Specify the path to a key file to store authentication information.
keyFile = <%= @keyfile %>
<% end -%>
<% if @directoryperdb -%>
directoryperdb = <%= @directoryperdb %>
<% end -%>
<% if @set_parameter -%>
setParameter = <%= @set_parameter %>
<% end -%>