Daniel Minnaar
Daniel Minnaar

Reputation: 6295

Why is MongoDB preallocating so many data files at once?

Our MongoDB is currently sitting at about 1.2TB. We have 2TB total disk space on the server, and within one evening it created a few 2GB data files, using up all the disk space and crashing the process.

When I looked at the data files, I noticed that it preallocates a few of these files every couple of days, at one point generating more than 140GB of files.

How can I control this?

Upvotes: 2

Views: 112

Answers (1)

vladzam
vladzam

Reputation: 5898

If you want to control the size of the generated data files you have the following options available to you when starting mongod:

Upvotes: 3

Related Questions