ExStorageService.CrossClusterReplication.Sync (ex_storage_service v0.6.3)

Copy Markdown View Source

Anti-entropy sync GenServer that periodically compares local objects with remote replicas and reconciles differences.

Configurable via application env:

  • :sync_interval - milliseconds between sync runs (default: 300_000 = 5 minutes)
  • :delete_orphans - whether to delete objects on replica that don't exist locally (default: false)

Summary

Functions

Returns a specification to start this module under a supervisor.

Trigger an immediate sync cycle.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

sync_now()

@spec sync_now() :: :ok

Trigger an immediate sync cycle.

sync_now(server)

@spec sync_now(GenServer.server()) :: :ok