You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Mike Zaccardo <mi...@cloudsoftcorp.com> on 2016/09/30 15:43:57 UTC
Children of VanillaSoftwareProcess and service.isUp
Hi,
I have a blueprint that consists of a `VanillaSoftwareProcess` (VSP) with a
number of children entities. If any of these children go on fire, the
parent VSP still reports as healthy, but I'd really like it to go on fire
as well. In other words, I want the parent VSP to report as healthy if and
only if all of its children are also healthy. Is this achievable in YAML /
how do I go about doing that?
Here is an example blueprint which showcases this issue:
https://gist.github.com/mikezaccardo/227d00f0a90ed46ad7350b067e416bf4. Once
deployed, you can cause a child entity to go on fire simply by removing the
file that is checked. At this point even though the child entity is on fire
the, parent will remain green.
Thanks,
Mike
Re: Children of VanillaSoftwareProcess and service.isUp
Posted by Andrea Turli <an...@cloudsoftcorp.com>.
Hi Mike,
VanillaSoftwareProcess doesn't look after the status of the children by
default.
You can try by adding a ComputeServiceIndicatorsFromChildrenAndMembers
enricher like below:
brooklyn.enrichers:
- type:
org.apache.brooklyn.core.entity.lifecycle.ServiceStateLogic$ComputeServiceIndicatorsFromChildrenAndMembers
brooklyn.config:
uniqueTag: your-unique-tag
enricher.aggregating.fromChildren: true
enricher.aggregating.fromMembers: false
enricher.suppressDuplicates: true
to the parent of your blueprint. This will set parent on-fire in case one
of the children goes on-fire.
HTH,
Andrea
Il 30/set/2016 17:44, "Mike Zaccardo" <mi...@cloudsoftcorp.com> ha
scritto:
> Hi,
>
> I have a blueprint that consists of a `VanillaSoftwareProcess` (VSP) with a
> number of children entities. If any of these children go on fire, the
> parent VSP still reports as healthy, but I'd really like it to go on fire
> as well. In other words, I want the parent VSP to report as healthy if and
> only if all of its children are also healthy. Is this achievable in YAML /
> how do I go about doing that?
>
> Here is an example blueprint which showcases this issue:
> https://gist.github.com/mikezaccardo/227d00f0a90ed46ad7350b067e416bf4.
> Once
> deployed, you can cause a child entity to go on fire simply by removing the
> file that is checked. At this point even though the child entity is on fire
> the, parent will remain green.
>
> Thanks,
> Mike
>