You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Duncan Godwin <du...@cloudsoftcorp.com> on 2017/03/08 12:26:47 UTC

De-register failed nodes in DynamicCluster

Hi All,

I have a YAML blueprint with a DynamicCluster of entities which require
that I de-register failed entities with the remaining nodes (probably
though an ssh command). I have a ServiceReplacer but it just seems to add a
new entity.

I don't want to use the stop command to do this as the node may be stopped
without needing to be de-registered, the node itself may no longer be
reachable and the code should execute on the remaining nodes rather than
the failed one anyway. Does anyone know of a good way to achieve this?

Many thanks

Duncan

Re: De-register failed nodes in DynamicCluster

Posted by Duncan Godwin <du...@cloudsoftcorp.com>.
Thank you very much Svet! I shall give that strategy a go.

Many thanks

Duncan

On 8 March 2017 at 12:46, Svetoslav Neykov <
svetoslav.neykov@cloudsoftcorp.com> wrote:

> Hi Duncan,
>
> You can try the following:
>   * join the addresses of all the members in a sensor on the cluster
>   * subscribe to the sensor with InvokeEffectorOnSensorChange/
> InvokeEffectorOnCollectionSensorChange
>   * add a "SshCommandEffector" at the cluster with "executionTarget" set
> to "MEMBERS"
>
> Svet.
>
>
> > On 8.03.2017 г., at 14:26, Duncan Godwin <duncan.godwin@cloudsoftcorp.
> com> wrote:
> >
> > Hi All,
> >
> > I have a YAML blueprint with a DynamicCluster of entities which require
> > that I de-register failed entities with the remaining nodes (probably
> > though an ssh command). I have a ServiceReplacer but it just seems to
> add a
> > new entity.
> >
> > I don't want to use the stop command to do this as the node may be
> stopped
> > without needing to be de-registered, the node itself may no longer be
> > reachable and the code should execute on the remaining nodes rather than
> > the failed one anyway. Does anyone know of a good way to achieve this?
> >
> > Many thanks
> >
> > Duncan
>
>

Re: De-register failed nodes in DynamicCluster

Posted by Svetoslav Neykov <sv...@cloudsoftcorp.com>.
Hi Duncan,

You can try the following:
  * join the addresses of all the members in a sensor on the cluster
  * subscribe to the sensor with InvokeEffectorOnSensorChange/InvokeEffectorOnCollectionSensorChange
  * add a "SshCommandEffector" at the cluster with "executionTarget" set to "MEMBERS"

Svet.


> On 8.03.2017 г., at 14:26, Duncan Godwin <du...@cloudsoftcorp.com> wrote:
> 
> Hi All,
> 
> I have a YAML blueprint with a DynamicCluster of entities which require
> that I de-register failed entities with the remaining nodes (probably
> though an ssh command). I have a ServiceReplacer but it just seems to add a
> new entity.
> 
> I don't want to use the stop command to do this as the node may be stopped
> without needing to be de-registered, the node itself may no longer be
> reachable and the code should execute on the remaining nodes rather than
> the failed one anyway. Does anyone know of a good way to achieve this?
> 
> Many thanks
> 
> Duncan