Raxol.Swarm.Supervisor (Raxol v2.6.0)

View Source

Supervisor for the distributed swarm subsystem.

Start order matters:

  1. Discovery -- auto-connects nodes via libcluster (optional)
  2. NodeMonitor -- provides health data
  3. CommsManager -- uses health data
  4. Topology -- subscribes to NodeMonitor, runs elections
  5. TacticalOverlay -- subscribes to NodeMonitor, syncs CRDTs to peers

Strategy: one_for_one. Each module can crash and restart independently. NodeMonitor re-discovers nodes on restart. CommsManager re-probes links. Topology re-elects. TacticalOverlay re-syncs via anti-entropy.

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 \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()