Alternera.PluginHosts.Supervisor (alternera_plugin_hosts v0.9.0)

Copy Markdown View Source

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.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)