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
4
votes
1 answer

Simple approach to synchronizing data across an Akka cluster?

I've got some run-time data I'd like to exist on a designated actor on every node in my Akka cluster, which could be updated via internal event or API call to a single node. I could store this data in a shared database to make it permanent, but I'd…
acjay
  • 34,571
  • 6
  • 57
  • 100
4
votes
0 answers

Akka Cluster Distibributed Pub Sub -- should I combine with eventStream?

I’m using Distributed Publish Subscribe as a means to publish updates in my clustered system to clients connected over Websockets. But I want my clients to begin receiving updates with minimal delay. I know from the docs that Distributed Pub Sub…
acjay
  • 34,571
  • 6
  • 57
  • 100
4
votes
2 answers

akka-streams with akka-cluster

My akka-streams learn-o-thon continues. I'd like to integrate my akka-streams application with akka-cluster and DistributedPubSubMediator. Adding support for Publish is fairly straight forward, but the Subscribe part I'm having trouble with. For…
Will I Am
  • 2,614
  • 3
  • 35
  • 61
4
votes
1 answer

Akka cluster seed nodes sequence

Should all the nodes have the same sequence of cluster nodes, specially the first node in the seed list? For example Node-1: Seed nodes {Node-1, Node-2} Node-2: Seed nodes {Node-2, Node-1} The node sequence is different for both…
Arslan Mehboob
  • 1,012
  • 1
  • 9
  • 21
4
votes
1 answer

Do you run a separate Actor System on each host in a distributed system using Akka Cluster?

Here's my assumption based on Stackoverflow reading. You have a multiple system components: Database Authentication Web Each system component runs on a separate host as described in the microservice pattern. In other to glue these host together…
user1187135
4
votes
1 answer

Akka distributed pub sub: Java implementation not working

Main class for Subscriber: Application.java package com.mynamespace; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import…
Vaibhav Raj
  • 2,214
  • 4
  • 23
  • 39
4
votes
2 answers

How to broadcast message to all actors in an AKKA cluster in java?

I have an AKKA cluster system with name say ClusterSystem. Each node of this cluster have an actor ActorA. I want a way to broadcast a message sent to an actor to all the ActoraA-s running in the cluster. It would be of great help if any one can…
Rishav Basu
  • 391
  • 4
  • 12
4
votes
0 answers

Beginners guide for Mesos, Marathon, Docker Integration

I am scratching my head, to figure out how the combination of docker, mess and marathon can help me in building my distributed application. Application has a backend comprising of services processing client requests and returning json data, which…
thegeek
  • 232
  • 2
  • 8
4
votes
1 answer

Akka actors and Clustering-I'm having trouble with ClusterSingletonManager- unhandled event in state Start

I've got a system that uses Akka 2.2.4 which creates a bunch of local actors and sets them as the routees of a Broadcast Router. Each worker handles some segment of the total work, according to some hash range we pass it. It works great. Now, I've…
Michael Kohout
  • 1,073
  • 1
  • 14
  • 26
4
votes
2 answers

Test if actor sender was local or remote

I need to determine whether the sender of a message was one of the local or remote actors in the Akka cluster. At present the only way I've found to do this is def isLocal(sndr: ActorRef) = sndr.path.address.toString ==…
Pengin
  • 4,692
  • 6
  • 36
  • 62
4
votes
3 answers

Multiple akka system in a single pc

How can we run multiple akka nodes in a single pc? Currently, I've following in my application.conf file. For each system, I added different port numbers, but, I can't start more than one instance. Error says, Address already in use failed to…
Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105
4
votes
1 answer

Akka 2.2 ClusterSingletonManager sending HandOverToMe to [None]

I'm using Akka 2.2 contrib's project ClusterSingletonManager to guarantee there is always one and just one specific type of actor (master) in a cluster. However, I've observed an odd behaviour (which, incidentally, may be expected, but can't…
Hugo Sereno Ferreira
  • 8,600
  • 7
  • 46
  • 92
3
votes
1 answer

Akka Cluster Java API sample

I am pretty interested in testing out the 2.0-SNAPSHOT Akka cluster features, but for my purposes would like to do this in Java. I have read through the example here: http://letitcrash.posterous.com/clustered-actors-with-cloudy-akka But the API…
D Parsin
  • 731
  • 2
  • 7
  • 17
3
votes
2 answers

a.i.TcpListener - Bind failed for TCP channel on endpoint [/127.0.0.1:2551] java.net.BindException: [/127.0.0.1:2551] Address already in use

When i am trying to create a Typed Actor System using the object. It is normally creating the Actor System. implicit val askTimeout: Timeout = Timeout(5.seconds) ActorSystem[Nothing](MailSendActor.apply, "application") } where MailSendACtor…
3
votes
2 answers

Akka stateless actors with Persistent Mailboxes

I want to create an Akka Cluster with 1000s of actors. Each actor receives a message, does some calculations and writes the result into a dedicated Kafka topic. It should be deployed in a cluster, for example Kubernetes. My understanding is that -…
Archie
  • 962
  • 2
  • 9
  • 20