Hello Ekaterina, Some links for you:
A discussion on how to deal with seed nodes and joining the cluster when the cluster might not have any of the original nodes left over time: https://groups.google.com/forum/#!searchin/akka-user/seed$20nodes/akka-user/rKS9jnaFvv8/_1ulsZQvfX0J The cluster docs also mentions a bit about programmatic joining using some kind of service discovery: http://doc.akka.io/docs/akka/2.4.0-RC1/scala/cluster-usage.html#Joining_to_Seed_Nodes For the actual workload distribution, you could take a look at: http://doc.akka.io/docs/akka/2.4.0-RC1/scala/howto.html#balancing-workload-across-nodes and http://doc.akka.io/docs/akka/2.4.0-RC1/scala/howto.html#Work_Pulling_Pattern_to_throttle_and_distribute_work__and_prevent_mailbox_overflow And se if those cover what you want to do or at least give you inspiration. Good luck! -- Johan Andrén Typesafe - Reactive apps on the JVM Twitter: @apnylle On Friday, August 28, 2015 at 7:51:48 AM UTC+2, Ekaterina Tsapaeva wrote: > > Hi All, > > I'm looking for a best way to implement an akka cluster that could process > some simple tasks. > The requirements are: > > 1. We're starting several nodes and they create a new cluster > 2. Each time we (admin or some external system) see that load on the > cluster is too high, we start additional node inside our network (that is > not known for initial cluster nodes) > 3. Node should automatically join the cluster. Node do not know about > other nodes in the cluster yet, so that it should send some broadcast > message or something like that. I'm not sure what is akka common approach > here. > 4. Nodes could be stopped/crashed at any time and we can not use some > initial configuration (e.g. seed nodes) in order to join the cluster > > What is a good way to implement that with akka? > > Thanks! > -- >>>>>>>>>> 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.
