Questions tagged [akka-cluster]

Akka cluster is a new (2.1+) functionality that allows one to build cluster capabilities on top of the Akka middleware.

436 questions
43
votes
3 answers

Discovery of Akka actors in cluster

I’ve been trying to wrap my head around the concepts of Akka and actor-based systems recently. While I have a pretty good understanding of the Akka fundamentals by now I’m still struggling with a few things when it comes to clustering and remote…
Lunikon
  • 3,301
  • 4
  • 21
  • 20
30
votes
2 answers

Difference between Clustering and Remoting in Akka

I have developed my application with Akka on a single JVM. Now I want to distribute the workload across many machines. I've started to read the documentation and got confused. There are two ways of making Akka app to be distributed by clustering…
almendar
  • 1,793
  • 12
  • 22
17
votes
1 answer

akka cluster seed nodes give error: dropping message for non-local recipient

I'm trying to create a basic akka cluster on a Win 7 machine from this documentation: http://doc.akka.io/docs/akka/snapshot/scala/cluster-usage.html and I'm getting an error when I run the seed nodes (more on them…
Adrian
  • 5,416
  • 7
  • 45
  • 78
16
votes
4 answers

Alternatives to JGroups

I want to create a distributed applications on JVM which has a number of nodes, and need a library which allow me to: Manage cluster/grid membership, i.e. I want to get notifications on leave/join Manage messages between cluster members I have…
Konstantin Solomatov
  • 9,752
  • 6
  • 52
  • 83
13
votes
3 answers

Akka Pattern - Actor tree, reply to original source

This is a design question; Say I have a tree of actors which do a bunch of processing. The processing is kicked off by a client/connection actor (i.e. the tree is the server). Eventually the client actor wants a response. I.e. I have an actor…
NightWolf
  • 7,343
  • 9
  • 64
  • 115
12
votes
1 answer

How to configure downing in akka cluster when a singleton is present

I read in Akka's documentation that when using cluster singleton one should avoid using automatic downing. I don't understand how should downing be configured in that case. I understand that I may subscribe to cluster membership events and plan my…
Mizh
  • 361
  • 2
  • 11
12
votes
1 answer

Akka cluster-sharding: Can Entry actors have dynamic props

Akka Cluster-Sharding looks like it matches well with a use case I have to create single instances of stateful persistent actors across Akka nodes. I'm not clear if it is possible though to have an Entry actor type that requires arguments to…
Rich
  • 2,645
  • 8
  • 39
  • 52
12
votes
1 answer

Building Modular Akka Systems

We are building a multiple-component Akka-cluster-based system. Every component is a separate Play! project and on start it joins the Akka Cluster and components start looking-up actors to work. Problem I have two problems with this setup: Writing…
11
votes
1 answer

"max allowed size 128000 bytes, actual size of encoded class scala" error in akka remoting

I want to use Akka Remoting to exchange message over network between actors, but for large String message i got the following error: akka.remote.OversizedPayloadException: Discarding oversized payload sent to Actor :: max allowed size 128000…
Saeed Zarinfam
  • 8,782
  • 7
  • 55
  • 66
10
votes
1 answer

Akka clustering - one Manager Actor per node

I’m working on an application that often queries a very large number of actors and hence sends / receives a very large number of messages. When the application is ran on a single machine this is not an issue because the messages are sent within the…
asenovm
  • 5,901
  • 1
  • 35
  • 50
9
votes
1 answer

Akka doc is unclear about how to get an ExtendedActorSystem to deserialize ActorRef

I'm trying to serialize/deserialize ActorRef through protobuf. According to the Akka doc, the only way to do it is to convert the ActorRef into a String, and convert it back in the remote actor system. The doc mentions using an ExtendedActorSystem…
stackoverflower
  • 3,177
  • 7
  • 42
  • 59
9
votes
2 answers

Choose Akka or Spark for parallel processing?

When choosing to parallelize tasks I normally use Spark. Reading articles about parallel processing in Akka such as http://blog.knoldus.com/2011/09/19/power-of-parallel-processing-in-akka/ it seems using Akka to parallelize is at a lower level. It…
blue-sky
  • 45,835
  • 124
  • 360
  • 647
8
votes
1 answer

How to know initial contacts for Akka Cluster Client?

Akka Cluster Client requires a list of initial nodes that it can contact in order to be in touch with the cluster. It seems that one has to provide at least one exact node address and port. In our environment where it's managed by DC/OS, cluster…
kciesielski
  • 1,178
  • 8
  • 17
8
votes
1 answer

Akka and state among actors in cluster

I am working on my bc thesis project which should be a Minecraft server written in scala and Akka. The server should be easily deployable in the cloud or onto a cluster (not sure whether i use proper terminology...it should run on multiple nodes). I…
Arg
  • 1,906
  • 19
  • 32
8
votes
1 answer

Akka Cluster Joining with DNS Load Balancing

Looking at the akka cluster documentation it appears that you have to know the server & port values of at least 1 "seed node" to join the cluster. The example application.conf clearly indicates that the developer needs to know "host1" and "host2"…
Ramón J Romero y Vigil
  • 15,664
  • 4
  • 61
  • 93
1
2 3
29 30