Ceilometer high availability with mongodb replica set?

asked 2015-05-18 06:43:12 -0600

zsolt-krenak gravatar image

updated 2015-05-18 06:43:43 -0600

Hi All!

I'm looking for ways to create a 3 node Ceilometer active/active central agent HA with mongodb replica set. I found reference for mongodb_replica_set parameter in ceilo config guide, but not real reference, or example how ceilometer and mongodb should be configured for this. Has anyone tried this? I'm trying to avoid mongodb sharding beacuse of it's big hardware demand and mysql still doesn't seem to be a proper solution for Ceilometer considering performance issues. Using replica set seems to be the golden middle way, but I can't find any info how it shoud be used.

Thanks for any help in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-19 01:46:29 -0600

Tobias Urdin gravatar image

updated 2015-05-19 01:46:39 -0600


To use multiple Ceilometer central agents you must provide a Redis or Memcache backend and configure that in the backend_url in ceilometer.conf. Ceilometer will then talk to each other over the backend and partition themselves into smaller groups, i.e one handles CPU monitoring, another RAM etc. This enabled the agents to have heartbeat checking over the backend and can therefore partition their workload.

What you are looking for is a load balanced MongoDB replica set where you would connect to the VIP. Since MongoDB is the recommended backend right now you should consider setting up proper values for time_to_live in ceilometer.conf so that you don't store too much data. This is handled by the ceilometer-expirer agent which supports MongoDB.

Other points I recommend is dumping the MongoDB and archiving data instead of always expiring it. From what I know it is possible to upgrade from a Replica Set to Sharding if you are to grow in the future.

This is mostly based on the Juno release and for future reference you should research about the Gnocchi project which enabled far better scaling than what Ceilometer has natively.

When I did research for our Ceilometer setup I collected some good links, see below.






I hope this will help you.

Best regards

edit flag offensive delete link more


Thanks for the help and the information, seem pretty useful!

zsolt-krenak gravatar imagezsolt-krenak ( 2015-05-19 02:06:31 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-18 06:43:12 -0600

Seen: 1,412 times

Last updated: May 19 '15