WARN: Trying to join member with wrong ActorSystem name, but was ignored, expected [X] but was [Y]
Hello Eric,
Is having the same actor system name required?
Yes, for a cluster to converge the cluster members should have the same actorsystem-name.
I like to think of it as: the ActorSystem being the “universe” in which Actors live, the cluster just allows them to live on different “planets” (nodes) (in that abstract universe).
When you look at an actor path it also helps to reason about it - “more left == more general”. So in akka.tcp://Cluster...@127.0.0.1:2552/system/cluster/core/daemon,
the things that have to equal for a Cluster to be able to join another ActorSystem are both the protocol used as well as the actorsystem-name; The host, port, and rest of the path can (and will) differ between nodes.
Relevant lines are: https://github.com/akka/akka/blob/master/akka-cluster/src/main/scala/akka/cluster/ClusterDaemon.scala#L392-L397
I noticed we were not very explicit about this requirement in the docs… Will try to make it more explicit!
I hope this helps though!
PS: Do you have an use-case in mind where you might need to join differently named actor systems into the same cluster?
--
>>>>>>>>>> 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 a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/XFmoSv6FNIs/unsubscribe.
To unsubscribe from this group and all its topics, 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.
I'm probably going to move away from having the launcher join the cluster because there is a lot of log noise when the launcher app completes and leaves the cluster.Ideally you could subscribe to cluster events without actually joining the cluster, from a launching or monitoring perspective.
--