Bug 534253 (RHQ-1067) - make agent inventory sync faster
Summary: make agent inventory sync faster
Keywords:
Status: CLOSED NOTABUG
Alias: RHQ-1067
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: unspecified
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-06 06:28 UTC by John Mazzitelli
Modified: 2009-04-28 08:20 UTC (History)
0 users

Fixed In Version: 1.2
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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



Note You need to log in before you can comment on or make changes to this bug.