Bug 536479 (RHQ-825) - change alert cache to lock on a per agent basis
Summary: change alert cache to lock on a per agent basis
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-825
Product: RHQ Project
Classification: Other
Component: Alerts
Version: 1.1pre
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-11 14:31 UTC by Joseph Marques
Modified: 2009-02-11 14:24 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Joseph Marques 2008-09-11 14:31:00 UTC
today, the alerts cache locks on a single global lock.  this is unnecessary as there is only concurrent contention on a per-agent level.  thus, for improved performance, especially during times of loading/reloading/unloading, make sure cache activities lock only as much as necessary.

Comment 1 Joseph Marques 2008-09-11 14:54:56 UTC
pushing out to 1.2 - although changing this strategy wouldn't be hard and could easily be done in the 1.1 timeframe, i'm thinking a better solution would be to use a cache-per-agent mechanism.  instead of having one large cache for each server, we have one central cache manager that creates and destroys smaller caches.  each small cache would be responsible for load/reloading ONLY elements that are for a particular agent (being managed by that server).  then, instead of having to worry about implementing a cache purge mechanism, the entire cache can be thrown away and recreated as necessary.

Comment 2 Joseph Marques 2009-02-09 01:36:28 UTC
rev2964 - separate alert cache into global and agent-specific segments; 
this ensures that alerts will not be missing if backfills change the resource availability (as opposed to an AvailabilityReport); 
this ensures that alerts will not be missed if agents are not connected to the cloud when an operation is executed; 
locks are now obtained on a fine-grained, agent-by-agent basis; 

Comment 3 Red Hat Bugzilla 2009-11-10 21:17:40 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-825



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