On 9/15/2015 3:12 PM, Heiko W.Rupp wrote:
> On 15 Sep 2015, at 19:52, Jay Shaughnessy wrote:
>> No. I think data should just live on until some TTL perhaps kicks in.
> That would work for metrics (out of the box).
> What about other data like alert trigger definitions?
> Or group memberships?
Perhaps we look at a reaper sort of approach where we look for "dead"
resources in inventory, based on some sort of criteria, and then perform
clean-up.
> I also recall from RHQ that we had a situation where a user was
> deploying my-super-app-v1.war and later my-super-app-v2.war,
> where both deployments are the same app and even with a different
> name just two different versions of the same resource and not
> different resources. Also in this case, the user wants all metrics,
> trigger definitions etc. to survive the deployment of v2.
You are right about this and I hadn't forgot about it. But this feature
is a b*tch. It was really hard in RHQ and may be nigh impossible in
Hawkular unless we basically do the same thing and start stripping
versions out of resource paths. Or maybe we're already doing that, I
don't know. It depends on whether the agent is using the path as-is from
wfly, which afaik is still using the artifact name in the path.
Some questions that come to mind:
- Should we wipe data when a server gets uninventoried?
- How can we prevent it from entering inventory directly after an
uninventory again?
- what states do we need (data wiping may take too long to be done
synchronously)?
- would users perhaps want a data dump to external storage before
wiping?
- How can we make sure that servers without that uuid can still be
identified even after rename (of the machine)?
- How can we make sure that servers without that uuid can still be
identified even when they are moved to a different pod