mongodb creates 80+ files 2GB each while database is empty

后端 未结 2 748
灰色年华
灰色年华 2021-01-15 00:00

Background:

I set the replicaSet and initiated 3 instances (1 arbiterOnly) of mongod on localhost using different ports.

I haven noticed tha

2条回答
  •  执念已碎
    2021-01-15 00:48

    There are various command line parameters I have found to reduce the size of the empty database.

    Already mentioned:

    --oplogSize 
    

    Also:

    --smallfiles
    --nssize 
    

    The combination of all 3 parameters makes for an 18mb empty database (tested against MongoDB 64bit, Windows 7).

    http://docs.mongodb.org/manual/reference/program/mongod/

提交回复
热议问题