antikythera v0.2.0 AntikytheraCore.TerminationManager View Source
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
.
Link to this section Summary
Link to this section Functions
Link to this function
register_broker()
View Source
register_broker() :: :ok | {:error, :not_in_service}