SaltDns.Knot.LeaderSupervisor (Salt v1.0.0)

The processes that exist only on the node that drives Knot: the organisations' distribution writer (OrgSync), the edge catalog, and the per-zone writers.

Without a cluster the application starts it with the rest. In a cluster SaltDns.Knot.Failover starts it when the node becomes the leader and stops it first thing when the lease is lost, so a follower has no writer that could touch its Knot. ConfigServer is not here: followers use it too (for SaltDns.Knot.follow/2).

Summary

Functions

Returns a specification to start this module under a supervisor.

True while the supervisor runs.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

running?()

@spec running?() :: boolean()

True while the supervisor runs.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()