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>
This commit is contained in:
LocalAI [bot]
2026-06-02 22:05:33 +02:00
committed by GitHub
parent e6a0d4c375
commit 415b561947
2 changed files with 4 additions and 6 deletions

View File

@@ -151,13 +151,11 @@ fY.forEach((y)=>{
arrow(FX+FW, y+FH/2, SPX, ty, INK);
});
// state plane -> workers (dashed, gRPC / jobs)
wY.forEach((y)=> arrow(SPX+SPW, SPY + 120, WX, y+WH/2, RUSTD, "2 8"));
// ---- annotated arrow: NATS -> Worker #2 : backend.install ----
// NATS messaging bus -> workers (dashed). Workers coordinate via NATS;
// PostgreSQL is the frontends' shared state, not something workers connect to.
const natsY = SPY+82+CHH+18 + CHH/2; // NATS chip center y
arrow(SPX+SPW, natsY, WX, wY[1]+30, RUSTD, "2 8");
// label
wY.forEach((y)=> arrow(SPX+SPW, natsY, WX, y+WH/2, RUSTD, "2 8"));
// label the NATS bus arrows
const labW=140, labH=26, labX=(SPX+SPW+WX)/2-labW/2, labY=natsY-46;
svg.appendChild(el("rect",{x:labX,y:labY,width:labW,height:labH,fill:PAPER,stroke:RUSTD,"stroke-width":2}));
txt(labX+labW/2,labY+18,"backend.install",{f:"Bricolage Grotesque",w:700,sz:14,a:"middle",fill:RUSTD});

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 KiB

After

Width:  |  Height:  |  Size: 321 KiB