You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hub and node agent on one machine report over each other: the node's API and its leases flicker #170
On a machine where the hub runs anddevstack node agent runs for the same pool, both report to the coordinator every 15 s as the same member. They use the same membership in the per-user state: pool_dir(token_path().parent(), pool) in crates/devstack-hub/src/share.rs and member_dir() in crates/devstack/src/poolcmd.rs. The coordinator keeps only the last report (reports.insert(m.id, r) in crates/devstack-node/src/coordinator.rs, report).
The hub's report carries api: None and leases: []. After each hub report:
The API is gone: placement treats the machine as "runs no node agent" until the agent reports again.
Its leases are dropped: the coordinator takes "not in the report" as "no longer held" (leases.retain(...), None => l.state == "offered" && ...). The agent's next report adds them back through the "coordinator restarted" path with:
a new created,
a new token,
shared: None: a lane's sharing (ADR-0035) is lost.
Found by reading the code (2026-10-21), not reproduced yet. It does not show today because agents run on servers without a hub. It shows as soon as a developer machine runs both.
Fix
One reporter per machine and pool:
Interim: the agent holds a lock file in its node/ directory. The hub's share loop does not report for a pool while that lock is held: the agent reports the machine then, including total and GPUs.
A test with a coordinator, a hub and an agent of the same member: across several report rounds the node's api stays, and a running lease keeps its created and its sharing.
Activity