From f639ecfac6687c9e8de4e3f305e168b2e4e1bb87 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 4 Dec 2025 17:58:31 +0000 Subject: feat(sync): Phase 3 - resilience and health tracking - Add RelayHealthTracker with DashMap - Implement exponential backoff (5s -> 1h max) - Handle dead relays (24h failures -> daily retry) - Add startup jitter to prevent thundering herd - Add NGIT_SYNC_MAX_BACKOFF_SECS config --- src/http/nip11.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http') diff --git a/src/http/nip11.rs b/src/http/nip11.rs index e9e1c25..22e5b22 100644 --- a/src/http/nip11.rs +++ b/src/http/nip11.rs @@ -106,6 +106,7 @@ mod tests { metrics_connection_per_ip_abuse_threshold: 10, metrics_top_n_repos: 10, sync_relay_url: None, + sync_max_backoff_secs: 3600, }; let doc = RelayInformationDocument::from_config(&config); @@ -141,6 +142,7 @@ mod tests { metrics_connection_per_ip_abuse_threshold: 10, metrics_top_n_repos: 10, sync_relay_url: None, + sync_max_backoff_secs: 3600, }; let doc = RelayInformationDocument::from_config(&config); -- cgit v1.2.3