Component Inheritance

Following I'll explain how to flag module as component inheritable in Metronome (starting from 3.8).


Previously like in Prosody, Metronome defined a hardcoded list of modules that are component inheritable and those were loaded only on the first host startup load. Now Metronome will fully handle component inheritance even when loading a module for all hosts via console.

To specify that a component is component inheritable you need to flag it using the module:set_component_inheritable() directive, in case of a normal module. Otherwise if the module is global you need to add the same directive under the host section function closure (function module.add_host(module) ... end).