Mesh.Cluster.Rebalancing.Reconciler (Mesh v0.1.4)

View Source

Background reconciliation process that periodically checks and fixes inconsistencies in the cluster.

This module embraces the eventual consistency model by:

  • Detecting orphaned actors on wrong nodes
  • Cleaning up actors that should have been moved during rebalancing
  • Detecting nodes stuck in rebalancing mode
  • Ensuring convergence without distributed locks

The reconciler runs independently on each node, allowing the cluster to self-heal without coordination overhead.

Summary

Functions

Returns a specification to start this module under a supervisor.

Triggers an immediate reconciliation. Useful for testing or forcing cleanup.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

reconcile_now()

Triggers an immediate reconciliation. Useful for testing or forcing cleanup.

start_link(_)