|Replica Set with MongoDB on Linux||Chao||3/2/12 3:25 PM|
Started with command "./mongod --rest --replSet testSet"
Then in mongo run command "rs.initiate()"
in dbpath, MongoDB keeps generating local.* file, each is 2GB.
Is that normal? I don't have any operations yet, why there are so many
pre-allocate oplog files generated? Before I shut it down, 10 files
generated in about 10 minutes.
|unk...@googlegroups.com||3/2/12 3:59 PM||<This message has been deleted.>|
|Re: [mongodb-user] Replica Set with MongoDB on Linux||Scott Hernandez||3/2/12 5:06 PM|
These files are the oplog (a capped collection which is fixed size) which defaults to five percent of free space. It is used for replication is a requirement.
If you want to use more, or less, space you can use the oplogSize option as listed in --help and the docs.