macula_dist_system (macula v1.4.30)
View SourceMacula Distribution System Supervisor.
This supervisor manages the distribution subsystem components:
- macula_dist_bridge_sup - Supervisor for relay tunnel bridges - macula_dist_discovery - Decentralized node discovery (replaces EPMD) - macula_cluster_strategy - Automatic cluster formation (optional)
The bridge supervisor hosts macula_dist_bridge gen_server children (one per relay tunnel). When macula_dist_system is not started (standalone relay mode), macula_dist_relay:advertise_dist_accept/0 starts the bridge supervisor on demand.
Configuration options (in sys.config): dist_port - QUIC port (default 4433) discovery_type - mdns, dht, or both auto_cluster - automatically form cluster
Summary
Functions
Dynamically start the dist_relay_client under this supervisor. Used by macula:join_dist_relay/1 when the relay URL is chosen at runtime rather than at application boot.
Start the distribution system supervisor with default options.
Start the distribution system supervisor with options.
Functions
Dynamically start the dist_relay_client under this supervisor. Used by macula:join_dist_relay/1 when the relay URL is chosen at runtime rather than at application boot.
Start the distribution system supervisor with default options.
Start the distribution system supervisor with options.