hero_compute auto-heartbeat — keep nodes online (F14) #70
Labels
No labels
meeting-notes
meeting-sensitive
meeting-transcript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/home#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
hero_compute nodes register with the explorer and send heartbeats to stay online. However, the heartbeat TTL expires and the node goes offline, requiring manual intervention to bring it back.
This means farmer nodes periodically disappear from the catalog until someone manually restarts the heartbeat.
Current behavior
hero_compute_serverregisters with explorer on startupOptions to investigate
Option A: Background task in marketplace backend
Option B: Fix in hero_compute_server itself
Option C: Systemd timer on each compute node
Investigation needed before implementation
Repos
hero_compute(upstream) orprojectmycelium_marketplace_backend(workaround)Priority
Medium — affects farmer reliability but has a manual workaround.
— mik-tf
Investigation Complete — Not a Marketplace Issue
Root Cause
The heartbeat is a push-based system entirely within hero_compute:
Key Files (upstream in hero_compute)
hero_compute_server/src/heartbeat_sender.rshero_compute_explorer/src/explorer/heartbeat.rshero_compute_explorer/src/explorer/rpc.rsnode_heartbeatRPC callsEnv Vars That Control It
HERO_COMPUTE_HEARTBEAT_INTERVAL_SECSHERO_COMPUTE_OFFLINE_THRESHOLD_SECSEXPLORER_ADDRESSESLikely Root Cause on Dev
EXPLORER_ADDRESSESmay not be set on the compute server running on node 50Resolution
Closing as not-a-marketplace-issue. The fix belongs in:
EXPLORER_ADDRESSESis baked into node configNext step: MOS bare-metal deployment testing (see mycelium_code/home#55 for production infra)
Signed: mik-tf