View Source AntikytheraCore.TerminationManager (antikythera v0.5.1)
A GenServer that periodically checks the status of Node.self/0
.
When this GenServer
notices that this host is going to be terminated, it prepares for termination:
- deactivate
RaftFleet
so that all consensus members in this node will be migrated to other active nodes - deactivate
AntikytheraCore.ExecutorPool.AsyncJobBroker
s so that they don't start new async jobs
Depends on AntikytheraCore.ClusterHostsPoller
.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec register_broker() :: :ok | {:error, :not_in_service}