docs: proposed distributed Nebraska mode design doc - #1405
docs: proposed distributed Nebraska mode design doc#1405Moustafa-Moustafa wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new design document describing a proposed “distributed Nebraska” deployment model (one control node plus multiple edge nodes) using PostgreSQL logical replication for admin metadata, while keeping runtime/telemetry data regional and writable.
Changes:
- Introduces
docs/distributed-mode.mddocumenting the distributed topology, admin/runtime table split, and migration discipline for logical replication. - Documents proposed code/package boundaries (
pkg/api/admin,pkg/api/runtime,pkg/api/dbreads) and instance-mode behavior (403s for admin writes on non-control nodes). - Defines an operator-driven replication/runbook and a proposed Postgres role/grants model.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds docs/distributed-mode.md, the upstream design doc for running Nebraska as one control node + N edge nodes with PostgreSQL logical replication of admin tables. Refs: flatcar#1375
c84e91e to
6d2477b
Compare
|
@Moustafa-Moustafa |
|
One thing I did not see in the document: the in-memory caches. GetAppID and GetGroupID are only cleared by in-process add/update/delete, so on an edge (where admin changes arrive through replication) they may keep serving old data after a rename or delete on the control node. How are you thinking about cache invalidation on edges? What was the proposed solution to this - I don't reember? E.g. use Postgres LISTEN/NOTIFY from an ENABLE ALWAYS trigger, or just skip the cache in edge mode, or add a shorter TTL for the cache? |
Adds docs/distributed-mode.md, the upstream proposed design doc for running Nebraska as one control node + N edge nodes with PostgreSQL logical replication of admin tables.
Refs: #1375
Proposed distributed Nebraska mode design doc
Adds
docs/distributed-mode.md, the design doc consolidating the decisions from RFC #1375 for running Nebraska as one control node + N edge nodes with PostgreSQL logical replication of the admin tables. This is meant to be iterated on and updated based on the discussions and feedback.How to use
Doce only, review the design and add any comments.,
Testing done
Not applicable.
changelog/directory (user-facing change, bug fix, security fix, update)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.