Mac at Any Scale namespace.so · 251 points · 134 comments · HN thread TL;DR Name...
HN Best 30 @best30
Mac at Any Scale namespace.so · 251 points · 134 comments · HN thread
TL;DR Namespace, a CI and cloud-runner company, describes how it racks hundreds of MacBook Pros (and later Mac minis and Studios) in its datacenters to offer macOS instances for iOS builds and testing. The post covers hardware cabling and heat issues, FileVault and USB NIC bugs, Apple Virtualization framework limits (two macOS VMs per host), storage via sparse APFS-style images, and a BitTorrent-like peer-to-peer image distribution system.
- Mac minis were ordered in January and delivered in July, and Apple's uneven CPU rollout (no M5 for 10 months, then M6 first) pushed the company to use MacBooks instead.
- Each MacBook gets an IP KVM for remote management, an external 10G Ethernet NIC, and four power cables; 48 power cables per shelf plus 12 Ethernet cables.
- Apple Virtualization allows only two macOS VMs per physical Mac, so instances are sized as halves (6 or 12 cores on 14-core minis, 8 or 16 on 18-core MacBooks).
- FileVault unlock after an unplanned reboot times out after 5 minutes, and the team says a reboot via fdesetup authrestart keeps the disk unlocked.
- Images grow to about 500 GB each (2 TB total), so they are stored as layered sparse images in a registry and materialized on each node's SSD via peer-to-peer transfer rather than NBD.
- Guest networking runs through a gVisor userspace TCP/IP stack and reaches about 4 Gbps upstream, below line rate.
Discussion The thread mixes admiration for the engineering with frustration at Apple's lack of enterprise and server offerings. Many commenters argue Apple does not care about this market, and some suggest a rack-mounted Mac mini or Xserve-style product. A large side debate concerns the economics of renting versus buying Macs for CI, with several commenters saying a Mac mini pays for itself within months. Others raise safety concerns about hundreds of laptop lithium batteries in a datacenter, and debate Apple's EULA on virtualizing macOS. The author answers questions in the thread. Overall the mood is curious and mostly appreciative, with a current of cynicism about Apple.
- Apple neglects enterprise and server hardware, forcing workarounds (many): Commenters say Apple has no server SKU and treats enterprise customers poorly, so companies like this one must build around limits. Some suggest a rack-mount Mac or Xserve-like product would sell well despite low volume.
- Buying Mac hardware beats renting cloud Macs on cost (many): Several commenters compare cloud per-minute pricing with the cost of a Mac mini, saying it breaks even in months. Resale value of Macs is cited as further favoring ownership, though some note that scaling up is harder with owned hardware.
- Laptop batteries in a datacenter raise fire and risk concerns (some): One commenter worries about the density of LiPo batteries per rack and suggests the datacenter operator should be informed. Others reply that controlled temperatures, good cells and datacenter fire suppression make the risk small.
- Apple's developer tooling and CI are still painful (some): Some say Xcode Cloud and Apple's signing and build tooling are poor compared with other platforms. Others report smooth experiences with Xcode Cloud and modern SwiftUI, and say the tools have improved.
- Apple's two-VM limit and EULA are restrictive (a few): Commenters question whether the two-VM cap and the EULA's ban on running macOS on non-Apple hardware make sense, arguing developers are forced to buy Macs. Others note Apple's limits are business choices and the EULA is contractually binding.
- Practical first-hand tips for hosting Macs (a few): A home Mac mini server owner reports that FileVault's boot password gate blocks headless use. Another commenter suggests disabling USB restricted mode and enabling MDM and SSH access for hosts, and an AWS user describes dedicated-host delays and a 24-hour minimum.
Links from the comments
- xtool, a cross-platform iOS build tool that can build without a Mac, though it still needs Xcode files from macOS
- OSX-KVM project for running macOS under KVM/QEMU on amd64 hardware
- Scaleway's write-up on turning Mac minis into dedicated servers
- AWS EC2 Mac instances documentation, cited for FileVault handling and the 24-hour minimum
- Report that MacStadium was an early offering of Mac minis in datacenters
#macOS #datacenter #virtualization #iOSDevelopment #infrastructure #Apple