Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1258879

Summary: [RFE] Reduce nova-api load from ceilometer agents with instance metadata caching
Product: Red Hat OpenStack Reporter: Eoghan Glynn <eglynn>
Component: openstack-ceilometerAssignee: Eoghan Glynn <eglynn>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: urgent Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: jruzicka, jschluet, nbarcet, yeylon
Target Milestone: betaKeywords: FutureFeature
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/ceilometer/+spec/resource-metadata-caching
Whiteboard: upstream_milestone_liberty-2 upstream_definition_approved upstream_status_implemented
Fixed In Version: openstack-ceilometer-5.0.0-1.el7ost Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-07 21:05:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eoghan Glynn 2015-09-01 12:54:53 UTC
Currently the ceilometer compute & hardware agents impose much unnecessary load on the nova-api service by querying the instance metadata for every local instance on every polling cycle. This load has caused major problems for operators of ceilometer.

The instance metadata is required to decorate the more minimal instance representation retrieved directly from the hypervisor or SNMP, when constructing a classic ceilometer sample (which includes rich snapshotted metadata).

However much of this metadata is either static or very infrequently changing, so could easily be cached within the agent.

So the nova-api load could be significantly reduced by constraining the nova-api query to only report on the subset of instances for the current node that have changed since the last polling cycle (using the 'changes-since' query parameter).

Comment 5 Yurii Prokulevych 2016-02-12 08:51:28 UTC
Verified according test plan.
Packages: ceilometer*-5.0.2-1.el7ost.noarch

Comment 7 errata-xmlrpc 2016-04-07 21:05:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0603.html