How to check mongodb gearbox in shutter mode

I have a scaled openhift application that uses 1 gear for tomcat7 and 1 gear for mongodb. Is there a way to check how much space is left for the Mongodb mechanism. It is assumed that it will contain 1 GB of memory, but when the size of my dB reaches 200 MB, it will stop saving new data.

+4
source share
2 answers

You can use rhc app show <appname> --gears quotato see how many repositories are used in each transmission. You can also use ssh for your mongodb equipment and see what takes up so much space, but it is possible: https://help.openshift.com/hc/en-us/articles/202186004-Apparent-excessive-disk-usage-by -MongoDB

+2
source

My hunch about your problem is how mongodb grabs space when it needs to be expanded. I think, but not sure of the exact algorithm, that it will take up twice as much space as it just requested. So, for example, as soon as he needs to expand beyond 400, he will ask for an additional 800, giving you 1.2 concerts.

To find out how much disk space you are using, you can run this command:

rhc app show {appname} -gears quota​​p >

+1

All Articles