Files
llmgw/internal/store/migrations/postgres/0016_control_planes.sql
T
Ilker ManapandClaude Opus 5.5 aa3efcebbe Add a standby control plane with server add, and draw the screens as windows
server add gives another machine this llmgw, a certificate, the
configuration and store address, lets it into the store through Patroni, and
starts it; --vip keeps a floating address on the leader with keepalived,
following a new /leader endpoint. Nodes learn every control plane from the
leader and notice a dead one by HTTP/2 ping instead of after the kernel's
fifteen minutes. The setup, console, node and init screens are drawn full
screen in one frame: title bar, sidebar, bordered panel, key bar, dialogs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 22:29:12 +02:00

11 lines
464 B
SQL

-- Ported from the SQLite migration of the same number.
-- The control planes agents may dial, by the address they dial: what the
-- leader tells every agent, so a control plane added after the nodes were
-- onboarded is one they fail over to without their configuration being
-- edited. Written by `llmgw server add` and by init for the first one.
CREATE TABLE control_planes (
url TEXT PRIMARY KEY,
name TEXT NOT NULL,
added_at BIGINT NOT NULL
);