MongoDB Mongod Parameter explanation

Source: Internet
Author: User
Tags unix domain socket

Basic Configuration
--------------------------------------------------------------------------------
--quiet# Quiet Output
--port arg# Specify the service port number, default ports 27017
--BIND_IP arg# bind service IP, if bind 127.0.0.1, then only native access, do not specify default local all IP
--logpath arg# Specifies the MongoDB log file, note that the specified file is not a directory
--logappend# writing the log using the Append method
--pidfilepath arg# The full path of the PID file, if not set, there is no PID files
--keyfile the full path of the private key of the arg# cluster, valid only for replica Set schemas
--unixsocketprefix arg# UNIX domain socket replacement directory, (default is/tmp)
--fork# running MongoDB as a daemon, creating a server process
--auth# Enable validation
--cpu# periodically displays CPU utilization and iowait for CPUs
--dbpath arg# specifying the database path
--diaglog arg# diaglog Options 0=off 1=w 2=r 3=both 7=w+some reads
--directoryperdb# setting each database will be saved in a separate directory
--journal# Enable logging option, MONGODB data operation will be written to the file in the Journal folder
--journaloptions arg# Enable log diagnostic options
--ipv6# Enable IPV6 option
--jsonp# allow JSONP form to be accessed via HTTP (with security implications)
--maxconns arg# Maximum number of simultaneous connections default 2000
--noauth# does not enable validation
--nohttpinterface# shut down HTTP interface, 27018 port access is turned off by default
--noprealloc# Disabling data file pre-allocation (often impacting performance)
--noscripting# Disabling the scripting engine
--notablescan# table Scan not allowed
--nounixsocket# Disabling UNIX socket snooping
--nssize Arg (=16) # Set the message database. ns File Size (MB)
--objcheck# in the receipt of customer data, check the validity of
--profile arg# file Parameters 0=off 1=slow, 2=all
--quota# limit the number of files per database, set the default to 8
--quotafiles arg# number of files Allower per db, requires--quota
--rest# open a simple rest API
--repair# repair all databases run repair on all DBS
--repairpath the directory of files generated by the arg# repair Library, which defaults to the directory name DBPath
--slowms Arg (=100) # Value of slow for profile and console log
--smallfiles# using a smaller default file
--syncdelay Arg (=60) # Number of seconds data written to disk (0=never, not recommended)
--sysinfo# Print some diagnostic system Information
--upgrade# If you need to upgrade the database


* Replicaton Parameters
--------------------------------------------------------------------------------
--fastsync# from a dbpath to enable the Copy service from the library, the DBPath database is a snapshot of the main library and can be used to quickly enable synchronization
--autoresync# if synchronizing data from the library to the main library is much worse, automatic resynchronization
--oplogsize arg# Setting the size of the Oplog (MB)


* Master/slave parameters
--------------------------------------------------------------------------------
--master# Main Library Mode
--slave# from Library mode
--source arg# from the library port number
--only arg# specifying a single database copy
--slavedelay arg# Setting the delay time for synchronizing the main library from the library


* Replica set (replica set) option:
--------------------------------------------------------------------------------
--replset arg# Set the replica set name


* sharding (Shard) option
--------------------------------------------------------------------------------
--configsvr# declaration This is a clustered config service, default port 27019, default directory/data/configdb
--shardsvr# declares that this is a clustered shard, the default port 27018
--nomoveparanoia# off paranoid for movechunk data save

Thank you: Http://www.uspcat.com/forum.php?mod=viewthread&tid=7722&extra=page

MongoDB Mongod Parameter explanation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.