I have been setting up a portable four-node edge computing cluster using single-board computers to run lightweight Ray jobs locally. To save time setting up each node, I created a base Linux environment, configured our Python dependencies, and flashed the system image across all memory cards using the utility recommended on their website during my research. The head node initialises properly, but I am running into strange stability problems once the worker processes kick off.
After running ray start to join the workers to the cluster, the head node registers them for a few minutes, but then the workers randomly drop out with heartbeat timeout errors. Inspecting the logs reveals unexpected D-Bus machine-id conflicts and duplicated network identifier traces across the nodes, which seems to disrupt GCS registration and cause actors to crash mid-execution.
Has anyone encountered node identity or heartbeat dropouts when deploying Ray across nodes created from cloned disk images? I would appreciate any advice on the proper cleanup steps needed to sanitize cloned images before spinning up a Ray runtime across identical hardware.
Yes, cloning disk images across nodes can cause issues with Ray due to duplicated machine identifiers (like /etc/machine-id), network hostnames, and possibly MAC addresses. These duplicates confuse Ray’s GCS and heartbeat system, leading to node dropouts and registration failures, as you observed. Each Ray node must have a unique machine identity and network configuration for stable operation. This is a common pitfall when deploying clusters from cloned images, as confirmed by similar reports in the Ray community and general distributed systems best practices.
To resolve this, after flashing the image but before starting Ray, you should:
Regenerate /etc/machine-id on each node (e.g., sudo rm /etc/machine-id && sudo systemd-machine-id-setup).
Ensure each node has a unique hostname (sudo hostnamectl set-hostname <unique-name>).
Check that network interfaces have unique MAC addresses (if not, regenerate or manually assign).
Reboot each node after these changes.
This will ensure Ray can distinguish nodes and maintain healthy heartbeats and GCS registration. Would you like more detail or a step-by-step script for these cleanup steps?