Epic: A node that joins a cluster receives every synced setting and entity at once #59

Closed
opened 2026-10-31 12:41:58 -04:00 by claude · 2 comments
Owner
  • Draft: BUG-42
  • Priority: medium (a late joiner only catches up at the next write to each item)
  • Agent: coder (after a short architect design)
  • Depends on: none
  • Decisions: none

Why

Cluster config sync pushes changes as they happen. A node that joins later gets nothing until each section or entity is written again. The owner routed a join-time backfill post-release (B14 design, 2026-10-15).

What changes

  • Design first: who sends (the inviting node or every peer), how tombstones and last-writer timestamps decide conflicts, and how much data one backfill moves.
  • Then code in Ninlil.Dns.Server.ClusterSync and Ninlil.Dns.Server.Cluster.
  • Encrypted secrets stay encrypted in transit (B14 rule).
  • The backfill covers every synced settings key, including the RA prefixes #192 adds.

Acceptance

  • Red: a two-node test where node B joins after node A changed settings and entities. B holds A's state within one sync interval (fails on HEAD).
  • Cluster test projects pass. README cluster section updated.

Source

bughunt-plan.md:524.

- **Draft:** BUG-42 - **Priority:** medium (a late joiner only catches up at the next write to each item) - **Agent:** coder (after a short architect design) - **Depends on:** none - **Decisions:** none ### Why Cluster config sync pushes changes as they happen. A node that joins later gets nothing until each section or entity is written again. The owner routed a join-time backfill post-release (B14 design, 2026-10-15). ### What changes - Design first: who sends (the inviting node or every peer), how tombstones and last-writer timestamps decide conflicts, and how much data one backfill moves. - Then code in `Ninlil.Dns.Server.ClusterSync` and `Ninlil.Dns.Server.Cluster`. - Encrypted secrets stay encrypted in transit (B14 rule). - The backfill covers every synced settings key, including the RA prefixes #192 adds. ### Acceptance - [ ] Red: a two-node test where node B joins after node A changed settings and entities. B holds A's state within one sync interval (fails on HEAD). - [ ] Cluster test projects pass. README cluster section updated. ### Source `bughunt-plan.md:524`.
claude changed title from A node that joins a cluster receives every synced setting and entity at once to Epic: A node that joins a cluster receives every synced setting and entity at once 2026-11-05 20:49:00 -05:00
Author
Owner

Designed (architect); decisions Q-CL-1..5 recorded on #260 (inviter → joiner push, merge existing data, any missed delivery heals at the next heartbeat, secrets only inside the pinned-TLS signed channel, log lines only). Now an epic. Children: #330 storage (storage-coder) → #331 entity sources → #332 settings catalogue → #333 runner, join trigger and two-node test → #334 catch-up after missed deliveries (coder) → #335 README (docs-writer). No REST API change.

Designed (architect); decisions Q-CL-1..5 recorded on #260 (inviter → joiner push, merge existing data, any missed delivery heals at the next heartbeat, secrets only inside the pinned-TLS signed channel, log lines only). Now an epic. Children: #330 storage (storage-coder) → #331 entity sources → #332 settings catalogue → #333 runner, join trigger and two-node test → #334 catch-up after missed deliveries (coder) → #335 README (docs-writer). No REST API change.
Author
Owner

All children (#330 to #335) merged into develop through PR #337 and closed. Acceptance: the hostless two-node test (B joins after A changed settings and entities; B holds A's state after one pass) fails with the send stubbed and passes; cluster test projects pass; README cluster section updated. Closing the epic.

All children (#330 to #335) merged into develop through PR #337 and closed. Acceptance: the hostless two-node test (B joins after A changed settings and entities; B holds A's state after one pass) fails with the send stubbed and passes; cluster test projects pass; README cluster section updated. Closing the epic.
claude 2026-11-06 01:41:59 -05:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#59
No description provided.