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.

486 questions
3
votes
1 answer

How to configure play application with Akka to run in a cluster

I have a PlayFramework (play-scala) application that I want to run in a cluster. So I might have several docker containers of this application image running. I don't know the IP addresses of these ahead of time, as the cloud services provider can…
Shafique Jamal
  • 1,550
  • 3
  • 21
  • 45
3
votes
1 answer

Akka Cluster starding not able to register to Coordinator

I am trying to create an Akka Sharding Cluster. I want to use proxy only mode on one of the nodes just to route the message to the shard regions. I am getting the following Warning: [WARN] [02/11/2019 17:04:17.819]…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
3
votes
1 answer

Akka cluster configuration

I get this error: [ERROR] [05/04/2018 11:21:26.747] [default-akka.actor.default-dispatcher-19] [akka://default/system/cluster/core/daemon/joinSeedNodeProcess-1] bug in method caller: not valid to create ConfigValue from:…
3
votes
1 answer

How to run an Akka-HTTP server inside an Akka cluster?

I am building an Akka cluster and want to use Akka-HTTP server as an API server inside. How does one do that? I would imagine it will be a cluster singleton, as it is an access point to the cluster, but making it an actor seems weird, as it will…
Ehud Kaldor
  • 753
  • 1
  • 7
  • 20
3
votes
1 answer

How to properly deploy with Akka Cluster

Scenario Right now we only have a single node running the whole system. What we want is to make a distinction between "frontend" nodes, and a single "backend" node. "Frontend" nodes (N nodes): Maintains a persistent connection with the clients…
JavierCane
  • 2,324
  • 2
  • 22
  • 19
3
votes
1 answer

Can Akka Cluster Client Send Messages to Cluster Nodes Not in Initial Contacts?

Using Akka 2.3.14, I'm trying to create an Akka cluster of various services. Until now, I have had all my "services" in one artifact that was clustered across multiple nodes, but now I am trying to break this artifact into multiple services that all…
rhamilton
  • 473
  • 3
  • 13
3
votes
0 answers

Design help: Akka clustering and dynamically created Actors

I have N nodes (i.e. distinct JREs) in my infrastructure running Akka (not clustered yet) Nodes have no particular "role", but they are just processors of data. The "processors" of this data will be Actors. All sorts of non-Akka/Actor (other java…
bitsofinfo
  • 994
  • 3
  • 16
  • 34
3
votes
1 answer

Akka's actor based custom Event Bus implementation causes bottleneck

I'm trying to implement Event Bus (Pub-Sub) pattern on top of Akka's actors model. "Native" EventBus implementation doesn't meet some of my requirements (e.g. possibility of retaining only last message in a topic, it's specific for MQTT protocol,…
Vitaly Baum
  • 295
  • 2
  • 10
3
votes
2 answers

java.lang.NoClassDefFoundError: scala/Predef$any2stringadd$

I'm using Akka Distributed Publish Subscribe with Java, following this examples from the documentation But whenever I run my code I get a java.lang.NoClassDefFoundError: scala/Predef$any2stringadd$ It seems it can't file the scala library but I can…
dazito
  • 7,740
  • 15
  • 75
  • 117
3
votes
1 answer

simulate network partition using akka cluster multi-jvm testkit

I'm trying to build a brain split resolver for akka cluster. But it's quite hard to simulate the scenario where certain nodes are unreachable from the rest of the origin cluster and form their own cluster. It can't be done by stoping and restart…
vincent chou
  • 91
  • 2
  • 8
3
votes
2 answers

Actor lookup in an Akka Cluster

I have a Scala application where I have several nodes. Each node has an ActorSystem with a main actor and each actor must have some ActorRef to certain actors (for example "Node 1" has "Actor3" and "Actor3" needs the ActorRef for "Actor7" and…
As As
  • 2,049
  • 4
  • 17
  • 33
3
votes
0 answers

Is it possible to deploy actors to cluster without a router

I'm prototyping an actor system which has parent and child actors. I want all of my child actors to be deployed remotely to a specific cluster role. I have 1..n parents and each parent has 1..n children. New instances are created/deployed as the…
3
votes
1 answer

Akka (.net) cluster with remote nodes: Disassociated exception

Using akka (.net) I am trying to implement simple cluster use case. Cluster - for nodes up/down events. Remote - for sending message to specific node. There are two actors: Master Node which listening cluster events and Slave Node which connecting…
qrux
  • 33
  • 3
3
votes
1 answer

Automating microservices load balancing / scaling

Reading up on micro services for a few days now I was wondering how do people go about automating the load balancing and scaling these things? I have a specific scenario in mind what I would like to achieve but not sure if it's possible or maybe I'm…
Matjaz Muhic
  • 5,328
  • 2
  • 16
  • 34
3
votes
1 answer

akka node in docker explicitly disassociated

I'm using akka 2.4-M2 in my project. And I want to deploy my projects with docker. However, when I'm using boot2docker to test the two nodes, there occurs a problem. My node cannot connect to seed-node. The configuration in build.sbt is as…
Wayne Wang
  • 163
  • 9