PhiAccrualUdp (phi_accrual_udp v0.1.0)

View Source

Dedicated UDP socket source for phi_accrual.

Escapes BEAM distribution head-of-line blocking that affects the bundled PhiAccrual.Source.DistributionPing reference source. UDP heartbeats travel on their own socket, so a backed-up distribution port cannot delay them.

Components

Quick start

# In your supervision tree
children = [
  {PhiAccrualUdp.Listener, port: 4370},
  {PhiAccrualUdp.Sender,
    targets: [{{10, 0, 0, 2}, 4370}, {{10, 0, 0, 3}, 4370}],
    interval_ms: 1_000}
]

Clock discipline

This package preserves phi_accrual's clock discipline: the detector reasons only about local monotonic receipt times. The packet timestamp field is diagnostic-only — it is NOT used for the EWMA. See PhiAccrualUdp.Packet moduledoc.