Prepare the Macs for a cluster
Enterprise
A model split across Macs needs every one of them. If one Mac sleeps, restarts for an update or stays off after a power cut, the model stops answering. Do the steps on this page once on each Mac before you add it to a Cluster. Most of them are macOS settings.
What each Mac needs
Section titled “What each Mac needs”- Apple silicon and macOS 26 or later.
- RDMA turned on. See Turn on RDMA.
- Never sleeps, and starts again after a power cut. See Keep the Mac awake.
- Logs in after a restart, so Nexus starts. See Log in after a restart.
- macOS updates don’t install on their own. See Control macOS updates.
- Thunderbolt cables to every other Mac, and a wired connection to your local network. See Cables and network.
- In your fleet, added with This Mac will join a Thunderbolt cluster turned on. See Add the Mac to Nexus.
Turn on RDMA
Section titled “Turn on RDMA”RDMA lets the Macs send model data to each other directly over Thunderbolt. It is off by default, and you can turn it on only from macOS Recovery. You need to be at the Mac, with a keyboard and a display.
-
Choose Apple menu > Shut Down.
-
Press and hold the power button until you see Loading startup options.
-
Click Options, then click Continue. If macOS asks, pick an administrator account and enter its password.
-
From the menu bar, choose Utilities > Terminal.
-
Run this command:
rdma_ctl enable -
Choose Apple menu > Restart.
To check it, click Check cluster on the Cluster page. A Mac without RDMA shows RDMA off.
Keep the Mac awake
Section titled “Keep the Mac awake”A Mac that sleeps drops out of the cluster. Set these on each Mac.
On a Mac Studio, Mac mini or Mac Pro, open System Settings > Energy:
- Turn on Prevent automatic sleeping when the display is off.
- Turn on Wake for network access.
- Turn on Start up automatically after a power failure.
- If you see Low Power Mode or Energy Mode, don’t use Low Power. It makes the GPU slower.
The display can still sleep. That doesn’t affect the cluster.
To do the same from Terminal, for example over SSH, run:
sudo pmset -a sleep 0 womp 1 autorestart 1On a MacBook, open System Settings > Battery > Options, and turn on Prevent automatic sleeping on power adapter when the display is off. Keep it plugged in. A MacBook doesn’t start on its own after a power cut.
Log in after a restart
Section titled “Log in after a restart”Nexus runs in your user account on the Mac. After a restart or a power cut, it starts only when that account logs in. Until then, the Mac stays out of the cluster.
Pick one of these:
- Log in automatically. Open System Settings > Users & Groups, and set Automatically log in as to the account that runs Nexus. macOS offers this only when FileVault is off. Anyone at the Mac can then use it, so do this only for Macs in a locked room.
- Keep FileVault on, and log in yourself. After each restart or power cut, someone must log in at the Mac. Plan for that before you restart a Mac you can’t reach.
Control macOS updates
Section titled “Control macOS updates”An automatic macOS update restarts the Mac, and the model on it stops. Update the Macs yourself, at a quiet time.
- Open System Settings > General > Software Update.
- Click the info button next to Automatic Updates.
- Turn off Install macOS updates.
Before you update, unload the models on the cluster. Update every Mac to the same macOS version. Then update Nexus on every Mac to the same version, and click Check cluster.
Cables and network
Section titled “Cables and network”- Thunderbolt: cable every Mac to every other Mac. A model split evenly sends a lot of data over the cables, so use the best Thunderbolt cables your Macs support. See How a model is split across Macs.
- Local network: connect each Mac to your trusted local network with Ethernet. Wi-Fi can drop out. A fixed address for each Mac, set in your router, is best. If a Mac gets a new address, Check cluster offers to reconnect it.
- Don’t move cables while a model runs. Unload the models first. After you change a cable, click Check cluster.
After a restart, macOS can put the Thunderbolt ports back into its Thunderbolt Bridge. Nexus takes them back on its own. If Check cluster still says a port is in the Thunderbolt Bridge, click Repair connections.
Add the Mac to Nexus
Section titled “Add the Mac to Nexus”- Add the Mac to your fleet. In Machines > Add a machine, turn on This Mac will join a Thunderbolt cluster before you copy the command. See Add a machine without a screen.
- On the Mac, click Allow when macOS asks to let Msty Nexus find devices on local networks. Enter the Mac’s password once when setup asks.
- On the Mac that manages the cluster, open Cluster and add the Mac. See Add your Macs.
- Click Check cluster. Fix each problem it shows, then click Check again until it says Everything works.
Restart a stuck Mac
Section titled “Restart a stuck Mac”Sometimes a model split across Macs doesn’t stop cleanly. This can happen when a Mac loses power or a cable, or a model stops while it loads. Part of the model then stays stuck on a Mac. It holds the Mac’s GPU, memory or Thunderbolt ports, and the cluster can’t use them. A Mac’s GPU can also get stuck on while it does no work. Restarting Nexus doesn’t clear any of these. Only a restart of the Mac does.
A Mac is stuck when you see one of these:
- Check cluster marks the Mac Stuck model, Memory stuck or Thunderbolt stuck.
- A cable to that Mac fails the check, but nobody touched it.
- A model fails to load on that Mac, though the Mac should have room.
- The Mac’s GPU shows near 100% busy in Machine overview, but no model runs on it.
To fix it:
- Stop the apps that send requests to the cluster’s models.
- On the Cluster page, unload the models that use that Mac, if Nexus lets you.
- Restart only the Mac that is stuck: choose Apple menu > Restart. From Terminal, for example over SSH, run
sudo shutdown -r now. - If the Mac hasn’t restarted after 5 minutes, press and hold its power button until it turns off. Then press the button again to start it.
- Log in to the Mac, if it doesn’t log in on its own.
- On the managing Mac, click Check cluster. If a port is in the Thunderbolt Bridge, click Repair connections. Click Check again until it says Everything works.
- Load the model again. If a model shows needs attention, open its menu and click Try again.