Comment 1 for bug 1749954

Revision history for this message
James Page (james-page) wrote : Re: Heat autoscaling with gnocchi based aodh alarms requires use of naive metadata setting with ceilometer

See Ocata release notes for Ceilometer:

  https://docs.openstack.org/releasenotes/ceilometer/ocata.html

"If you are using Gnocchi as backend it’s strongly recommended to switch [compute]/instance_discovery_method to libvirt_metadata. This will reduce the load on the Nova API especially if you have many compute nodes."

However if you use the sample heat autoscaling template from:

  https://github.com/openstack/heat-templates/blob/master/hot/autoscaling.yaml

which includes the use of aodh with gnocchi based alarms, if ceilometer compute agents are configured with the default [compute]/instance_discovery_method @ Ocata, metadata is not retrieved by the agent and as a result the attribute is never set on the instance resource records in gnocchi.

Switching to naive resolves this issue, however it obviously generates load on the Nova API for metadata retrieval.