Replica Set with MongoDB on Linux

84 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

Chao

غير مقروءة،
02‏/03‏/2012، 6:25:16 م2‏/3‏/2012
إلى mongodb-user
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.

تم حذف الرسالة.

Scott Hernandez

غير مقروءة،
02‏/03‏/2012، 8:06:17 م2‏/3‏/2012
إلى mongod...@googlegroups.com

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.

--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة