mirror of
https://github.com/mudler/LocalAI.git
synced 2026-06-03 13:56:46 -04:00
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:
@@ -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});
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 323 KiB After Width: | Height: | Size: 321 KiB |
Reference in New Issue
Block a user