usage of InventoryStatus.DELETED

John Mazzitelli mazz at redhat.com
Mon Mar 14 18:36:17 UTC 2011


DELETED was also so we can uninventory very fast.

Before DELETED, if you would uninventory a platform, the UI was 
extremely slow and many times would timeout.

Uninventory now just does a bulk update to flip the status to DELETED 
and *poof* resources no longer show up in the UI and it is very fast.

Note that there is an async job that is supposed to actually delete 
resources (these jobs can take long to complete and Joe wrote it so it 
wouldn't tx timeout, knowing that this stuff can take a while).

the flag for this async delete job is a null agent.

come to think of it, I thought whenever a resource is flagged as DELETE 
status, the agent is also nulled out. Thus, now that I think about it, 
these resources should be removed at some point (losing audit, yes).


More information about the rhq-devel mailing list