losing meters when mongodb unavailable

Asked by Tomasz Wanczyk

Hi,

Is there some way to prevent from losing meters when mongodb (dont have any experience with other dbs with ceilo) is unavailable. I have tested swift and sure it happens with storage.objects.incoming.bytes and outgoing.

Question information

Language:
English Edit question
Status:
Solved
For:
Ceilometer Edit question
Assignee:
No assignee Edit question
Solved by:
Doug Hellmann
Solved:
Last query:
Last reply:
Revision history for this message
Doug Hellmann (doug-hellmann) said :
#1

Do you mean you want to store the data somewhere other than mongo, or that you want ceilometer to not process the data when mongo is not available?

Revision history for this message
Tomasz Wanczyk (twanczyk) said :
#2

Yes, ceilometer-collector shouldnt process the data. I think work should be done by rabbit in this situation.
The goal is to save meters when mongo is unavailable. As soon as mongo will back collector should save meters in mongo.

Revision history for this message
Best Doug Hellmann (doug-hellmann) said :
#3

If you shut down the collector before shutting down mongo you'll get this behavior now. I don't see is changing the way the collector works to deal with this explicitly.

Revision history for this message
Tomasz Wanczyk (twanczyk) said :
#4

Thanks Doug Hellmann, that solved my question.