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.
Questions tagged [akka-supervision]
104 questions
1
vote
1 answer
Top-level Akka actor escalation and shutdown hooking
In my Akka system there is a top-level ("root") actor, Initializer, from which all other actors come from. There is also an actor, Destroyer, that is responsible for shutting down the system gracefully when it receives a Destroy message. There are…

smeeb
- 27,777
- 57
- 250
- 447
1
vote
1 answer
how to perform supervision in akka
I have two actors one is parent and one is child ,The child actor is responsible for fetching data from MongoDB against an given id and reply back the data to the calling actor which is a parent in my case ,Now i want to apply supervision in my…

swaheed
- 3,671
- 10
- 42
- 103
1
vote
1 answer
Akka.net - additional error handling by coordinator
Given an Akka.net-based actor system with some basic structure like:
/user
/coordinator
/child (x1000, with RoundRobinPool router)
Coordinator actor defines supervision strategy with Directive.Restart used.
Child actors could fail for several…

Andrey Pesoshin
- 1,136
- 1
- 14
- 30
1
vote
1 answer
Akka and Supervisor Strategies that fallback
I am brand new to Akka but my understanding about the Stop directive is that it is used inside of SupervisorStrategies when the child should be considered permanently out of service, but there is a way to handle the total outage.
If that…

smeeb
- 27,777
- 57
- 250
- 447
1
vote
1 answer
Akka supervisor strategy for different types of actors
I'm using Akka and I want to define my own supervision strategy for User Guardian actor. I've defined two types of actors, called TaskActor and MessageActor. They're instantiated as top-level actors.
I wish the user guardian to apply the following…

Mattia Micomonaco
- 230
- 1
- 12
1
vote
1 answer
Akka - How to restart a child spawned by a router?
I have an Actor that creates children using a Router. When one of the children fail. I'm being notified in the startegy about the failure. However the Actor does not restart by itself.
private static SupervisorStrategy strategy = new…

Ragunath Jawahar
- 19,513
- 22
- 110
- 155
1
vote
2 answers
Deliberate Blocking in Akka Actors
I understand that Akka actors should not block in order to stay reactive to messages, but how do I structure my service where I want to monitor a process running for an indefinite period of time?
For example, we are using the Amazon Kinesis…

Eric Kolotyluk
- 1,958
- 2
- 21
- 30
1
vote
2 answers
Error kernel and supervision in Akka: will messages from stale children be delivered to restarted actor?
I am trying to follow best practices and apply error kernel pattern in Akka. According to this quote from here:
If one actor carries very important data (i.e. its state shall not be lost if avoidable), this actor should source out any possibly…

Eugene Loy
- 12,224
- 8
- 53
- 79
1
vote
1 answer
Can someone explain me what means Akka Supervision parameter "withinTimeRange"?
I am new in Akka and I need a example using this parameter and tips when use it!

Lucas Batistussi
- 2,283
- 3
- 27
- 35
1
vote
2 answers
akka - making a single actor the child of several other actors (in a router)
I'm not sure if this is feasible - can I make a single actor a child of many other actors? I can certainly pass in the ref to the other actors but I need the supervision to work in this case too - is this at all possible?
eg here is an example with…

JasonG
- 5,794
- 4
- 39
- 67
1
vote
1 answer
Akka - restart of supervised actors
I am using Akka (Java) in my project for providing a retry scheme. So I have a supervisor actor, which on receiving a message delegates it to a supervised actor. I have a one-for-one strategy on the supervisor to restart (unconditionally).
The…

sutanu dalui
- 663
- 7
- 25
0
votes
1 answer
Supervision.decider strategy in akka 2.6.0
I have to pass supervision.decider but in akka 2.6.0+ Materializer does not have similar settings.
Can anyone share how to write below code in higher version:
val mat: ActorMaterializer = ActorMaterializer(Actor…

rimmi anand
- 3
- 2
0
votes
0 answers
Scala Akka OneForOneStrategy java.lang.NullPointerException: null
I am trying to implement fault tolerance within my actor system for my Scala project, to identify errors and handle them. I am using Classic actors. Each supervisor actor has 5 child actors, if one of these child actors fails, I want to restart that…

Trey Collier
- 129
- 2
- 11
0
votes
0 answers
Scala Akka Fault Tolerance/Supervision not working
I am trying to implement fault tolerance within my actor system for my Scala project, to identify errors and handle them. I am using Classic actors. Each supervisor actor has 5 child actors, if one of these child actors fails, I want to restart that…

TreyBCollier
- 213
- 3
- 8
0
votes
1 answer
How to supervise actors in Akka and handle exceptions
I am trying to improve the error handling with the actors in my system. Sometimes, when processing data, something goes wrong, and I need to stop and restart the actor, as well as log some information regarding this failure.
I have a Supervisor,…

TreyBCollier
- 213
- 3
- 8