Module mesh_controller

Module mesh_controller 

Source

Structs§

ActorMeshController
The implementation of monitoring works as follows:
CheckState
Check state of the actors in the mesh. This is used as a self message to periodically check.
Subscribe
Subscribe me to updates about a mesh. If a duplicate is subscribed, only a single message is sent. Will send None if there are no failures on the mesh periodically. This guarantees the listener that the controller is still alive. Make sure to filter such events out as not useful.
Unsubscribe
Unsubscribe me to future updates about a mesh. Should be the same port used in the Subscribe message.

Statics§

SUPERVISION_POLL_FREQUENCY
Time between checks of actor states to create supervision events for owners. Default of 3 seconds is chosen to not penalize short-lived actors, while still able to catch issues before they look like a hang or timeout. This also controls how frequently the healthy heartbeat is sent out to subscribers.