Bug 534253 (RHQ-1067)

Summary: make agent inventory sync faster
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Plugin ContainerAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Improvement
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1067
Whiteboard:
Fixed In Version: 1.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Mazzitelli 2008-11-06 06:28:00 UTC
I have seen the agent's inventory sync go very slow.

I had an agent with about 180 or so resources.  I started the agent clean (nothing in /data directory; inventory.dat was gone). It took about 10 minutes for the agent to complete the sync - all that time, the agent showed red in the UI so this will be confusing to people thinking they started the agent but its not turning green within a minute or two from startup.

We need to optimize the inventory sync so it goes faster.

Comment 1 Joseph Marques 2009-04-28 08:20:17 UTC
this was fixed for 1.2 release.  the old algorithm used to be O(N) where N was the number of nodes in the tree for that platform.  today's inventory sync is O(D) where D is the depth of the resource tree.

also, instead of creating and delivering measurement schedules one resource at a time, they are also bulk inserted.  alert template creation has been moved fully back to the server side.

Comment 2 Red Hat Bugzilla 2009-11-10 20:23:11 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1067