Blame SOURCES/mongod.conf

28a3cc
##
28a3cc
## For list of options visit:
28a3cc
## https://docs.mongodb.org/manual/reference/configuration-options/
28a3cc
##
28a3cc
28a3cc
# systemLog Options - How to do logging
28a3cc
systemLog:
28a3cc
  # The default log message verbosity level for components (0-5)
28a3cc
  verbosity: 0
28a3cc
28a3cc
  # The destination to which MongoDB sends all log output (file|syslog, if not specifed to STDOUT)
28a3cc
  destination: file
28a3cc
28a3cc
  # Log file to send write to instead of stdout - has to be a file, not directory
28a3cc
  path: /var/log/mongodb/mongod.log
28a3cc
28a3cc
  # Append to logpath instead of over-writing (false by default)
28a3cc
  logAppend: true
28a3cc
28a3cc
  # Set the log rotation behavior (rename|reopen, rename by default)
28a3cc
  logRotate: reopen
28a3cc
28a3cc
28a3cc
# processManagement Options - How the process runs
28a3cc
processManagement:
28a3cc
  # Fork server process (false by default)
28a3cc
  fork: true
28a3cc
28a3cc
  # Full path to pidfile (if not set, no pidfile is created)
28a3cc
  pidFilePath: /var/run/mongodb/mongod.pid
28a3cc
28a3cc
28a3cc
# net Options - Network interfaces settings
28a3cc
net:
28a3cc
  # Specify port number (27017 by default)
28a3cc
  port: 27017
28a3cc
28a3cc
  # Comma separated list of ip addresses to listen on (all local ips by default)
28a3cc
  bindIp: 127.0.0.1,::1
28a3cc
28a3cc
  # Enable IPv6 support (disabled by default)
28a3cc
  ipv6: true
28a3cc
28a3cc
  unixDomainSocket:
28a3cc
    # Enable/disable listening on the UNIX domain socket (true by default)
28a3cc
    enabled: true
28a3cc
28a3cc
    # Alternative directory for UNIX domain sockets (defaults to /tmp)
28a3cc
    pathPrefix: /var/run/mongodb
28a3cc
28a3cc
  #ssl:
28a3cc
    # Set the SSL operation mode (disabled|allowSSL|preferSSL|requireSSL)
28a3cc
    #mode: <string>
28a3cc
28a3cc
    # PEM file for ssl
28a3cc
    #PEMKeyFile: <string>
28a3cc
28a3cc
    # Certificate Authority file for SSL
28a3cc
    #CAFile: <string>
28a3cc
28a3cc
28a3cc
# storage Options - How and Where to store data
28a3cc
storage:
28a3cc
  # Directory for datafiles (defaults to /data/db/)
28a3cc
  dbPath: /var/lib/mongodb
28a3cc
28a3cc
  #journal:
28a3cc
    # Enable/Disable journaling (journaling is on by default for 64 bit)
28a3cc
    #enabled: true
28a3cc
28a3cc
  # The storage engine for the mongod database (mmapv1|wiredTiger, wiredTiger by default
28a3cc
  # - works for 64 bit only)
28a3cc
  # Also possible to use unstable engines: devnull|ephemeralForTest
28a3cc
  engine: mmapv1
28a3cc
28a3cc
  #mmapv1:
28a3cc
    # Enable or disable the preallocation of data files (true by default)
28a3cc
    #preallocDataFiles: <boolean>
28a3cc
28a3cc
    # Use a smaller default file size (false by default)
28a3cc
    #smallFiles: <boolean>
28a3cc
28a3cc
  #wiredTiger:
28a3cc
    #engineConfig:
28a3cc
      # The maximum size of the cache that WiredTiger will use for all data
28a3cc
      # (max(60% of RAM - 1GB, 1GB) by default)
28a3cc
      #cacheSizeGB: 5
28a3cc
28a3cc
      # The type of compression to use to compress WiredTiger journal data
28a3cc
      # (none|snappy|zlib, snappy by default)
28a3cc
      #journalCompressor: <string>
28a3cc
28a3cc
    #collectionConfig:
28a3cc
      # The default type of compression to use to compress collection data
28a3cc
      # (none|snappy|zlib, snappy by default)
28a3cc
      #blockCompressor: <string>
28a3cc
28a3cc
28a3cc
# secutiry Options - Authorization and other security settings
28a3cc
#security:
28a3cc
  # Private key for cluster authentication
28a3cc
  #keyFile: <string>
28a3cc
28a3cc
  # Run with/without security (enabled|disabled, disabled by default)
28a3cc
  #authorization
28a3cc
28a3cc
28a3cc
# setParameter Options - Set MongoDB server parameters
28a3cc
# setParameter:
28a3cc
28a3cc
# opratrionProfiling Options - Profiling settings
28a3cc
#operationProfiling:
28a3cc
28a3cc
# replication Options - ReplSet settings
28a3cc
#replication:
28a3cc
28a3cc
# sharding Options - Shard settings
28a3cc
#sharding:
28a3cc