Quantcast
Channel: Ask OpenStack: Q&A Site for OpenStack Users and Developers - Individual question feed
Viewing all articles
Browse latest Browse all 7

Answer by omar-munoz for Hi, i have installed ceilometer on my controller node and today I check that mongodb database size is 11 GB. I want to cleanup old data, how can I do ? There is a procedure/method ? Thanks. Salvo.

$
0
0
*Recreating the Ceilometer DB seems extreme to clean up data. *I believe TTL will only delete old records from this point on not historical records. Log in and see if the TTL modification actually decreased the size with the following commands. mongo -u ceilometer -p {PASSWORD} ceilometer show collections; db.stats() db.meter.stats() db.resource.stats() db.meter.getIndexes() db.resource.getIndexes() To configure TTL you’ll need to: update Ceilometer config on every controller node “/etc/ceilometer/ceilometer.conf” and set the “time_to_live” parameter to “86400” (1 day). or whatever period is suitable. Next step you need is to setup cron job for ceilometer-expirer script: run “crontab -e” in CLI, paste 0 0 * * * ceilometer-expirer --config-file /etc/ceilometer/ceilometer.conf and save. Then restart ceilometer-collector service on all controller nodes: You can also manually remove a meter post a certain date with this command db.meter.remove({"timestamp":{"$lt":ISODate("2015-03-31T19:00:40")}})

Viewing all articles
Browse latest Browse all 7

Trending Articles