QnaList > Groups > Akka-User > Apr 2016
faq

[akka-user] Why Should Nodes Usually Not Include Themselves In Seed Node List?

Hi, when discovering seed nodes dynamically, why is it important for every 
node (except for one) to not include itself in the seed node list?  How 
could split brain happen if all nodes have the same list order of all seed 
nodes?
From what I understand, split-brain can only happen if multiple nodes put 
themselves first in the seed node list, is that correct?
I ask because when doing static configuration, it's common for all nodes to 
have the same seed node list, which means all seed nodes would have 
themselves in the list.  And that seems to be common, recommended practice.
If doing dynamic discovery of seed nodes, is it okay for all nodes to have 
the same list of seed nodes, if we can guarantee they are all in the same 
order? From reading the docs, I gather that after sending a message to all 
seed nodes, if none respond, then it will try to join the first node in the 
list, which wouldn't work if the first node in the list isn't itself.
We are considering using the AWS SDK by not querying the ASG for its 
instance list until the cloudformation stack says it is complete, which 
should guarantee that all nodes trying to join the cluster will get the 
same list of instances in the ASG.  Then we can guarantee that all nodes 
would order the nodes the same - any reason this wouldn't work?
Thanks,
Curt
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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

asked Apr 7 2016 at 12:21

Curt Siffert 's gravatar image



1 Replies for : [akka-user] Why Should Nodes Usually Not Include Themselves In Seed Node List?
It's only the first node in the seed nodes list that is special. It's only
that one that will join itself to bootstrap the cluster, after it has tried
joining the other nodes.
Sorting is fine.
For the AWS part you might get something from this blog post:
http://chrisloy.net/2014/05/11/akka-cluster-ec2-autoscaling.html
Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw
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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

answered Apr 8 2016 at 09:04

Patrik Nordwall 's gravatar image


Related discussions

Tagged

Group Akka-user

asked Apr 7 2016 at 12:21

active Apr 8 2016 at 09:04

posts:2

users:2

Akka-dev

Akka-user

©2013 QnaList.com