I have installed mongodb and meteor on an Amazon Instance EC2. my main challenge is that the container is increasing in size everyday and am running in short of disk space. I really need your assistance here, am running in short of disk space now.
Well, is your app itself using a lot of disk space?
Should you be using a volume where you are not right now?
Can you provide a minimally reproducible example?
Hi Nathan. Am running meteor and mongodb. They are not occupying any significant space. If i check the container size its only 309MB, and the only running container is mongodb. What do you mean to say can you produce minimum reproducible example. Please help to get you this inormation. Am newbie in this.
It is probably mongodb log keeps growing. By default, mongodb does not rotate the log. See mongodb log rotate. You would need to send the SIGUSR1 signal to mongod.
You could write a script that sends the rotate signal to mongod and remove the old log files. mongologrotate.sh is a simple reference script. You could write a simple cron job or script to call it periodically like every 30 minutes.