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
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
  • 17,373
  • 7
  • 77
  • 125
7
votes
1 answer

Consistently handling network partitions and split-brain scenarios in Akka

It looks like akka.cluster.split-brain-resolver is a paid-for feature. (I got that impression from this line in the docs): This is a feature of the Typesafe Reactive Platform that is exclusively available for Typesafe Project Success Subscription…
jackweirdy
  • 5,632
  • 4
  • 24
  • 33
7
votes
1 answer

Akka Distributed Pub/Sub and number of named topics

I would like to create a named topic per online user in my system using akka clustering. Does having couple of 10000s named topic at a time impact the performance negatively?
Nami
  • 1,215
  • 11
  • 21
7
votes
1 answer

When to call System.exit() on a cluster node?

When a node is down and therefore taken by a leader out of the cluster I would like the node itself to call System.exit().( I am using aka java) How can the node surely know it has been removed from the cluster? How is the recommended way to do…
jack
  • 1,861
  • 4
  • 31
  • 52
6
votes
1 answer

Akka Streams running on cluster nodes

I am trying to understand the scaling part of Akka Streams I have seen various replies here, but still fail to understand how this functionality is accomplished. There are ActorPublisher/Subscribers which from what I understand are meant to interact…
LK__
  • 6,515
  • 5
  • 34
  • 53
6
votes
1 answer

Kafka and Akka Cluster

Following is my use case Bunch of applications enqueue messages in Kafka under different topics. Have consumer of each topic distribute the work to a worker in a cluster. The work can be classified as long running, memory intensive, simple etc and…
Prasanna
  • 3,703
  • 9
  • 46
  • 74
6
votes
1 answer

Microservices styles and tradeoffs - Akka cluster vs Kubernetes vs

So, here's the thing. I really like the idea of microservices and want to set it up and test it before deciding if I want to use it in production. And then if I do want to use it I want to slowly chip away pieces of my old rails app and move logic…
Matjaz Muhic
  • 5,328
  • 2
  • 16
  • 34
6
votes
2 answers

akka cluster nodes behind NAT (using docker)

Is it possible to run akka nodes behind NAT (each node is behind separate nat, public port is DNAT'ed to private)? Currently I'm trying to deploy akka nodes in docker container. Docker is Natting public port to instance private port, problem is that…
frx
  • 492
  • 5
  • 15
6
votes
1 answer

max number of actors per host in akka

How many max actors can we have on one box in akka? public void MyActor extends AkkaActor{ receive(Objet obj){ // so something } } 1)Is there some limit on max number of actors instances?I am planning to created around 10K actors on one…
user93796
  • 18,749
  • 31
  • 94
  • 150
5
votes
1 answer

Akka Distributed Pub/Sub back-pressure

I am using Akka Distributed Pub/Sub and have a single publisher and a subscriber. My publisher is way faster than the subscriber. Is there a way to slow down the publisher after a certain point? Publisher code: public class Publisher extends…
bitan
  • 444
  • 4
  • 14
5
votes
1 answer

Akka cluster - Association with remote system has failed...Reason: [Association failed]

I have a simple POC with two actors: public final class Task1Actor extends AbstractLoggingActor { public Task1Actor() { final UnitPFBuilder builder = ReceiveBuilder.create() .matchAny(message -> { …
x80486
  • 6,627
  • 5
  • 52
  • 111
5
votes
2 answers

Different use case for akka cluster aware router & akka cluster sharding?

Cluster aware router: val router = system.actorOf(ClusterRouterPool( RoundRobinPool(0), ClusterRouterPoolSettings( totalInstances = 20, maxInstancesPerNode = 1, allowLocalRoutees = false, useRole = None …
atline
  • 28,355
  • 16
  • 77
  • 113
5
votes
2 answers

Kubernetes - Akka clustering Deployment

We have a docker image and a corresponding yaml file for the deployment using kubernetes. The application we have built is in scala with akka-http. We have used akka-cluster. We have a particular variable(seed-nodes in our case - akka cluster) in…
Nagireddy Hanisha
  • 1,290
  • 4
  • 17
  • 39
5
votes
2 answers

Akka single point of failure

I want to create a system that will not have a single point of failure. I was under the impression that routers are the tool for doing that but I'm not sure it works as I would expect. This is the entry point of my program : object Main extends…
user_s
  • 1,058
  • 2
  • 12
  • 35
5
votes
1 answer

How can I test a Subscriber's receive method in Akka Cluster?

I have the following Subscriber abstract base class: abstract class Subscriber(topics: Seq[String]) extends Actor with ActorLogging { import DistributedPubSubMediator.{ Subscribe, SubscribeAck } val mediator =…
erip
  • 16,374
  • 11
  • 66
  • 121
1
2
3
32 33