'param option'에 해당되는 글 1건

  1. Mongodb configuration option

Mongodb configuration option

몽고DB에 옵션들이 어떤게 있을까? 아래의 경로의 소스를 보면 대략 보인다. 슬슬 mongo.conf 파일에 아래의 옵션들을 넣고 테스트나 해봐야겠다. ㅋㅋㅋ

\mongodb-src-r2.2.0-rc0\src\mongo\db\db.cpp

http://docs.mongodb.org/manual/reference/configuration-options/
http://docs.mongodb.org/manual/administration/configuration/


    StringBuilder dbpathBuilder;
    dbpathBuilder << "directory for datafiles - defaults to " << dbpath;

    general_options.add_options()
    ("auth", "run with security")
    ("cpu", "periodically show cpu and iowait utilization")
    ("dbpath", po::value() , dbpathBuilder.str().c_str())
    ("diaglog", po::value(), "0=off 1=W 2=R 3=both 7=W+some reads")
    ("directoryperdb", "each database will be stored in a separate directory")
    ("ipv6", "enable IPv6 support (disabled by default)")
    ("journal", "enable journaling")
    ("journalCommitInterval", po::value(), "how often to group/batch commit (ms)")
    ("journalOptions", po::value(), "journal diagnostic options")
    ("jsonp","allow JSONP access via http (has security implications)")
    ("noauth", "run without security")
    ("nohttpinterface", "disable http interface")
    ("nojournal", "disable journaling (journaling is on by default for 64 bit)")
    ("noprealloc", "disable data file preallocation - will often hurt performance")
    ("noscripting", "disable scripting engine")
    ("notablescan", "do not allow table scans")
    ("nssize", po::value()->default_value(16), ".ns file size (in MB) for new databases")
    ("profile",po::value(), "0=off 1=slow, 2=all")
    ("quota", "limits each database to a certain number of files (8 default)")
    ("quotaFiles", po::value(), "number of files allowed per db, requires --quota")
    ("repair", "run repair on all dbs")
    ("repairpath", po::value() , "root directory for repair files - defaults to dbpath" )
    ("rest","turn on simple rest api")
#if defined(__linux__)
    ("shutdown", "kill a running server (for init scripts)")
#endif
    ("slowms",po::value(&cmdLine.slowMS)->default_value(100), "value of slow for profile and console log" )
    ("smallfiles", "use a smaller default file size")
    ("syncdelay",po::value(&cmdLine.syncdelay)->default_value(60), "seconds between disk syncs (0=never, but not recommended)")
    ("sysinfo", "print some diagnostic system information")
    ("upgrade", "upgrade db if needed")
    ;

#if defined(_WIN32)
    CmdLine::addWindowsOptions( windows_scm_options, hidden_options );
#endif

    replication_options.add_options()
    ("oplogSize", po::value(), "size to use (in MB) for replication op log. default is 5% of disk space (i.e. large is good)")
    ;

    ms_options.add_options()
    ("master", "master mode")
    ("slave", "slave mode")
    ("source", po::value(), "when slave: specify master as ")
    ("only", po::value(), "when slave: specify a single database to replicate")
    ("slavedelay", po::value(), "specify delay (in seconds) to be used when applying master ops to slave")
    ("autoresync", "automatically resync if slave data is stale")
    ;

    rs_options.add_options()
    ("replSet", po::value(), "arg is [/]")
    ;

    sharding_options.add_options()
    ("configsvr", "declare this is a config db of a cluster; default port 27019; default dir /data/configdb")
    ("shardsvr", "declare this is a shard db of a cluster; default port 27018")
    ("noMoveParanoia" , "turn off paranoid saving of data for moveChunk.  this is on by default for now, but default will switch" )
    ;

    hidden_options.add_options()
    ("fastsync", "indicate that this instance is starting from a dbpath snapshot of the repl peer")
    ("pretouch", po::value(), "n pretouch threads for applying replicationed operations") // experimental
    ("command", po::value< vector >(), "command")
    ("cacheSize", po::value(), "cache size (in MB) for rec store")
    ("nodur", "disable journaling")
    // things we don't want people to use
    ("nohints", "ignore query hints")
    ("nopreallocj", "don't preallocate journal files")
    ("dur", "enable journaling") // old name for --journal
    ("durOptions", po::value(), "durability diagnostic options") // deprecated name
    // deprecated pairing command line options
    ("pairwith", "DEPRECATED")
    ("arbiter", "DEPRECATED")
    ("opIdMem", "DEPRECATED")
   


'Etc' 카테고리의 다른 글

MongoDB Use Cases  (0) 2012.08.27
Sizing Up the TempDB Database  (0) 2012.08.23
MongoDB performance SSDs vs Spindle SAS Drives  (0) 2012.08.07
MongoDB visual studio 2010에서 빌드하기  (0) 2012.08.03
mongodb c++ lib WriteConcen  (0) 2012.07.30