|
|
143cf9c792
|
feat: add peer sync worker for zone_data exchange between nodes 🔄
Adds optional peer-to-peer zone_data replication between directdnsonly
instances. Enables eventual consistency in DA Multi-Server topologies
without a shared datastore.
- InternalAPI: GET /internal/zones (list) and ?domain= (detail)
exposes zone_data to peers via existing basic auth
- PeerSyncWorker: interval-based daemon thread that fetches zone_data
from configured peers, storing newer entries locally; peer downtime
is silently skipped and retried next interval
- WorkerManager: wires PeerSyncWorker alongside reconciler; exposes
peer_syncer_alive in queue_status
- Config: peer_sync block with enabled/interval_minutes/peers[]
- Tests: 13 tests covering sync, skip-older, skip-unreachable, empty
peer list, bad status, and missing zone_data scenarios
|
2026-02-19 22:16:55 +13:00 |
|