Questions tagged [akka-supervision]

In Akka supervision describes a dependency relationship between actors: the supervisor delegates tasks to subordinates and therefore must respond to their failures. When a subordinate detects a failure (i.e. throws an exception), it suspends itself and all its subordinates and sends a message to its supervisor, signaling failure.

104 questions
0
votes
1 answer

Restart Actor after exception with previous state.

Want to restart actor after exception with previous state by supervisor strategies. For example Actor supervisor saves some parameter from his children. Also supervisor has next strategy: override val supervisorStrategy = …
user5607337
0
votes
1 answer

Akka custom supervisor not taking effect

In src/main/resources/application.conf actor { # The guardian "/user" will use this class to obtain its supervisorStrategy. # It needs to be a subclass of akka.actor.SupervisorStrategyConfigurator. # In addition to the default there is…
kliew
  • 3,073
  • 1
  • 14
  • 25
0
votes
1 answer

Akka - test supervision strategy

I have the following scenario: the parent supervisor actor creates a child for each message using a factory (function) passed in the constructor. class supervisorActor(childActorMaker: ActorRefFactory => ActorRef) extends Actor with…
ab_732
  • 3,639
  • 6
  • 45
  • 61
0
votes
1 answer

Akka - child actors restarted when parent actor is restarted

I have a hierarchy of singleton actors. The parent supervises and coordinates the children. I need to keep child actors running when the coordinator is restarted. Is there a way to prevent child actors from restarting when their parent is restarted…
mateusz.s
  • 31
  • 1
  • 5
0
votes
1 answer

Message Persistence and Playback with restarted actors in Akka

Akka Java here. I have two actors, Parent and Child, where the former is the parent of the latter. If Child throws a specific exception (say, an UnrulyTeenagerExcepton), then the behavior I am looking for is as follows: The Parent saves a reference…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

How Akka Futures and Supervisor Strategies deal with failure

Akka Java here. I just read the Akka docs on the “ask” pattern using futures and am not understanding how several things work, with respect to scenarios when both supervisor strategies (deciders) and failure callbacks are part of the picture. Parent…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

Akka supervision strategies and termination

I am brand new to Akka and am trying to wrap my head around SupervisorStrategies and child actor termination. I have several very similar concerns. First off, my understanding is that if an actor creates another actor (via context.actorOf(...)),…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
1 answer

Relationship of Akka SupervisorStrategies to children

Java API here. I am trying to understand how Akka actor supervision really works, specifically supervisor strategies. To me, the strategy feels like its just (essentially) a mapping of exceptions to directives. I just read the official Akka Fault…
smeeb
  • 27,777
  • 57
  • 250
  • 447
0
votes
3 answers

How to get ActorRefs of all children of a RouterPool in Akka

I create a RouterPool of an actor like this: val myActorPool = Akka.system.actorOf(RoundRobinPool(5).props(Props[MyActor]), "myActor") now i would like to access the ActorRef objects of the 5 children that are managed by this router. Is there some…
samy
  • 1,396
  • 2
  • 19
  • 41
0
votes
1 answer

Akka Remoting contact point nodes need to running?

I am new to akka and akka remoting and akka cluster. I have build a system with following config Application.conf akka { actor.provider = "akka.cluster.ClusterActorRefProvider" extensions =…
Harshjags
  • 163
  • 1
  • 2
  • 12
0
votes
1 answer

What is the best approach to tell a sender that an actor failed after a number of retries

I've a parent -> child actor relationship to upload files to Dropbox. The relation consists of a supervisor actor and an upload actor. The supervisor actor defines a supervisor strategy for the upload actor. So if an upload to Dropbox fails the…
akkie
  • 2,523
  • 1
  • 20
  • 34
0
votes
0 answers

How can I access akka.routing.Router?

I’m creating a router using the router configuration in application.conf. In a situation I need to manually remove the routes and add routes to my router. I saw in akka-scala document (link), using removeRoutee and andRoutee we will be able to…
Renien
  • 551
  • 4
  • 19
0
votes
2 answers

Akka: getting info about current actor hierarchy

For debug purposes I'd like to have a programmatic way to get tree of non-terminated actors that are currently in the system. Anything that can give\can be converted to textual represenatation of the current state of actor hierarchy will also be…
Eugene Loy
  • 12,224
  • 8
  • 53
  • 79
0
votes
2 answers

Akka inform remote actor on error

I have a design challenge in regards to a new akka application that I'm building. The issue/challenge is: On the client side I have made a simple actor which sends a request, and then using become() in order to wait for a proper server answer, of…
StefanE
  • 817
  • 6
  • 20
1 2 3 4 5 6
7