[openstack-dev] [nova][ceilometer] cputime value resets on restart/shutdown

Julien Danjou julien at danjou.info
Mon Aug 31 19:36:10 UTC 2015


On Mon, Aug 31 2015, gord chung wrote:

> i think that's the reason the bug is raised... that's not what cumulative
> means. by definition it should increase over each successive value.

Well in a perfect world it would not, but with computers and numbers
coded in bit it does.

The bug about that is https://bugs.launchpad.net/ceilometer/+bug/1061817
and is quite old.

> i'm not sure Gnocchi is where we should be fixing this as it really only
> (potentially) fixes it for Gnocchi and not for any of the other ways Ceilometer
> data can be consumed.

The ideal way is to send the data as it is collected and do the
treatment in the backend, otherwise you end up implementing the world in
Ceilometer.

> a proposed solution in bug and in a previous thread suggests that a 'delta'
> meter be built from cputime value libvirt provides which would better handle
> the reset scenario. that said, is there another option to truly have a
> cumulative meter?

Yes, the hackish way might be to convert those cumulative to delta with
a transfomer in the pipeline and be done with it. Though you'll probably
have data points missing on restart, which is not ultimate solution. As
soon as you start losing information in the Ceilometer pipeline by
transforming I'll stand and say "bad idea". :-)

So yes, you have to have a smart storage solution in the end.

-- 
Julien Danjou
// Free Software hacker
// http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150831/168a9337/attachment.pgp>


More information about the OpenStack-dev mailing list