From 3f6acb07c292cdfeea31f02872d35ee8b65fc8c8 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Sat, 18 Jan 2014 14:17:33 -0500 Subject: [PATCH] Add a note highlighting MongoDB disk requirements Added a note to highlight the disk requirements of MongoDB when database journaling is enabled (default). Provided instructions for switching to smaller files and a link to instructions for disabling journaling entirely. Change-Id: Ie7410018ce664cddd66309df8d1b1bb17abdfcbb Closes-Bug: #1253214 --- .../section_ceilometer-install.xml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/doc/install-guide/section_ceilometer-install.xml b/doc/install-guide/section_ceilometer-install.xml index c57a303eb2..f1eac1b34e 100644 --- a/doc/install-guide/section_ceilometer-install.xml +++ b/doc/install-guide/section_ceilometer-install.xml @@ -33,6 +33,40 @@ # yum install mongodb-server mongodb # zypper install mongodb # apt-get install mongodb + + + By default MongoDB is configured to create several 1 GB files + in the /var/lib/mongodb/journal/ directory + to support database journaling. + + + If you need to minimize the space allocated to support database + journaling then set the configuration + key to true in the /etc/mongodb.conf + configuration file. This will reduce the size of each journaling file + to 512 MB. + + + As the files are created the first time the MongoDB service starts + you must stop the service and remove the files for this change to + take effect: + + # service mongodb stop +# rm /var/lib/mongodb/journal/j._0 +# rm /var/lib/mongodb/journal/prealloc.1 +# rm /var/lib/mongodb/journal/prealloc,2 +# service mongodb start + + For more information on the + configuration key refer to the MongoDB documentation at + . + + + For instructions detailing the steps to disable database journaling + entirely refer to + . + + Configure MongoDB to make it listen on the controller public IP