Skip to content

Commit 415b561

Browse files
localai-botmudler
andauthored
docs: fix distributed-mode diagram (workers use NATS, not PostgreSQL) (#10138)
docs: fix distributed-mode diagram - workers coordinate via NATS, not PostgreSQL The architecture diagram drew the worker-bound arrows from the PostgreSQL area of the control plane, implying workers connect to PostgreSQL. They do not: PostgreSQL is the frontends shared state, while workers coordinate over NATS (backend.install events) and receive LoadModel over gRPC from a frontend. Re-route the worker arrows to originate from the NATS chip. Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
1 parent e6a0d4c commit 415b561

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

docs/static/images/diagrams/distributed-mode-arch.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,11 @@ <h1>One control plane, <em>many workers</em></h1>
151151
arrow(FX+FW, y+FH/2, SPX, ty, INK);
152152
});
153153

154-
// state plane -> workers (dashed, gRPC / jobs)
155-
wY.forEach((y)=> arrow(SPX+SPW, SPY + 120, WX, y+WH/2, RUSTD, "2 8"));
156-
157-
// ---- annotated arrow: NATS -> Worker #2 : backend.install ----
154+
// NATS messaging bus -> workers (dashed). Workers coordinate via NATS;
155+
// PostgreSQL is the frontends' shared state, not something workers connect to.
158156
const natsY = SPY+82+CHH+18 + CHH/2; // NATS chip center y
159-
arrow(SPX+SPW, natsY, WX, wY[1]+30, RUSTD, "2 8");
160-
// label
157+
wY.forEach((y)=> arrow(SPX+SPW, natsY, WX, y+WH/2, RUSTD, "2 8"));
158+
// label the NATS bus arrows
161159
const labW=140, labH=26, labX=(SPX+SPW+WX)/2-labW/2, labY=natsY-46;
162160
svg.appendChild(el("rect",{x:labX,y:labY,width:labW,height:labH,fill:PAPER,stroke:RUSTD,"stroke-width":2}));
163161
txt(labX+labW/2,labY+18,"backend.install",{f:"Bricolage Grotesque",w:700,sz:14,a:"middle",fill:RUSTD});
-2.33 KB
Loading

0 commit comments

Comments
 (0)