whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satish Mittal <satish.mit...@gmail.com>
Subject Re: synchronize installation across services at cluster level
Date Mon, 12 Aug 2013 09:28:45 GMT
Hi,

Any thoughts/pointers?

Thanks in advance,
Satish


On Thu, Aug 8, 2013 at 12:24 PM, Satish Mittal <satish.mittal@gmail.com>wrote:

> Hi,
>
> Let's say I have my cluster topology like:
>
> whirr.instance-templates=1 service-A+service-B, 1 service-A+service-B
>
> In my scenario, service-B should first wait for all service-A instances to
> come up, so that I can create some tables and populate data on only one
> instance of service-B.
>
> For this purpose, I first need a callback after service-A has been
> installed on all cluster instances, so that I can perform certain one-time
> activities at that point. Do we already have such a callback in whirr
> interfaces? I checked out ClusterActionHandler interface, but my
> understanding is that it applies at role level on each instance. So
> bootstrap/configure/start/stop get called for each instance of service-A. I
> couldn't find a callback when all service-A instances are installed.
>
> Additionally, is it possible to synchronize installation/starting of
> service-B only after all instances of service-A are installed/started?
> Basically, I am looking for a DAG kind of dependency mechanism to be
> configured across services.
>
> Thanks,
> Satish
>
> --
> "The happiest of people don´t necessarily have the best of everything,
> they just make the most of everything that comes along their way."
>



-- 
"The happiest of people don´t necessarily have the best of everything, they
just make the most of everything that comes along their way."

Mime
View raw message