19 inch rack
A Mac mini Cluster in a 19 Inch Rack: Eight Minis and a Mac Studio in 12U
A Mac mini is a strange kind of server. It is quiet, it sips power, it runs macOS, and it costs less than most rack servers with comparable performance. That combination is why people keep stacking them. I wanted to see what a proper cluster looks like in a 19 inch rack: eight minis, a Mac Studio, a switch and a UPS, all in 12U.
The uses I had in mind are the usual ones. Build farm and CI runners for Apple platforms, local LLM inference, and render nodes. All three want many identical machines on a fast network with predictable power and cooling. Here is the layout, top to bottom, and the reasoning behind it.
The mount for this build:
19" Apple Mac Mini M6 / M5 Pro / M4 / M4 Pro 4-Bay Rack Mount - 3UTo skip ahead, open this exact layout in the rack planner. You can swap devices, change the height and get every mount in one cart. Gear with its own rack ears, such as the switch and the UPS here, is in the planner as well and shows as rack-ready.
The layout at a glance
Twelve units, top to bottom. U1 is a UniFi Switch Pro 24. U2 to U4 hold four Mac minis in a 3U 4-Bay mount. U5 to U7 hold four more in a second 4-Bay. U8 to U10 hold a Mac Studio in its own 3U mount. U11 and U12 are an APC Smart-UPS SMT1500RM2UC.
The switch and the UPS are rack-ready and bring their own ears. Everything else sits in mounts I design and print. That is the whole bill of materials, and it fits in one standard 19 inch rack segment, using the EIA-310 spacing every rack follows.
The logic is simple. Network on top, compute in the middle, power at the bottom. Every machine is reachable from the front, and nothing is behind anything else.
What each workload asks of the rack
Build farms and CI runners are the easiest case. Jobs are short, they are spread across nodes, and a dead machine only costs you capacity. The things that matter are network speed to your artifact storage, and a clean way to re-image a node. Keep a known good image and a written procedure, and eight identical minis become a very forgiving pool.
Local LLM inference is fussier. Memory is the constraint, so the mix of machines matters more than the count. This is where the Studio earns its slot, and where a few minis can serve smaller models side by side. Think about which node answers requests and which ones do the work, and keep that split visible in your labels.
Render nodes sit in between. They run hot for long stretches rather than in bursts, so they are the best test of your airflow. If the rack stays comfortable during a long render, it will handle the other two uses without complaint.
Mixed use is fine too. Nothing in the layout locks you in, since each mini sits in its own bay and can change jobs without touching the others.
U1: the switch and the uplink
Nine machines need nine network ports at minimum, and the UniFi Switch Pro 24 has plenty. It sits at the top so the patch leads run down to the minis in short, tidy arcs. Short leads matter more than people expect. A cluster has a lot of cables, and every extra bit of slack becomes a loop that blocks airflow or hides a label.
Think about the uplink in general terms before you buy anything. A build farm moving large artifacts, or a set of inference nodes sharing model files, can saturate gigabit quickly. If your switch and your machines support 10G, an uplink to the rest of your network at that speed keeps the cluster from being the bottleneck. If not, plan the traffic so that the heavy transfers stay inside the rack.
Either way, decide which ports go to which machine and write it down. A cluster is only manageable if port numbers follow a pattern.
U2 to U7: eight minis in two 4-Bay mounts
This is the heart of the build. Each 19" Apple Mac Mini M6 / M5 Pro / M4 / M4 Pro 4-Bay Rack Mount - 3U holds four minis in a 3U block. Two of them stacked give you eight machines in 6U, which is a density you cannot get with any other approach that keeps each mini accessible from the front.
Fill the bays in a fixed order and stick to it. Top left is node 1, top right is node 2, and so on down the block. When something goes wrong at 2 a.m., you want to know which physical box is node 6 without opening a spreadsheet.
Because the minis are the same machine, you can treat them like cattle. If one fails, you swap it and re-image it. That is the real advantage of a uniform cluster, and a uniform rack layout supports it.
If you are not ready for eight, start smaller. A single mini or two fits the Apple Mac Mini M6 / M5 Pro / M4 / M4 Pro 19" Rack Mount - 2U (Modular), and you can grow into the 4-Bay later. Leave the U space for it and the rack will not need rearranging.
U8 to U10: the Mac Studio
The Mac Studio takes three units in the 19" Apple Mac Studio Rack Mount - 3U (Modular). I put it below the minis for two reasons. It is the heavier machine, and it is the one that most often does the heavy job: a bigger model for local inference, or a head node that coordinates the rest.
It is also the machine I am most likely to treat differently. It might be the one with a display attached, the one I log in to directly, or the one that runs a job scheduler. Giving it its own 3U block makes it visually distinct and easy to find.
For LLM work in particular, a cluster of minis and one Studio makes a reasonable split. The Studio takes the larger model, and the minis take smaller models or run several instances in parallel. For render nodes and CI, the Studio can be your fastest runner, and the minis carry the volume.
Power, and why the UPS goes at the bottom
The APC Smart-UPS SMT1500RM2UC is a 2U rack-ready unit, and it takes U11 and U12 at the bottom. It is the heaviest item, so it goes lowest. The power cord also tends to leave from the floor anyway.
Cluster power deserves a little planning. Nine machines idle at low draw, but a busy cluster can pull much more, and all of them tend to spike together when a job starts. Check the load you expect against the UPS rating with some margin, and do not guess. If the load is close to the limit, split it across two circuits or leave some machines off the battery.
Think about shutdown too. A UPS that can only hold the cluster for a minute is still useful if it triggers a clean shutdown. Set that up before you need it, not after the first outage.
Finally, put the UPS outlets in a pattern that matches the node numbering. Label each power lead at both ends. When you have nine similar cables, labels are not optional.
Airflow, remote management and cable labels
Airflow in this rack goes front to back, the same direction as the switch and the UPS. The minis are efficient, but eight of them in a stack still add up. Keep the front of the rack clear, leave the back unobstructed, and do not push the rack tight against a wall. If your room runs warm, a small fan unit at the rear helps more than any clever arrangement inside.
Remote management is what makes a cluster practical. You will not want to walk to the rack to restart a build runner. Turn on screen sharing or SSH on every node, give each a fixed address or a reserved lease, and use a naming scheme that matches the physical position. Some people add a managed power outlet strip so they can power cycle a stuck machine, which is worth thinking about if the cluster lives somewhere inconvenient.
Then there is cable labeling, which sounds dull until it saves an evening. Label both ends of every network lead and every power lead, using the same node number. A cheap label printer pays for itself the first time you trace a cable in the dark.
Keep a simple sheet next to the rack that lists node number, bay position, switch port and IP address. It takes ten minutes to write and removes a whole category of mistakes.
Wrap-up
Switch on top, eight minis in two 4-Bay mounts, the Studio below them, and a UPS at the bottom. That is a 12U cluster with every machine reachable from the front, short cables, and clear airflow. If you want to change the count or the height, you can open this exact layout in the rack planner, swap devices, change the height and get every mount in one cart.
Start with the number of machines you need now, label everything, and leave room to grow.
Mounts in this build
Not sure which mount you need?
Search by device and we'll show the mount that fits it.
Find my mount →