mongodb journal is rapidly growing in size
Hi,
I have a small installation of 2 EAP245v3 and 1 EAP225v3 outdoor with typically around 10 Clients connected.
This setup has been running for about week.
I notice that the data folder of the Omada Controller is constantly growing: data/db/journal is already around 450MB big.
History Data Retention is currently set to 365 days.
Is it normal that this files grows so rapidly for such a small deployment?
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
I read a bit more about this topic. It is apparently normal, that the journal file is constantly growing (it's append only). It will reach up to 1GB in size and there can be up to 3 journal files. mongod then starts deleting the oldest journal file.
I also noticed, that when I restart mongod, it will also clean up the journal files.
So I'm no longer worried. I can spare 3GB of disk space. I was just worried, that at the rate of journal file growing it would fill up my disk eventually, which apparently is not going to happen. So case closed.
- Copy Link
- Report Inappropriate Content
Please set the History Data Retention as 7 days, it means the logs beyond 7 days will be clreaed.
Note: History Data Retention will not take effect right away, so you should wait several hours to check the result.
- Copy Link
- Report Inappropriate Content
@forrest That doesn't really answer my question.
- Copy Link
- Report Inappropriate Content
In the data file, there are configuration of the Controller, the settings, client statistics, etc.
We can clear most of the information by setting the History Data Retention as 7 days.
- Copy Link
- Report Inappropriate Content
@forrest On a related note: is there a chance mongodb is going to be upgraded or will it stay at 2.2.2 (which is from 2012, heavily outdated and no longer supported by mongodb upstream)
- Copy Link
- Report Inappropriate Content
I read a bit more about this topic. It is apparently normal, that the journal file is constantly growing (it's append only). It will reach up to 1GB in size and there can be up to 3 journal files. mongod then starts deleting the oldest journal file.
I also noticed, that when I restart mongod, it will also clean up the journal files.
So I'm no longer worried. I can spare 3GB of disk space. I was just worried, that at the rate of journal file growing it would fill up my disk eventually, which apparently is not going to happen. So case closed.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 1353
Replies: 5
Voters 0
No one has voted for it yet.