Hello, this is probably a question for TypeSafe.
I am learning about Remote Actors via the Akka "Distributed Workers" tutorial, and I have a question about DistributedPubSubExtension. Hopefully, the answer can be added to the tutorial, and will help others learning this wonderful tool.
How do the Mediators on each machine in a cluster find each other? I can find no description in the documentation, or tutorial. The tutorial simply says
"The master actor is made available for both front end and workers by
registering itself in the DistributedPubSubMediator."
However, there is no description of the mechanism or how it is configured.
The documentation
http://doc.akka.io/docs/akka/2.2.0/contrib/distributed-pub-sub.html
also does not seem to contain a description of the configuration.
Finally, the application.conf file in the source code only contains this
akka {
actor.provider = "akka.cluster.ClusterActorRefProvider"
remote.netty.tcp.port=0
extensions = ["akka.contrib.pattern.ClusterReceptionistExtension"]
}
So, how does it work? How do the Mediators know where to look? How do I use this framework to set up Actors that run on a bunch of machines and find each other automatically?
Many thanks--
Peter
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
Hi Bjorn, thanks for the quick answerMaybe I don't understand how Clusters work...Let's say I have several machines distributed across the Internet. How do they find each other?I expect, somewhere, I have to give the IP address of at least one machine.Am I misunderstanding something?
Many thanksPeter
On Monday, November 4, 2013 3:14:38 PM UTC-5, Peter Wolf wrote:Hello, this is probably a question for TypeSafe.
I am learning about Remote Actors via the Akka "Distributed Workers" tutorial, and I have a question about DistributedPubSubExtension. Hopefully, the answer can be added to the tutorial, and will help others learning this wonderful tool.
How do the Mediators on each machine in a cluster find each other? I can find no description in the documentation, or tutorial. The tutorial simply says
"The master actor is made available for both front end and workers by
registering itself in the DistributedPubSubMediator."
However, there is no description of the mechanism or how it is configured.
The documentation
http://doc.akka.io/docs/akka/2.2.0/contrib/distributed-pub-sub.html
also does not seem to contain a description of the configuration.
Finally, the application.conf file in the source code only contains this
akka {
actor.provider = "akka.cluster.ClusterActorRefProvider"
remote.netty.tcp.port=0
extensions = ["akka.contrib.pattern.ClusterReceptionistExtension"]
}
So, how does it work? How do the Mediators know where to look? How do I use this framework to set up Actors that run on a bunch of machines and find each other automatically?
Many thanks
Peter
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
Thanks againP
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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/groups/opt_out.
>>>>>>>>>> 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.
Hi √iktor,
I did not mean a full activator sample, but I think a few more words
in the documentation on *how* to achieve getting multiple mediators to
work for a large set of topics and/or subscribers might be helpful
(instead of just mentioning that it is possible).
Is some sort of
sharding necessary? Can multiple concurrent mediators mediate
publishers/subscribers to the same topic or can a topic only be
subscribed via the same mediator it was published with?
etc. As far as
I understand, multiple roles will create disjoint sets of cluster
members, which will break the symmetry when subscribing to one or more
topics having the same characteristics.