lifecycle: drop manager port special case (#753) — manager hashes into 8100..8999 like every other agent
This commit is contained in:
parent
f9a492f7a9
commit
4526e40a49
11 changed files with 43 additions and 39 deletions
|
|
@ -343,7 +343,8 @@ Differences from sub-agents:
|
|||
- `flake.nix` extends `hyperhive.nixosConfigurations.manager`
|
||||
(vs `agent-base`).
|
||||
- Container name is `hm1nd` (no `h-` prefix).
|
||||
- Fixed web UI port (`MANAGER_PORT = 8000`).
|
||||
- Web UI port via `lifecycle::agent_web_port("hm1nd")` — same
|
||||
FNV-1a hash as every other agent (8100..8999 range) since #753.
|
||||
- `set_nspawn_flags` adds two extra binds: `/var/lib/hyperhive/agents`
|
||||
→ `/agents` (RW) so the manager can edit per-agent proposed repos,
|
||||
and `/var/lib/hyperhive/applied` → `/applied` (RO) so the manager
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ exist because something already went wrong without them.
|
|||
- The manager is `hm1nd` (no `h-` prefix, fixed name).
|
||||
- `MAX_AGENT_NAME` in `lifecycle.rs` enforces the cap.
|
||||
- Per-agent web UI port = `WEB_PORT_BASE + FNV1a(name) % WEB_PORT_RANGE`
|
||||
(8100..8999); manager fixed at 8000; dashboard `cfg.dashboardPort`
|
||||
(default 7000).
|
||||
(8100..8999) for every agent including the manager (#753); dashboard
|
||||
`cfg.dashboardPort` (default 7000).
|
||||
|
||||
## Identity = socket
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
# Web UI
|
||||
|
||||
Two web surfaces share the same skeleton: the dashboard (port 7000)
|
||||
and the per-agent UIs (manager on :8000, sub-agents on a hashed
|
||||
:8100-8999). Both are SPAs — `GET /` returns a static shell,
|
||||
and the per-agent UIs (every container — including the manager —
|
||||
hashes into :8100-8999 via `lifecycle::agent_web_port`'s FNV-1a,
|
||||
since #753). Both are SPAs — `GET /` returns a static shell,
|
||||
`/api/state` returns JSON, JS renders. No full-page reloads.
|
||||
|
||||
## Shape (shared by both)
|
||||
|
|
|
|||
Loading…
Reference in a new issue