Commit Graph

4 Commits

Author SHA1 Message Date
Joseph Doherty 790db4ff94 perf(communication,dcl): bounded-parallel failback probes; allocation-free MxGateway quality map (COMM-8, DCL-10, WP6 task 6.10)
COMM-8: the failback sweep collects the due sites and probes them through
Parallel.ForEachAsync (FailbackProbeParallelism = 8) instead of awaiting each
probe (up to its 5 s deadline) in turn; per-site state stays under each
pair's own gate. The graveyard sweep still runs at the start of each pass,
which now ends after ceil(due/8) probe rounds instead of due rounds.
  Test: 16 failed-over sites, 400 ms probe each: serial 6.4 s -> one pass
  < 3 s asserted (~0.8 s, 2 rounds), max 8 in flight. 30 black-holed NodeAs:
  ~150 s -> ~20 s per pass.

DCL-10: MapQuality takes IReadOnlyList<MxStatusProxy> (the RepeatedField),
index-loops the statuses and maps the quality byte through a static
256-entry table (negatives Bad, >255 Good, as before).
  Throwaway Stopwatch, Release, 1M calls with one Ok status:
  old 40 B + 34.3 ns per event -> new 0 B + 0.8 ns (test pins zero allocation).
2026-12-03 10:25:50 -05:00
Joseph Doherty 429ccb8d90 fix(communication): failback probe sentinel uses an illegal actor name so it can never match a real instance (review 2026-10-21 03/P-2 follow-up) 2026-10-22 09:00:48 -04:00
Joseph Doherty 4456a04e81 fix(communication): failback probation is time-boxed and cleared on address change (review 2026-10-21 03/P-2 follow-up) 2026-10-22 09:00:48 -04:00
Joseph Doherty c5add11546 fix(communication): command-plane failback probes readiness with a real RPC; backoff resets only after a real call succeeds (review 2026-10-21 03/P-2) 2026-10-22 09:00:48 -04:00