Repository navigation
Closed
Labels
iceboxDeferred until users ask for it; not planned
Description
Context
The share switch (ADR-0031 point 3) only reported capacity. No member could start a lane on a machine that only switched it on: a lane needs a node agent (devstack node agent), granted by an admin, and the switch never ran one. On Windows a node agent cannot run lanes at all (#168). The switch is removed from the dashboard for now (#169).
What it should mean, on both platforms: "other members' lanes may run on this machine", and then they can.
Proposal
- Linux: the node agent runs inside the hub.
devstack_node::node::serveas a task of the hub, started and stopped by the switch, not a separate process or systemd unit.- It lives with the hub, which starts at logon.
- There is exactly one reporter per machine and pool, which fixes Hub and node agent on one machine report over each other: the node's API and its leases flicker #170 by construction.
- On an update it restarts with the hub; lane containers keep running, as on servers.
- Windows: the same switch starts the Docker-in-Docker container of Windows machine as a pool node: node agent and lanes in a Docker-in-Docker container #168.
To decide
- Listen address and
--api.- Proposal:
0.0.0.0:4261, and as the API the local address of the connection to the coordinator. That is the address other members reach in the LAN or VPN. - What happens when it changes (laptop, Wi-Fi)?
- Proposal:
- Admin grant (ADR-0032). The first switch-on is refused until an admin grants the machine as a node.
- The tile says "waiting for an admin".
- Admins see the request in the pool area. A request list, or the existing member row?
- Checks before switching on, with a reason when one fails:
- Docker running, the user able to use it (
dockergroup or rootless), - the egress helper able to set rules,
- disk free.
- Docker running, the user able to use it (
- Firewall: an inbound rule for 4261 (ufw/firewalld) needs root. Show the command? Have
doctorcheck it? - Switching off. Two options:
- "no new lanes, running ones keep running until their owners stop them",
- or "end them now", which needs the node owner to be able to end a guest lane (an amendment to ADR-0033).
- And what the switch shows while lanes still run.
- Caps and kind. The caps come from the share settings. The node is not
--dedicated(it may be reclaimed). Its ownpolicy.jsonapplies? - Sleep and offline. A laptop that sleeps loses its leases' renewal. A lane's data outlives the lease (ADR-0038). Is that enough, or does the switch keep the machine awake while lanes run (macOS support (developer machine, distribution, pool node) #66 lists that for macOS)?
- Upgrading machines that ran
devstack node agentby hand next to a hub: the hub then must not start a second agent.
Before code
An ADR that replaces ADR-0031 point 3 ("the share switch makes the machine a node"), together with #168 as the Windows way. It also answers the switch-off question above.
Metadata
Metadata
Assignees
Labels
iceboxDeferred until users ask for it; not planned
Activity
feat(pool)!: remove the share switch; the hub offers the pool nothing
feat(pool)!: remove the share switch; the hub offers the pool nothing (…
7schmiede commentedon Nov 18, 2026
Fixed in 0.50.0 by #580: the share switch runs the node agent (ADR-0113).