收到客户端的数据后的有效性检查
--profile arg 0=off 1=slow, 2=all
--quota limits each database to a certain number of files (8 default)
--quotaFiles arg number of files allower per db, requires --quota
--rest turn on simple rest api
打开其余简单的API www.2cto.com
--repair run repair on all dbs
启动时修复所有数据库
--repairpath arg root directory for repair files - defaults to dbpath
修复文件的根目录 - 默认取自--dbpath参数
--slowms arg (=100) value of slow for profile and console log
到profile和终端的日志延迟毫秒数
--smallfiles use a smaller default file size
使用一个较小的默认文件大小
--syncdelay arg (=60) seconds between disk syncs (0=never, but not recommended)
同步到磁盘的间隔秒数(默认:60秒)(0=从不,但不推荐)
--sysinfo print some diagnostic system information
--upgrade upgrade db if needed
升级DB,如果需要的话
Replication options:
复制选项
--fastsync indicate that this instance is starting from a dbpath snapshot of the repl peer
表明,这个实例是从一个REPL同行DBPATH快照开始
--autoresync automatically resync if slave data is stale
如果从结点的数据是陈旧的就自动重新同步
--oplogSize arg size limit (in MB) for op log
操作日志的大小(单位:MB)
Master/slave options:
主/从选项 www.2cto.com
--master master mode
主模式
--slave slave mode
从模式
--source arg when slave: specify master as
当为从结点时:指定主结点的位置
--only arg when slave: specify a single database to replicate
当为从结点时:指定需要复制的数据库,不是全面都复制
--slavedelay arg specify delay (in seconds) to be used when applying master ops to slave
指定从节点同步主节点oplog的延迟(单位:秒)
Replica set options:
副本设置的选项
--replSet arg arg is [/]
Sharding options:
分片选项 www.2cto.com
--configsvr declare this is a config db of a cluster; default port 27019; default dir /data/configdb
声明这是一个集群的配置服务器;默认端口 27019;默认目录 /data/configdb
--shardsvr declare this is a shard db of a cluster; default port 27018
声明这是一个集群的分片服务器;默认端口: 27018
--noMoveParanoia turn off paranoid saving of data for moveChunk. this is on by default for now, but default will switch