SaltDns. Proxy. Watcher
(Salt v1.0.0)
Listens for the certificate module's "new current version" events
(SaltDns.Certificates.subscribe/0) and, for every group that serves the
certificate, raises the group's generation and asks its nodes to fetch the
new state.
Every replica runs one. Each sees each event, but the generation is raised
by one conditional UPDATE (SaltDns.Proxy.certificate_changed/1) that
only one of them can win, and only the winner notifies; the notification
reaches the sockets on every replica through PubSub.
Changes made through SaltDns.Proxy (routes, backends, settings) raise the
generation and notify in the function that made them; they need no watcher.
Started only when the Shaker feature is on.
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.