# `Alternera.PluginHosts.Supervisor`
[🔗](https://github.com/10e-ab/alternera-camel/blob/v0.9.0/alternera_plugin_hosts/lib/alternera/plugin_hosts/supervisor.ex#L1)

Supervises one kind's plugin hosts (`PluginHosts.Kind`, the `:kind`
option): a registry of pools by name, the registry their ready members
join, the `:pg` scope they join across the cluster with the cache of
what other nodes run (`PluginHosts.Cluster`), a `DynamicSupervisor` with
one `PluginHosts.Pool` per host the kind's application environment
configures (`Alternera.PluginHosts`), and the `PluginHosts.Starter`
that starts each pool once its tenant's slug is looked up, and the
`PluginHosts.Refresher` that restarts the members of a host whose tenant
variables changed. Each kind's plugin
package starts one in its own application. A Host restarts its own OS
process; a supervisor here restarts a Host or a Pool only if it crashed
itself, which is a bug in it, not in the plugin. Nothing a host does
reaches the processes around this supervisor.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
