D
D
Dmitry Labutin2014-08-15 08:18:37
MongoDB
Dmitry Labutin, 2014-08-15 08:18:37

Why did MongoDB 2.6 use disk space grow indefinitely when using TTL ?

It was MongoDB 2.4.9
There is a large collection in which TTL is used for documents (we store them for 24 hours) - docs.mongodb.org/manual/tutorial/expire-data
Everything is great. On average, the same number of new documents came in per day and left by TTL. The files on the disk with the collection occupied 80 gigs and IMPORTANT!!! their size did not grow with time!
MongoDB was updated to version 2.6.3 on July 15.
And since that day (Zabix monitors) the used disk space has been constantly growing! It's good that when the threshold value is reached, the SMS came on time. Managed to respond.
Actually the question is: did something change in 2.6.3? No one has ever heard of such behavior. And is it possible to return the behavior as it was in 2.4.9?
PS Now we get out like this. We have two equivalent servers in the replica set. On secondary, we delete the entire database. He pulls it out from primary. We change roles and do the same on the second node.

Here is a chart from Zabix by place used
0f308c60a8d041d7aaca2fe94dbdef6d.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question