On Fri, Jul 4, 2014 at 11:12 AM, Ryadh khsib <riadh.kh...@gmail.com> wrote:

> Hi Patrik,
> Reading this:
>
>> An ActorSystem can only be part of one cluster, and only once. Rejoining
>> or joining of two different clusters are not supported. Then the
>> ActorSystem must be stopped and started again to join the cluster.
>>
>> /Patrik
>>
>
> Do you confirm that for every Cluster an new ActorSytem should be created?
>

An ActorSystem is created locally, in the JVM of each machine. We often
refer to this as a cluster node, or a cluster member.
A Cluster is a set of nodes (actor systems) working together.


> We are using a singleton and router clusters within the same ActorSystem.
> Would you recommend to create 2 actor systems?
>

I don't understand what you mean with "singleton and router clusters", but
I assume that mean that you use Cluster Singelton
<http://doc.akka.io/docs/akka/2.3.4/scala/cluster-usage.html#Cluster_Singleton>
and Cluster Aware Routers
<http://doc.akka.io/docs/akka/2.3.4/scala/cluster-usage.html#Cluster_Aware_Routers>.
You can use these two features the same ActorSystem.

/Patrik


>
> Thanks,
> Ryadh
>
>
> On Friday, July 4, 2014 8:38:47 AM UTC+1, Patrik Nordwall wrote:
>>
>>
>>
>>
>> On Thu, Jul 3, 2014 at 10:28 PM, Eugene Dzhurinsky <jdev...@gmail.com>
>> wrote:
>>
>>> So you had one cluster consisting of all nodes, and then a network split
>>>> caused it to be split into two separate clusters?
>>>> That does not really have anything to do with seed nodes. Seed nodes
>>>> are only used as initial contact points when joining new nodes.
>>>>
>>>
>>> Hi!
>>>
>>> Let's assume there are 3 nodes - A, B and C. Node A is a seed node for B
>>> and C. So when cluster starts - B joins A and C joins A, then they gossip
>>> and then B knows about C and vise versa.
>>>
>> yes, then my understanding was correct
>>
>>>
>>> Now A is not reachable, so both B and C mark it as "quarantined". After
>>> A gets online - it doesn't know neither about B nor about C, and none of
>>> the nodes B and C will even try to restore the connections to A.
>>>
>> quarantine is because of downing: http://doc.akka.io/docs/akka/
>> 2.3.4/scala/cluster-usage.html#Automatic_vs__Manual_Downing
>>
>>>
>>> If A has some "actors" to be deployed on node B - then it will not be
>>> able to do so.
>>>
>>> The only way to resolve this seems to make A, B and C as "seed" nodes,
>>> so if any of then will "disconnect" - then after the connection is
>>> established (and threshold is not broken yet) they will re-join. But I'm
>>> not sure if there would be a delay in startup of node B - will it be marked
>>> as inaccessible?
>>>
>>
>> I repeat myself, this has nothing to do with seed nodes. Please re-read
>> my previous reply, and this section: http://doc.akka.io/
>> docs/akka/2.3.4/scala/cluster-usage.html#Joining_to_Seed_Nodes
>>
>> /Patrik
>>
>>
>>>   --
>>> >>>>>>>>>> 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 akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>>
>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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