This module enables multiple instances of external components to connect at the same time, and does round-robin load-balancing of incoming stanzas.
Component "test.example.com"
modules_enabled = { "component_roundrobin" }
-- Other component options such as secrets here
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_component_roundrobin
For earlier versions see the documentation for installing 3rd party modules