On Fri, Jan 9, 2015 at 11:55 AM, Konrad Malawski <
[email protected]> wrote:

> Hi Bourne,
> automatic joining keep retrying until successful.
>
> Since you have a very specific way you want this to happen, you should
> drive the joining programatically,
> refer to
> http://doc.akka.io/docs/akka/current/scala/cluster-usage.html#joining-to-seed-nodes
>  for
> details on how to go about this.
>

I have another suggestion.
Setup a Cluster listener
<http://doc.akka.io/docs/akka/2.3.8/scala/cluster-usage.html#Subscribe_to_Cluster_Events>,
and if you don't receive MemberUp for Cluster(system).selfAddress within
your desired timeout you shutdown.

Cheers,
Patrik


>
> —
> Cheers,
> Konrad Malawski
> <http://typesafe.com>
>
> From: Bourne Toulouss <[email protected]>
> <[email protected]>
> Reply: [email protected] <[email protected]>>
> <[email protected]>
> Date: January 9, 2015 at 9:56:06 AM
> To: [email protected] <[email protected]>>
> <[email protected]>
> Subject:  [akka-user] Akka Cluster node automatically joining.
>
>  Hi all,
> At the moment, i have a java application with akka that uses master and
> slave architecture.
> masters and workers starts randomly.
> I want it so if no master's been started yet, then worker will tryto join
> the cluster with seed nodes as the nodes that the masters reside for a
> number of times, then after a number of retries, i want to shut down the
> jvm of worker .
> I've looked over the docs and saw the seed-node-timeout and
> retry-unsuccessful-join-after,  but that doesnt do anything about the
> times  of retries only the duration of the retry....
>  what would you suggest me do in this case.
>  Thank you in advanced for your help.
> Cheers,
> Bourne.
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to