<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Violet Caulfield&apos;s Blog</title><description>Notes on software, open source, and whatever else I&apos;m working on</description><link>https://violetcaulfield.com/</link><item><title>iSelfhost • My Mac Mini Cluster</title><link>https://violetcaulfield.com/blog/2026-11-23-selfhosting-with-apple-silicon</link><guid isPermaLink="true">https://violetcaulfield.com/blog/2026-11-23-selfhosting-with-apple-silicon</guid><description>Self-hosting on a six-node Mac Mini cluster with Nomad, Consul, and Ansible</description><pubDate>Mon, 23 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;figure&gt;&lt;img src=&quot;https://violetcaulfield.com/_astro/iselfhost-rack.eMRGLiM0_Z1WXleu.webp&quot; srcset=&quot;/_astro/iselfhost-rack.eMRGLiM0_Z2jrNnS.webp 672w, /_astro/iselfhost-rack.eMRGLiM0_x9ok5.webp 1344w, /_astro/iselfhost-rack.eMRGLiM0_Z1WXleu.webp 1971w&quot; alt=&quot;A rack of UniFi networking gear above six Mac Minis in 2 Sonnettech RackMac Mini enclosures, labeled orion, taurus, cassiopeia, galileo, hopper, and lovelace&quot; sizes=&quot;(max-width: 42rem) 100vw, 42rem&quot; loading=&quot;eager&quot; fetchpriority=&quot;high&quot; decoding=&quot;async&quot; width=&quot;1971&quot; height=&quot;2000&quot;&gt;&lt;figcaption&gt;Wicked Power; Unapologetically Aluminum; An Orchestrated Apple Orchard&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;an-apple-a-day&quot;&gt;An Apple a Day&lt;/h2&gt;
&lt;p&gt;I recently made a
&lt;a href=&quot;https://www.linkedin.com/posts/violet-caulfield-0a422b132_homelab-mac-jellyfin-share-7528837465164447744-ig4e/&quot;&gt;post on my LinkedIn&lt;/a&gt;
that got some attention. It was a picture of my racked Mac Minis, and a brief overview of how they
power my digital life. I got some asks for a blog post discussing it further, and I’m more than
happy to oblige :)&lt;/p&gt;
&lt;p&gt;I started hoarding M4 &lt;a href=&quot;https://www.apple.com/mac-mini/&quot;&gt;Mac Minis&lt;/a&gt; at the beginning of 2025, back
when the base model Mac Mini would set you back $599. Since then, my homelab’s macOS footprint has
grown from one node to six, with a full suite of infrastructure-as-code tooling behind it.&lt;/p&gt;
&lt;p&gt;Nearly two years in, I’ve gotten into a rhythm working with them, and I have plenty of thoughts
(&lt;code&gt;and code!&lt;/code&gt;) to share.&lt;/p&gt;
&lt;h2 id=&quot;bearing-fruition&quot;&gt;Bearing Fruition&lt;/h2&gt;
&lt;p&gt;Part of why I went down this path was curiosity about Apple Silicon’s performance per watt. A Mac
Mini sips power at idle, runs damn near silent, and still has a Media Engine for video, a GPU that
speaks Metal, and a Neural Engine for CoreML workloads. For a homelab that’s on 24/7, and for
someone who’s already cozy with Apple products, that’s a pretty compelling package.&lt;/p&gt;
&lt;p&gt;The other part was practical. I work on &lt;a href=&quot;https://jellify.app&quot;&gt;Jellify&lt;/a&gt;, a music player for Jellyfin,
and it ships on iOS. Building and testing an iOS app, even in a CI pipeline, requires Xcode, which
requires macOS. If I was going to have Macs in the rack anyway, they might as well pull their weight
running everything else too.&lt;/p&gt;
&lt;p&gt;Here’s what that rack looks like, from the network on down.&lt;/p&gt;
&lt;h3 id=&quot;the-network&quot;&gt;The Network&lt;/h3&gt;
&lt;p&gt;My homelab uses &lt;a href=&quot;https://ui.com&quot;&gt;UniFi&lt;/a&gt; networking throughout. The
&lt;a href=&quot;https://store.ui.com/us/en/products/udm-pro&quot;&gt;Dream Machine Pro&lt;/a&gt; handles routing and doubles as the
console for managing everything remotely. The
&lt;a href=&quot;https://store.ui.com/us/en/products/usw-aggregation&quot;&gt;Aggregation switch&lt;/a&gt; provides the 10Gbit links,
and a &lt;a href=&quot;https://store.ui.com/us/en/products/usw-24&quot;&gt;24-port switch&lt;/a&gt; handles everything that doesn’t
need the extra bandwidth.&lt;/p&gt;
&lt;p&gt;Only the Cosmonautical datacenter (more on the datacenters in a sec) gets the 10Gbit link, because
of how much data its nodes move between each other. Jellyfin, Nextcloud, and friends read their
libraries over NFS from the UNAS, SeaweedFS replicates every write across its three volume servers,
and Patroni streams every Postgres change from the primary to its replicas. A gigabit link tops out
around 115 MB/s, which that mix can eat up on its own, and when it does, everything sharing the link
slows down with it. With ten times the headroom, a replica catching up or a library scan doesn’t get
in the way of someone’s movie. The Jellify nodes mostly talk to GitHub, where my internet connection
is the bottleneck long before the switch is, so 1Gbit through the USW-24 is plenty.&lt;/p&gt;
&lt;p&gt;My favorite &lt;a href=&quot;https://en.wikipedia.org/wiki/Ubiquiti&quot;&gt;Ubiquiti Networks&lt;/a&gt; fun fact is that founder
&lt;a href=&quot;https://en.wikipedia.org/wiki/Robert_Pera&quot;&gt;Robert Pera&lt;/a&gt; had worked at Apple before starting the
company, so it seems poetic to &lt;em&gt;unify&lt;/em&gt; Apple and Ubiquiti hardware together.&lt;/p&gt;
&lt;h3 id=&quot;the-compute&quot;&gt;The Compute&lt;/h3&gt;
&lt;p&gt;The six Mac Minis live in two Sonnet
&lt;a href=&quot;https://www.sonnettech.com/product/rackmacmini.html&quot;&gt;RackMac Mini&lt;/a&gt; enclosures, three to a 2U shelf,
and each shelf is its own Nomad datacenter.&lt;/p&gt;
&lt;figure class=&quot;rack&quot; data-astro-cid-o3pov7ks&gt;&lt;div class=&quot;enclosure core&quot; data-astro-cid-o3pov7ks&gt;&lt;div class=&quot;faceplate&quot; data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;model&quot; data-astro-cid-o3pov7ks&gt;RackMac Mini · 2U&lt;/span&gt;&lt;span class=&quot;datacenter&quot; data-astro-cid-o3pov7ks&gt;Cosmonautical&lt;/span&gt;&lt;/div&gt;&lt;ul class=&quot;bays&quot; data-astro-cid-o3pov7ks&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;orion&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4 Pro&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;24GB&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;taurus&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4 Pro&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;24GB&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;cassiopeia&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4 Pro&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;24GB&lt;/span&gt;&lt;span class=&quot;extra&quot; data-astro-cid-o3pov7ks&gt;+ Thunderbolt DAS, 10 HDDs&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;enclosure&quot; data-astro-cid-o3pov7ks&gt;&lt;div class=&quot;faceplate&quot; data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;model&quot; data-astro-cid-o3pov7ks&gt;RackMac Mini · 2U&lt;/span&gt;&lt;span class=&quot;datacenter&quot; data-astro-cid-o3pov7ks&gt;Jellify&lt;/span&gt;&lt;/div&gt;&lt;ul class=&quot;bays&quot; data-astro-cid-o3pov7ks&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;galileo&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;16GB&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;hopper&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;16GB&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-o3pov7ks&gt;&lt;span class=&quot;name&quot; data-astro-cid-o3pov7ks&gt;lovelace&lt;/span&gt;&lt;span class=&quot;chip&quot; data-astro-cid-o3pov7ks&gt;M4&lt;/span&gt;&lt;span class=&quot;memory&quot; data-astro-cid-o3pov7ks&gt;16GB&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;figcaption data-astro-cid-o3pov7ks&gt;Two shelves, three Minis each, one Nomad datacenter per shelf.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The top shelf, &lt;strong&gt;Cosmonautical&lt;/strong&gt;, is the core cluster. Its three M4 Pros run Nomad and Consul as
server-client combos and host everything I personally rely on, from Postgres to Jellyfin.&lt;/p&gt;
&lt;p&gt;The bottom shelf, &lt;strong&gt;Jellify&lt;/strong&gt;, is client-only. It runs
&lt;a href=&quot;https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners&quot;&gt;GitHub Actions runners&lt;/a&gt;
for Jellify and hosts &lt;a href=&quot;https://penpot.app&quot;&gt;Penpot&lt;/a&gt; for Jellify’s design work.
&lt;a href=&quot;https://developer.apple.com/xcode/&quot;&gt;Xcode&lt;/a&gt;, &lt;a href=&quot;https://maestro.mobile.dev&quot;&gt;Maestro&lt;/a&gt;, simulators, and
the &lt;a href=&quot;https://developer.android.com/studio&quot;&gt;Android SDK&lt;/a&gt; are all provisioned by Ansible, so a fresh
Mac goes from unboxed to building and testing apps with a single playbook run.&lt;/p&gt;
&lt;p&gt;Back in 1999, Apple ran &lt;a href=&quot;https://www.youtube.com/watch?v=OoxvLq0dFvw&quot;&gt;an ad&lt;/a&gt; bragging that the
&lt;a href=&quot;https://en.wikipedia.org/wiki/Power_Mac_G4&quot;&gt;Power Mac G4&lt;/a&gt; was so powerful it counted as a
supercomputer under US export rules, complete with tanks rolling in to guard it. Makes me wonder
what kind of equipment should be guarding this setup.&lt;/p&gt;
&lt;h3 id=&quot;the-storage&quot;&gt;The Storage&lt;/h3&gt;
&lt;p&gt;Bulk SSD storage lives on a &lt;a href=&quot;https://store.ui.com/us/en/products/unas-pro-8&quot;&gt;UNAS Pro 8&lt;/a&gt;, which
serves &lt;a href=&quot;https://en.wikipedia.org/wiki/Network_File_System&quot;&gt;NFS&lt;/a&gt; shares (music, books, ROMs and so
on) to the whole cluster. A DIY Thunderbolt DAS holds 10 hard drives and is attached directly to
Cassiopeia.&lt;/p&gt;
&lt;h3 id=&quot;altogether-now&quot;&gt;Altogether Now&lt;/h3&gt;
&lt;p&gt;Here’s how it all fits together:&lt;/p&gt;
&lt;figure class=&quot;cluster&quot; data-astro-cid-hqnaa5v7&gt;&lt;div class=&quot;router&quot; data-astro-cid-hqnaa5v7&gt;&lt;strong data-astro-cid-hqnaa5v7&gt;Dream Machine Pro&lt;/strong&gt;&lt;span data-astro-cid-hqnaa5v7&gt;router and UniFi OS console&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;datacenters&quot; data-astro-cid-hqnaa5v7&gt;&lt;div class=&quot;dc fast&quot; data-astro-cid-hqnaa5v7&gt;&lt;div class=&quot;switch&quot; data-astro-cid-hqnaa5v7&gt;&lt;span data-astro-cid-hqnaa5v7&gt;USW Aggregation&lt;/span&gt;&lt;span class=&quot;speed&quot; data-astro-cid-hqnaa5v7&gt;10 Gbit&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;name&quot; data-astro-cid-hqnaa5v7&gt;Cosmonautical&lt;/p&gt;&lt;ul class=&quot;nodes&quot; data-astro-cid-hqnaa5v7&gt;&lt;li data-astro-cid-hqnaa5v7&gt;orion&lt;/li&gt;&lt;li data-astro-cid-hqnaa5v7&gt;taurus&lt;/li&gt;&lt;li data-astro-cid-hqnaa5v7&gt;cassiopeia&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;traffic&quot; data-astro-cid-hqnaa5v7&gt;NFS reads, SeaweedFS replication, Patroni streaming&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;dc&quot; data-astro-cid-hqnaa5v7&gt;&lt;div class=&quot;switch&quot; data-astro-cid-hqnaa5v7&gt;&lt;span data-astro-cid-hqnaa5v7&gt;USW-24&lt;/span&gt;&lt;span class=&quot;speed&quot; data-astro-cid-hqnaa5v7&gt;1 Gbit&lt;/span&gt;&lt;/div&gt;&lt;p class=&quot;name&quot; data-astro-cid-hqnaa5v7&gt;Jellify&lt;/p&gt;&lt;ul class=&quot;nodes&quot; data-astro-cid-hqnaa5v7&gt;&lt;li data-astro-cid-hqnaa5v7&gt;galileo&lt;/li&gt;&lt;li data-astro-cid-hqnaa5v7&gt;hopper&lt;/li&gt;&lt;li data-astro-cid-hqnaa5v7&gt;lovelace&lt;/li&gt;&lt;li class=&quot;extra&quot; data-astro-cid-hqnaa5v7&gt;+ x64 Linux nodes&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;traffic&quot; data-astro-cid-hqnaa5v7&gt;Mostly GitHub, so the internet uplink is the bottleneck&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;storage&quot; data-astro-cid-hqnaa5v7&gt;&lt;strong data-astro-cid-hqnaa5v7&gt;UNAS Pro 8&lt;/strong&gt;&lt;span data-astro-cid-hqnaa5v7&gt;NFS shares (music, books, ROMs) mounted across the cluster&lt;/span&gt;&lt;/div&gt;&lt;figcaption data-astro-cid-hqnaa5v7&gt;Two Nomad datacenters, one rack. Only Cosmonautical gets the 10 Gbit backbone.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;software-sells-hardware&quot;&gt;Software Sells Hardware&lt;/h2&gt;
&lt;p&gt;Hardware is nothing without the software to leverage it. As you might imagine, running
bleeding-edge, proprietary hardware does limit the fun, but there is still plenty of fun to be had.&lt;/p&gt;
&lt;h3 id=&quot;the-os-macos&quot;&gt;The OS: macOS&lt;/h3&gt;
&lt;p&gt;The base of the stack is &lt;a href=&quot;https://www.apple.com/macos/&quot;&gt;macOS&lt;/a&gt;. Linux &lt;em&gt;does&lt;/em&gt; support Apple Silicon
thanks to the people way smarter than me working on &lt;a href=&quot;https://asahilinux.org&quot;&gt;Asahi Linux&lt;/a&gt;, but it
&lt;a href=&quot;https://asahilinux.org/docs/platform/feature-support/m4/&quot;&gt;doesn’t support M4 chips&lt;/a&gt; - at least as
of this writing.&lt;/p&gt;
&lt;p&gt;macOS is very much designed for the desktop, and most of the challenges come down to macOS assuming
there’s a person sitting in front of the screen, ready to click “Allow”.&lt;/p&gt;
&lt;h4 id=&quot;local-network-privacy&quot;&gt;Local Network Privacy&lt;/h4&gt;
&lt;p&gt;Since &lt;a href=&quot;https://en.wikipedia.org/wiki/MacOS_Sequoia&quot;&gt;macOS Sequoia&lt;/a&gt;, apps need
&lt;a href=&quot;https://developer.apple.com/documentation/technotes/tn3179-understanding-local-network-privacy&quot;&gt;permission to talk to devices on the local network&lt;/a&gt;,
and that permission is granted through a GUI prompt. That’s great on a laptop, but not on a headless
server. It’s tied to the binary’s code signature, so every time &lt;a href=&quot;https://brew.sh&quot;&gt;Homebrew&lt;/a&gt; upgrades
a service like &lt;code&gt;consul&lt;/code&gt; or &lt;code&gt;php&lt;/code&gt;, macOS treats the new binary as a stranger and wants a fresh click.
As far as I can tell this can’t be scripted either, since the permissions database is protected by
&lt;a href=&quot;https://support.apple.com/en-us/102149&quot;&gt;System Integrity Protection&lt;/a&gt;. It’s pretty frustrating: the
daemon logs &lt;code&gt;no route to host&lt;/code&gt; while &lt;code&gt;nc&lt;/code&gt; and &lt;code&gt;ssh&lt;/code&gt; to the exact same IP work just fine.&lt;/p&gt;
&lt;h4 id=&quot;removable-and-network-volumes&quot;&gt;Removable and Network Volumes&lt;/h4&gt;
&lt;p&gt;macOS gates removable and network volumes behind
&lt;a href=&quot;https://support.apple.com/guide/mac-help/control-access-to-files-and-folders-on-mac-mchld5a35146/mac&quot;&gt;privacy prompts&lt;/a&gt;,
so you get treated to gems like &lt;em&gt;“This application would like to access files on a removable
volume”&lt;/em&gt; and &lt;em&gt;“This application would like to access files on a network volume”&lt;/em&gt;. On a cluster whose
storage lives externally, that’s pretty much everything. Until someone clicks “Allow”, the task just
sits waiting to start up.&lt;/p&gt;
&lt;p&gt;Neither of these have been a dealbreaker for me, since nowadays these prompts only come up after I’m
doing upgrades, but it does mean I’m using macOS
&lt;a href=&quot;https://support.apple.com/guide/mac-help/share-the-screen-of-another-mac-mh14066/mac&quot;&gt;Screen Sharing&lt;/a&gt;
or connecting through &lt;a href=&quot;https://guacamole.apache.org&quot;&gt;Guacamole&lt;/a&gt; when things change to ensure that
everything is connecting properly.&lt;/p&gt;
&lt;h3 id=&quot;the-orchestrator-nomad&quot;&gt;The Orchestrator: Nomad&lt;/h3&gt;
&lt;p&gt;With multiple nodes running, I wanted to have an orchestrator to keep everything in check. Before
the Macs, my homelab ran on a 3-node &lt;a href=&quot;https://harvesterhci.io&quot;&gt;Harvester&lt;/a&gt; cluster, so
&lt;a href=&quot;https://kubernetes.io&quot;&gt;Kubernetes&lt;/a&gt; was what I reached for first. The problem is that Kubernetes is
built and designed with Linux in mind, relying on Linux primitives to do its job.&lt;/p&gt;
&lt;p&gt;I &lt;em&gt;could&lt;/em&gt; have run a Linux VM atop macOS to make this work, but that’s an extra layer of complexity
on every node and it walls workloads off from the things that are fun about Apple Silicon in the
first place: the Media Engine, &lt;a href=&quot;https://developer.apple.com/metal/&quot;&gt;Metal&lt;/a&gt;, and
&lt;a href=&quot;https://developer.apple.com/machine-learning/core-ml/&quot;&gt;CoreML&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.nomadproject.io&quot;&gt;Nomad&lt;/a&gt; ended up being a perfect fit. It’s a single macOS binary, and
its &lt;a href=&quot;https://developer.hashicorp.com/nomad/docs/job-declare/task-driver/raw_exec&quot;&gt;&lt;code&gt;raw_exec&lt;/code&gt;&lt;/a&gt; driver
can schedule jobs straight on the host. That means &lt;a href=&quot;https://jellyfin.org&quot;&gt;Jellyfin&lt;/a&gt; gets hardware
transcoding, &lt;a href=&quot;https://ollama.com&quot;&gt;Ollama&lt;/a&gt; gets Metal, and CoreML apps get the Neural Engine, all
without any GPU passthrough to set up. Nice.&lt;/p&gt;
&lt;p&gt;Nomad is also multi-platform, so the cluster isn’t locked into macOS. I’ve got Linux nodes in the
Jellify datacenter now, and if I ever want a Windows box, it can join too.&lt;/p&gt;
&lt;h4 id=&quot;the-container-runtime-apple-container&quot;&gt;The Container Runtime: Apple Container&lt;/h4&gt;
&lt;p&gt;Not everything I run ships as a native macOS app, though. A lot of apps I deploy only come as an OCI
image, and so I needed a container runtime to bring them online. The obvious choice is Docker,
whether through &lt;a href=&quot;https://www.docker.com/products/docker-desktop/&quot;&gt;Docker Desktop&lt;/a&gt; or something
lighter like &lt;a href=&quot;https://github.com/abiosoft/colima&quot;&gt;Colima&lt;/a&gt;. &lt;a href=&quot;https://podman.io&quot;&gt;Podman&lt;/a&gt; is also an
option, and even has a &lt;a href=&quot;https://github.com/hashicorp/nomad-driver-podman&quot;&gt;task driver for Nomad&lt;/a&gt;. I
opted instead to write my own task driver for Apple’s
&lt;a href=&quot;https://github.com/apple/container&quot;&gt;&lt;code&gt;container&lt;/code&gt;&lt;/a&gt; tool, which runs each Linux container in its own
lightweight VM on the
&lt;a href=&quot;https://developer.apple.com/documentation/virtualization&quot;&gt;Virtualization framework&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Docker Desktop, Colima, and Podman all work the same way on the Mac: they boot one big Linux VM in
the background and run every container inside of it. Colima trims the overhead of Docker Desktop,
but it’s still that same single shared VM. That VM is a box I have to size up front, carving out CPU
and memory whether anything is running or not, and when it gets wedged, every container on that node
goes down with it. It’s also one more thing for Nomad to know nothing about, since all it sees is a
CLI talking to a daemon that’s talking to a VM.&lt;/p&gt;
&lt;p&gt;Apple’s &lt;code&gt;container&lt;/code&gt; flips that around. There’s no shared VM to babysit; each container &lt;em&gt;is&lt;/em&gt; its own
VM, &lt;a href=&quot;https://github.com/apple/containerization&quot;&gt;booting in under a second&lt;/a&gt; and sized to what the job
asks for. When a Nomad allocation stops, its VM goes away and the memory goes back to macOS, ready
for another job to use. Every container also gets its own IP address, so there’s no port-forwarding
dance between the host and a VM, and one misbehaving container can’t take its neighbors out. Apple’s
&lt;a href=&quot;https://developer.apple.com/videos/play/wwdc2025/346/&quot;&gt;Meet Containerization&lt;/a&gt; session from WWDC25
goes deeper under the hood to show how it all works.&lt;/p&gt;
&lt;figure class=&quot;runtimes&quot; data-astro-cid-3xmisejk&gt;&lt;div class=&quot;panels&quot; data-astro-cid-3xmisejk&gt;&lt;div class=&quot;panel&quot; data-astro-cid-3xmisejk&gt;&lt;p class=&quot;label&quot; data-astro-cid-3xmisejk&gt;&lt;svg class=&quot;icon&quot; viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot; data-astro-cid-ccg5yoga&gt;&lt;path d=&quot;M21.81 10.25C21.75 10.21 21.25 9.82 20.17 9.82C19.89 9.82 19.61 9.85 19.33 9.9C19.12 8.5 17.95 7.79 17.9 7.76L17.61 7.59L17.43 7.86C17.19 8.22 17 8.63 16.92 9.05C16.72 9.85 16.84 10.61 17.25 11.26C16.76 11.54 15.96 11.61 15.79 11.61H2.62C2.28 11.61 2 11.89 2 12.24C2 13.39 2.18 14.54 2.58 15.62C3.03 16.81 3.71 17.69 4.58 18.23C5.56 18.83 7.17 19.17 9 19.17C9.79 19.17 10.61 19.1 11.42 18.95C12.54 18.75 13.62 18.36 14.61 17.79C15.43 17.32 16.16 16.72 16.78 16C17.83 14.83 18.45 13.5 18.9 12.35H19.09C20.23 12.35 20.94 11.89 21.33 11.5C21.59 11.26 21.78 10.97 21.92 10.63L22 10.39L21.81 10.25M3.85 11.24H5.61C5.69 11.24 5.77 11.17 5.77 11.08V9.5C5.77 9.42 5.7 9.34 5.61 9.34H3.85C3.76 9.34 3.69 9.41 3.69 9.5V11.08C3.7 11.17 3.76 11.24 3.85 11.24M6.28 11.24H8.04C8.12 11.24 8.2 11.17 8.2 11.08V9.5C8.2 9.42 8.13 9.34 8.04 9.34H6.28C6.19 9.34 6.12 9.41 6.12 9.5V11.08C6.13 11.17 6.19 11.24 6.28 11.24M8.75 11.24H10.5C10.6 11.24 10.67 11.17 10.67 11.08V9.5C10.67 9.42 10.61 9.34 10.5 9.34H8.75C8.67 9.34 8.6 9.41 8.6 9.5V11.08C8.6 11.17 8.66 11.24 8.75 11.24M11.19 11.24H12.96C13.04 11.24 13.11 11.17 13.11 11.08V9.5C13.11 9.42 13.05 9.34 12.96 9.34H11.19C11.11 9.34 11.04 9.41 11.04 9.5V11.08C11.04 11.17 11.11 11.24 11.19 11.24M6.28 9H8.04C8.12 9 8.2 8.91 8.2 8.82V7.25C8.2 7.16 8.13 7.09 8.04 7.09H6.28C6.19 7.09 6.12 7.15 6.12 7.25V8.82C6.13 8.91 6.19 9 6.28 9M8.75 9H10.5C10.6 9 10.67 8.91 10.67 8.82V7.25C10.67 7.16 10.61 7.09 10.5 7.09H8.75C8.67 7.09 8.6 7.15 8.6 7.25V8.82C8.6 8.91 8.66 9 8.75 9M11.19 9H12.96C13.04 9 13.11 8.91 13.11 8.82V7.25C13.11 7.16 13.04 7.09 12.96 7.09H11.19C11.11 7.09 11.04 7.15 11.04 7.25V8.82C11.04 8.91 11.11 9 11.19 9M11.19 6.72H12.96C13.04 6.72 13.11 6.65 13.11 6.56V5C13.11 4.9 13.04 4.83 12.96 4.83H11.19C11.11 4.83 11.04 4.89 11.04 5V6.56C11.04 6.64 11.11 6.72 11.19 6.72M13.65 11.24H15.41C15.5 11.24 15.57 11.17 15.57 11.08V9.5C15.57 9.42 15.5 9.34 15.41 9.34H13.65C13.57 9.34 13.5 9.41 13.5 9.5V11.08C13.5 11.17 13.57 11.24 13.65 11.24&quot; data-astro-cid-ccg5yoga&gt;&lt;/path&gt;&lt;/svg&gt;Docker Desktop, Colima, Podman&lt;/p&gt;&lt;div class=&quot;host&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;tag&quot; data-astro-cid-3xmisejk&gt;macOS&lt;/span&gt;&lt;div class=&quot;vm shared&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;tag&quot; data-astro-cid-3xmisejk&gt;One Linux VM, fixed CPU + RAM&lt;/span&gt;&lt;div class=&quot;containers&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;reserved&quot; data-astro-cid-3xmisejk&gt;reserved, sitting idle&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul class=&quot;notes&quot; data-astro-cid-3xmisejk&gt;&lt;li data-astro-cid-3xmisejk&gt;Sized up front, used or not&lt;/li&gt;&lt;li data-astro-cid-3xmisejk&gt;Ports forwarded host ↔ VM&lt;/li&gt;&lt;li data-astro-cid-3xmisejk&gt;VM wedges, every container goes down&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;panel apple&quot; data-astro-cid-3xmisejk&gt;&lt;p class=&quot;label&quot; data-astro-cid-3xmisejk&gt;&lt;svg class=&quot;icon&quot; viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot; data-astro-cid-ccg5yoga&gt;&lt;path d=&quot;M18.71,19.5C17.88,20.74 17,21.95 15.66,21.97C14.32,22 13.89,21.18 12.37,21.18C10.84,21.18 10.37,21.95 9.1,22C7.79,22.05 6.8,20.68 5.96,19.47C4.25,17 2.94,12.45 4.7,9.39C5.57,7.87 7.13,6.91 8.82,6.88C10.1,6.86 11.32,7.75 12.11,7.75C12.89,7.75 14.37,6.68 15.92,6.84C16.57,6.87 18.39,7.1 19.56,8.82C19.47,8.88 17.39,10.1 17.41,12.63C17.44,15.65 20.06,16.66 20.09,16.67C20.06,16.74 19.67,18.11 18.71,19.5M13,3.5C13.73,2.67 14.94,2.04 15.94,2C16.07,3.17 15.6,4.35 14.9,5.19C14.21,6.04 13.07,6.7 11.95,6.61C11.8,5.46 12.36,4.26 13,3.5Z&quot; data-astro-cid-ccg5yoga&gt;&lt;/path&gt;&lt;/svg&gt;Apple &lt;code data-astro-cid-3xmisejk&gt;container&lt;/code&gt;&lt;/p&gt;&lt;div class=&quot;host&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;tag&quot; data-astro-cid-3xmisejk&gt;macOS&lt;/span&gt;&lt;div class=&quot;vms&quot; data-astro-cid-3xmisejk&gt;&lt;div class=&quot;vm lg&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;ip&quot; data-astro-cid-3xmisejk&gt;192.168.64.2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;vm sm&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;ip&quot; data-astro-cid-3xmisejk&gt;192.168.64.3&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;vm md&quot; data-astro-cid-3xmisejk&gt;&lt;span class=&quot;ctr&quot; data-astro-cid-3xmisejk&gt;container&lt;/span&gt;&lt;span class=&quot;ip&quot; data-astro-cid-3xmisejk&gt;192.168.64.4&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;free&quot; data-astro-cid-3xmisejk&gt;free memory, back to macOS&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul class=&quot;notes&quot; data-astro-cid-3xmisejk&gt;&lt;li data-astro-cid-3xmisejk&gt;Each VM sized to its job&lt;/li&gt;&lt;li data-astro-cid-3xmisejk&gt;Own IP, no port forwarding&lt;/li&gt;&lt;li data-astro-cid-3xmisejk&gt;One fails, the rest keep running&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption data-astro-cid-3xmisejk&gt;Dashed boxes are VMs. One shared VM for everything, or one tiny VM per container.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;It’s also just… it’s Apple’s. It’s written in &lt;a href=&quot;https://www.swift.org&quot;&gt;Swift&lt;/a&gt; and built on the same
frameworks as the rest of the OS, so it gets better with every macOS release instead of fighting
against it. On a cluster that’s all-in on Apple Silicon where memory is at a premium, using Apple’s
own container runtime felt like the natural fit. It’s even open source.&lt;/p&gt;
&lt;p&gt;If you’d like to try the driver out for yourself, you can grab the latest release from
&lt;a href=&quot;https://github.com/anultravioletaurora/nomad-driver-container/releases&quot;&gt;my GitHub repository&lt;/a&gt;.
Feature requests welcome :)&lt;/p&gt;
&lt;h4 id=&quot;the-service-mesh-consul&quot;&gt;The Service Mesh: Consul&lt;/h4&gt;
&lt;p&gt;Being built under the same HashiCorp roof, Nomad pairs nicely with &lt;a href=&quot;https://www.consul.io&quot;&gt;Consul&lt;/a&gt;
for service discovery, health checks, and key/value storage. Every service registers itself with
Consul, so jobs find each other by name over
&lt;a href=&quot;https://developer.hashicorp.com/consul/docs/discover/dns&quot;&gt;DNS&lt;/a&gt; (&lt;code&gt;&amp;lt;service&amp;gt;.service.consul&lt;/code&gt;) instead
of hard-coded IPs.&lt;/p&gt;
&lt;p&gt;It pulls double duty, too: Consul is the
&lt;a href=&quot;https://patroni.readthedocs.io/en/latest/dynamic_configuration.html&quot;&gt;distributed config store&lt;/a&gt; that
&lt;a href=&quot;https://github.com/patroni/patroni&quot;&gt;Patroni&lt;/a&gt; uses to handle Postgres failover, and it’s where the
&lt;a href=&quot;https://developer.hashicorp.com/terraform/language/backend/consul&quot;&gt;Terraform state&lt;/a&gt; for my Nomad
jobs lives.&lt;/p&gt;
&lt;h3 id=&quot;the-management-ansible&quot;&gt;The Management: Ansible&lt;/h3&gt;
&lt;p&gt;Setting up six Macs by hand was never going to happen, I’m &lt;em&gt;far&lt;/em&gt; too lazy for that.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.ansible.com&quot;&gt;Ansible&lt;/a&gt; was the obvious choice for managing this six-pack. It runs over
SSH and only needs Python on the target, which the
&lt;a href=&quot;https://developer.apple.com/documentation/xcode/installing-the-command-line-tools&quot;&gt;Xcode Command Line Tools&lt;/a&gt;
provide. There’s no agent to install and nothing else to bootstrap beyond flipping on
&lt;a href=&quot;https://support.apple.com/guide/mac-help/allow-a-remote-computer-to-access-your-mac-mchlp1066/mac&quot;&gt;Remote Login&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Since adopting Ansible as my management tool of choice, I’ve built up quite a collection of
collections (Collectionception?). They’ve grown into a nice lil family and are
&lt;a href=&quot;https://galaxy.ansible.com/ui/namespaces/cosmonautical/&quot;&gt;all published on Ansible Galaxy&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Cosmonautical-Cloud/Macible&quot;&gt;&lt;code&gt;cosmonautical.macible&lt;/code&gt;&lt;/a&gt;: generic macOS roles for
any Mac, server or workstation. Software Update, Homebrew, Xcode, the Android SDK, NFS mounts,
container runtimes, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Cosmonautical-Cloud/Nomadintosh&quot;&gt;&lt;code&gt;cosmonautical.nomadintosh&lt;/code&gt;&lt;/a&gt;: Nomad and
Consul on macOS, built on top of Macible. Uses Homebrew for the binaries, and bootstraps
&lt;a href=&quot;https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html&quot;&gt;LaunchAgents&lt;/a&gt;
to keep them running.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Cosmonautical-Cloud/Nomaduntu&quot;&gt;&lt;code&gt;cosmonautical.nomaduntu&lt;/code&gt;&lt;/a&gt;: the Ubuntu
counterpart, using HashiCorp’s apt repo and &lt;a href=&quot;https://systemd.io&quot;&gt;systemd&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Cosmonautical-Cloud/Nomadable&quot;&gt;&lt;code&gt;cosmonautical.nomadable&lt;/code&gt;&lt;/a&gt;: the parent
playbook. It routes each host to Nomadintosh or Nomaduntu based on its OS, so a mixed macOS and
Ubuntu cluster deploys in a single run.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href=&quot;https://github.com/Jellify-Music/Nomad-Jobs&quot;&gt;Nomad jobs&lt;/a&gt; themselves are defined in
&lt;a href=&quot;https://www.terraform.io&quot;&gt;Terraform&lt;/a&gt;, and both the Ansible playbooks and Terraform configs get run
by &lt;a href=&quot;https://semaphoreui.com&quot;&gt;Semaphore&lt;/a&gt;, which (of course) runs as a Nomad job on the very cluster
it deploys to.&lt;/p&gt;
&lt;h3 id=&quot;apple--ibm-sounds-familiar&quot;&gt;Apple + IBM sounds familiar…&lt;/h3&gt;
&lt;p&gt;If you’re keeping track: Nomad, Consul, and Terraform come from
&lt;a href=&quot;https://en.wikipedia.org/wiki/HashiCorp&quot;&gt;HashiCorp&lt;/a&gt;, which IBM
&lt;a href=&quot;https://newsroom.ibm.com/2025-02-27-ibm-completes-acquisition-of-hashicorp,-creates-comprehensive,-end-to-end-hybrid-cloud-platform&quot;&gt;acquired in 2025&lt;/a&gt;,
and Ansible comes from &lt;a href=&quot;https://en.wikipedia.org/wiki/Red_Hat&quot;&gt;Red Hat&lt;/a&gt;, which IBM acquired back
in 2019. So my homelab is &lt;em&gt;technically&lt;/em&gt; Apple hardware running IBM software.&lt;/p&gt;
&lt;p&gt;Just missing Motorola in the mix and it’s like &lt;a href=&quot;https://en.wikipedia.org/wiki/AIM_alliance&quot;&gt;AIM&lt;/a&gt;
never dissolved.&lt;/p&gt;
&lt;h2 id=&quot;roll-out-the-barrels&quot;&gt;Roll Out the Barrels&lt;/h2&gt;
&lt;p&gt;The jobs I run on the rack can be broken up into tiers, based on how critical they are.&lt;/p&gt;
&lt;figure class=&quot;tiers&quot; data-astro-cid-yzp3b5ny&gt;&lt;section class=&quot;tier tier-3&quot; data-astro-cid-yzp3b5ny&gt;&lt;p class=&quot;heading&quot; data-astro-cid-yzp3b5ny&gt;&lt;span class=&quot;level&quot; data-astro-cid-yzp3b5ny&gt;Tier 3&lt;/span&gt;&lt;span class=&quot;name&quot; data-astro-cid-yzp3b5ny&gt;Secondary Applications&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;apps&quot; data-astro-cid-yzp3b5ny&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://github.com/rommapp/romm&quot; data-astro-cid-yzp3b5ny&gt;RomM&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://guacamole.apache.org&quot; data-astro-cid-yzp3b5ny&gt;Guacamole&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://github.com/seerr-team/seerr&quot; data-astro-cid-yzp3b5ny&gt;Seerr&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Media requests&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners&quot; data-astro-cid-yzp3b5ny&gt;GitHub Actions runners&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;For Jellify, more on those below&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;&lt;section class=&quot;tier tier-2&quot; data-astro-cid-yzp3b5ny&gt;&lt;p class=&quot;heading&quot; data-astro-cid-yzp3b5ny&gt;&lt;span class=&quot;level&quot; data-astro-cid-yzp3b5ny&gt;Tier 2&lt;/span&gt;&lt;span class=&quot;name&quot; data-astro-cid-yzp3b5ny&gt;Mission Critical Applications&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;apps&quot; data-astro-cid-yzp3b5ny&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://nextcloud.com&quot; data-astro-cid-yzp3b5ny&gt;Nextcloud&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Nomad service, plus batch jobs for cron, previews, NFS scans, and Backblaze backups&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://jellyfin.org&quot; data-astro-cid-yzp3b5ny&gt;Jellyfin&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Native .app, VideoToolbox transcoding. Dispatcharr tunes Live TV&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://github.com/NeptuneHub/AudioMuse-AI&quot; data-astro-cid-yzp3b5ny&gt;AudioMuse-AI&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Native .app, sonic analysis on CoreML&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://ollama.com&quot; data-astro-cid-yzp3b5ny&gt;Ollama + Open WebUI&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://penpot.app&quot; data-astro-cid-yzp3b5ny&gt;Penpot&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Apple container on the Jellify datacenter, SSO gated to GitHub teams&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;&lt;section class=&quot;tier tier-1&quot; data-astro-cid-yzp3b5ny&gt;&lt;p class=&quot;heading&quot; data-astro-cid-yzp3b5ny&gt;&lt;span class=&quot;level&quot; data-astro-cid-yzp3b5ny&gt;Tier 1&lt;/span&gt;&lt;span class=&quot;name&quot; data-astro-cid-yzp3b5ny&gt;Core Infrastructure&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;apps&quot; data-astro-cid-yzp3b5ny&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://www.postgresql.org&quot; data-astro-cid-yzp3b5ny&gt;Postgres&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Patroni with Consul as its DCS, pg_dumpall every 6 hours&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://redis.io&quot; data-astro-cid-yzp3b5ny&gt;Redis + Sentinel&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://github.com/seaweedfs/seaweedfs&quot; data-astro-cid-yzp3b5ny&gt;SeaweedFS&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;3 masters, 3 volume servers, a filer, NFS backup&lt;/span&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://traefik.io&quot; data-astro-cid-yzp3b5ny&gt;Traefik + Fail2ban&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://www.keycloak.org&quot; data-astro-cid-yzp3b5ny&gt;OpenLDAP + Keycloak&lt;/a&gt;&lt;/li&gt;&lt;li data-astro-cid-yzp3b5ny&gt;&lt;a href=&quot;https://semaphoreui.com&quot; data-astro-cid-yzp3b5ny&gt;Semaphore&lt;/a&gt;&lt;span class=&quot;note&quot; data-astro-cid-yzp3b5ny&gt;Runs the Ansible and Terraform that deploy everything, itself included&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;&lt;figcaption data-astro-cid-yzp3b5ny&gt;Stacked by criticality. Everything above leans on Tier 1, so that&apos;s what gets the most tender loving care.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Some jobs are &lt;code&gt;raw_exec&lt;/code&gt;, running on bare macOS (Jellyfin, Postgres/Patroni, Nextcloud’s php-fpm,
AudioMuse), while others are Linux containers through Apple &lt;code&gt;container&lt;/code&gt; via my
&lt;a href=&quot;https://github.com/anultravioletaurora/nomad-driver-container&quot;&gt;&lt;code&gt;nomad-driver-container&lt;/code&gt;&lt;/a&gt; plugin.&lt;/p&gt;
&lt;h2 id=&quot;shut-up-and-drive&quot;&gt;Shut Up and Drive!&lt;/h2&gt;
&lt;p&gt;All of this would be a very beautiful but expensive space heater if nobody used it. Cosmonautical is
mostly used by me, my friends, and my family, and Jellyfin sees the most use by a mile.&lt;/p&gt;
&lt;h3 id=&quot;jellyfin-and-co&quot;&gt;Jellyfin and Co.&lt;/h3&gt;
&lt;p&gt;Jellyfin is where I watch and listen to damn near everything. Movies, shows, and Live TV through
Dispatcharr all come from the cluster, and when someone wants something that isn’t in the library
yet, they ask for it in Seerr instead of texting me. Since Jellyfin runs natively on macOS,
transcoding goes through the Media Engine, so a friend streaming on hotel Wi-Fi doesn’t bring the
Mac to its knees.&lt;/p&gt;
&lt;p&gt;Music is obviously the part I care about the most. It’s how Jellify gets dogfooded: I stream
self-hosted music through Jellify every day across various setups, so I’m constantly on the hunt for
bugs or imagining new features.&lt;/p&gt;
&lt;h4 id=&quot;sonic-analysis-with-audiomuse-ai&quot;&gt;Sonic Analysis with AudioMuse-AI&lt;/h4&gt;
&lt;p&gt;Streaming services have one big advantage over a self-hosted library, and that’s recommendations.
Spotify knows that a song is upbeat, or mellow, or sounds a lot like another song. A folder of FLACs
on a NAS doesn’t know any of that.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/NeptuneHub/AudioMuse-AI&quot;&gt;AudioMuse-AI&lt;/a&gt; closes that gap. It analyzes the audio of
every track in the Jellyfin libraries, building up a sonic profile of the whole collection. It runs
as a native &lt;code&gt;.app&lt;/code&gt; on macOS, so the analysis happens on Apple Silicon with CoreML, and the results
live in Postgres and Redis alongside everything else.&lt;/p&gt;
&lt;p&gt;AudioMuse-AI’s &lt;a href=&quot;https://github.com/NeptuneHub/audiomuse-ai-plugin&quot;&gt;Jellyfin plugin&lt;/a&gt; exposes all of
it through Jellyfin itself. The plugin swaps Jellyfin’s Instant Mix for one built on sonic
similarity, so any Jellyfin client gets smarter mixes without changing a thing. It also adds
endpoints for similar tracks and artists, plain-language search (“upbeat summer songs”), and
chat-generated playlists.&lt;/p&gt;
&lt;p&gt;To make those easy to use in Jellify, I wrote a typed client for the plugin,
&lt;a href=&quot;https://github.com/Jellify-Music/AudioMuse-AI-Jellyfin-SDK&quot;&gt;&lt;code&gt;@jellify-music/audiomuse-ai-jellyfin-sdk&lt;/code&gt;&lt;/a&gt;,
built on top of the &lt;a href=&quot;https://github.com/jellyfin/jellyfin-sdk-typescript&quot;&gt;Jellyfin TypeScript SDK&lt;/a&gt;.
Jellify checks if the plugin is installed on your server, and if it is, you can describe a playlist
and have AudioMuse-AI build it from your own library. All of that analysis runs on hardware I own,
against music I own.&lt;/p&gt;
&lt;h3 id=&quot;jellify-actions&quot;&gt;Jellify Actions&lt;/h3&gt;
&lt;p&gt;The Jellify datacenter was built to run GitHub Actions for Jellify. A Nomad
&lt;a href=&quot;https://developer.hashicorp.com/nomad/docs/concepts/scheduling/schedulers&quot;&gt;&lt;code&gt;system&lt;/code&gt; job&lt;/a&gt; puts one
ephemeral runner on every node tagged as a runner. Each runner takes exactly one job, wipes its work
folder, and registers a fresh replacement, so no build ever sees the last one’s leftovers.&lt;/p&gt;
&lt;p&gt;Any action that doesn’t need a Mac lands on x64 Linux runners from the same Nomad job. These
include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://jestjs.io&quot;&gt;Jest&lt;/a&gt; unit tests on every branch push&lt;/li&gt;
&lt;li&gt;JS bundle and Android APK builds on PRs&lt;/li&gt;
&lt;li&gt;Publishing OTA updates, and cleaning up the per-PR OTA branches once a PR closes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Fork PRs get GitHub’s hosted runners instead, so fork code never runs on my hardware, as
&lt;a href=&quot;https://docs.github.com/en/actions/reference/security/secure-use#hardening-for-self-hosted-runners&quot;&gt;GitHub recommends&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id=&quot;maestro-testing&quot;&gt;Maestro Testing&lt;/h4&gt;
&lt;p&gt;&lt;a href=&quot;https://maestro.mobile.dev&quot;&gt;Maestro&lt;/a&gt; end-to-end tests are the headline act, and the reason those
runners need to be Macs in the first place: the
&lt;a href=&quot;https://developer.apple.com/documentation/xcode/running-your-app-in-simulator-or-on-a-device&quot;&gt;iOS Simulator&lt;/a&gt;
only runs on macOS.&lt;/p&gt;
&lt;p&gt;Every PR, plus a nightly run, builds a release copy of the app and drives it through the full UI
flow on &lt;em&gt;both&lt;/em&gt; an iOS Simulator and an
&lt;a href=&quot;https://developer.android.com/studio/run/emulator&quot;&gt;Android emulator&lt;/a&gt;: setup and login, home, quick
actions, library, search, discover, settings, and the player and queue. The same flows run on both
platforms, with small helper subflows papering over the differences (iOS has no back button, for
one).&lt;/p&gt;
&lt;p&gt;The tests run as &lt;code&gt;raw_exec&lt;/code&gt; straight on macOS, using the Xcode, simulators, and Android SDK that
Ansible provisions, so there’s no VM between the emulator and the hardware. When a run finishes,
screenshots, logs, and the UI hierarchy get uploaded as artifacts, and the result gets posted to
&lt;a href=&quot;https://discord.gg/yf8fBatktn&quot;&gt;Discord&lt;/a&gt;. If a PR breaks the player or the queue, I find out before
it ships, not from a bug report.&lt;/p&gt;
&lt;h4 id=&quot;release-notes&quot;&gt;Release Notes&lt;/h4&gt;
&lt;p&gt;The Jellify runners are mostly walled off from Cosmonautical. There’s one exception, though: release
notes.&lt;/p&gt;
&lt;p&gt;Every Jellify release, both store builds and over-the-air updates, gets its notes written by an LLM
running on the cluster. The pipeline is a
&lt;a href=&quot;https://github.com/Jellify-Music/App/tree/main/.github/actions/generate-release-notes&quot;&gt;composite GitHub Action&lt;/a&gt;
with a few steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Work out the tag.&lt;/strong&gt; A store release counts from the previous store release, so people updating
from the App Store or Play Store see everything since their last update, including anything that
already shipped over the air. An OTA update counts from the previous tag of either kind, so it
only covers what’s new.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Collect the changes.&lt;/strong&gt; A script walks every commit between the two tags and asks the GitHub API
which merged PR each one belongs to. Then it uses &lt;a href=&quot;https://docs.github.com/en/graphql&quot;&gt;GraphQL&lt;/a&gt;
(the only API that tells you which issues a PR closes) to pull in the closed issues, and it
collects every contributor who isn’t a bot. Version bumps and merge commits are skipped, since
they don’t say anything about the release.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Write the narrative.&lt;/strong&gt; The PR titles, closed issues, and any commits that didn’t come from a PR
go to &lt;a href=&quot;https://ollama.com/library/gemma4&quot;&gt;&lt;code&gt;gemma4:12b&lt;/code&gt;&lt;/a&gt;, running on Ollama and served through the
&lt;a href=&quot;https://docs.openwebui.com/reference/api-endpoints/&quot;&gt;OpenAI-compatible API&lt;/a&gt; in Open WebUI. The
prompt asks for a short summary and three highlight bullet points. For OTA updates, it also
mentions that the update downloads the next time the app is opened.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ship it.&lt;/strong&gt; The narrative goes to &lt;a href=&quot;https://developer.apple.com/testflight/&quot;&gt;TestFlight&lt;/a&gt; with the
iOS build, and to Discord through a
&lt;a href=&quot;https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks&quot;&gt;webhook&lt;/a&gt; that pings
the release role. The GitHub release gets the narrative too, followed by the list of closed
issues, merged PRs, and a thank-you to everyone who contributed.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;pipeline&quot; data-astro-cid-43neqowg&gt;&lt;ol class=&quot;steps&quot; data-astro-cid-43neqowg&gt;&lt;li class=&quot;step&quot; data-astro-cid-43neqowg&gt;&lt;span class=&quot;number&quot; data-astro-cid-43neqowg&gt;1&lt;/span&gt;&lt;strong data-astro-cid-43neqowg&gt;Work out the tag&lt;/strong&gt;&lt;span class=&quot;detail&quot; data-astro-cid-43neqowg&gt;Last store release, or last tag of either kind for OTA&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;step&quot; data-astro-cid-43neqowg&gt;&lt;span class=&quot;number&quot; data-astro-cid-43neqowg&gt;2&lt;/span&gt;&lt;strong data-astro-cid-43neqowg&gt;Collect the changes&lt;/strong&gt;&lt;span class=&quot;detail&quot; data-astro-cid-43neqowg&gt;Merged PRs, closed issues, contributors&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;step cluster&quot; data-astro-cid-43neqowg&gt;&lt;span class=&quot;number&quot; data-astro-cid-43neqowg&gt;3&lt;/span&gt;&lt;strong data-astro-cid-43neqowg&gt;Write the narrative&lt;/strong&gt;&lt;span class=&quot;detail&quot; data-astro-cid-43neqowg&gt;gemma4:12b on Ollama, via Open WebUI&lt;/span&gt;&lt;span class=&quot;badge&quot; data-astro-cid-43neqowg&gt;Cosmonautical&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;step&quot; data-astro-cid-43neqowg&gt;&lt;span class=&quot;number&quot; data-astro-cid-43neqowg&gt;4&lt;/span&gt;&lt;strong data-astro-cid-43neqowg&gt;Ship it&lt;/strong&gt;&lt;span class=&quot;detail&quot; data-astro-cid-43neqowg&gt;TestFlight, Discord, GitHub release&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;figcaption data-astro-cid-43neqowg&gt;The one place the Jellify datacenter reaches into Cosmonautical: borrowing its LLM capabilities.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;So every Jellify release goes from merged PRs to TestFlight and a Discord announcement without me
writing a word, all powered by a Mac Mini in my rack.&lt;/p&gt;
&lt;h3 id=&quot;designing-in-penpot&quot;&gt;Designing in Penpot&lt;/h3&gt;
&lt;p&gt;The newest job on the rack is &lt;a href=&quot;https://penpot.app&quot;&gt;Penpot&lt;/a&gt;, an open source design and prototyping
tool. Jellify’s designs used to live in &lt;a href=&quot;https://www.figma.com&quot;&gt;Figma&lt;/a&gt;, but we wanted a more free
and open alternative and Penpot is the one we landed on. Unlike the rest of my Tier 2 apps, it runs
on the Jellify datacenter: the frontend, backend, and exporter each run as an Apple &lt;code&gt;container&lt;/code&gt; task
on the Jellify Macs.&lt;/p&gt;
&lt;p&gt;It doesn’t bring any backing services of its own, though. Consul spans both datacenters, so Penpot
finds the same Postgres and Redis clusters as every Cosmonautical job, and keeps its assets on an
NFS share. Logins go through Keycloak, and only members of Jellify’s design, engineering, and triage
teams on GitHub get in. A Nomad batch job syncs those teams into a Keycloak group every 15 minutes,
so adding someone to a GitHub team is all it takes to give them access.&lt;/p&gt;
&lt;p&gt;It also got me reacquainted with the Network Volumes prompt from earlier. Each Mac quietly waited
for someone to click “Allow” before Penpot’s containers could start, and I had deployed Penpot when
I wasn’t there to click it.&lt;/p&gt;
&lt;h2 id=&quot;standard-operating-procedures&quot;&gt;Standard Operating Procedures&lt;/h2&gt;
&lt;p&gt;With vulnerabilities landing faster than ever, I’ve had plenty of practice running through patching
procedures. Patches go in one of two ways: Homebrew via Ansible, or Nomad jobs via Semaphore.&lt;/p&gt;
&lt;h3 id=&quot;homebrewed&quot;&gt;Homebrewed&lt;/h3&gt;
&lt;p&gt;Homebrew upgrades get deployed by rerunning the
&lt;a href=&quot;https://github.com/Cosmonautical-Cloud/Nomadintosh&quot;&gt;Nomadintosh&lt;/a&gt; playbook. Every run upgrades
Nomad, Consul, and the rest of the Homebrew packages in my inventory to their latest versions, so
patching a host is as simple as running the playbook again.&lt;/p&gt;
&lt;p&gt;Upgrading is the easy part. Homebrew swaps the binary on disk, but anything already running keeps
using the old one, so the playbook also handles the restarts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Nomad and Consul&lt;/strong&gt; restart one host at a time, and the playbook waits for the agent and the
cluster to report healthy before moving on to the next one. A run that upgrades every server never
takes more than one of them out of quorum.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nomad jobs&lt;/strong&gt; running directly on macOS (&lt;code&gt;raw_exec&lt;/code&gt;) get restarted afterwards, again one at a
time. They’d otherwise keep running the old binaries, under an executor started by the old &lt;code&gt;nomad&lt;/code&gt;
binary that Homebrew has since deleted. Don’t ask me how I know this (my Postgres replicas once
ended up ~23 GB behind for days without me knowing lol).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The one step that can’t be automated is the privacy prompts. After an upgrade, I hop onto each Mac
via Guacamole and click “Allow” on the Local Network and file access prompts for the freshly signed
binaries.&lt;/p&gt;
&lt;h3 id=&quot;nomad-life&quot;&gt;Nomad Life&lt;/h3&gt;
&lt;p&gt;Version bumps for Nomad jobs come from &lt;a href=&quot;https://github.com/renovatebot/renovate&quot;&gt;Renovate&lt;/a&gt;, which
opens a PR against my Terraform whenever a new release of an app ships. Once I merge it to &lt;code&gt;main&lt;/code&gt;,
Semaphore runs &lt;code&gt;terraform plan&lt;/code&gt; and then holds the change for my approval before &lt;code&gt;terraform apply&lt;/code&gt;
rolls it out to the cluster. GitOps FTW.&lt;/p&gt;
&lt;h3 id=&quot;system-updates&quot;&gt;System Updates&lt;/h3&gt;
&lt;p&gt;This is where we reach another one of macOS’s weak points: system updates will invariably require a
restart. There’s no live patching and no swapping out the kernel while the host keeps serving, so
every macOS update means taking a node down for 5-15 minutes while it installs and reboots.&lt;/p&gt;
&lt;p&gt;The tiering takes most of the sting out of this. Everything in Tier 1 is either highly available or
able to fail over, so Postgres hands off to a replica, Consul and Nomad hold quorum on the remaining
servers, and Nomad reschedules what it can onto the other Macs. I just do one node at a time and
wait for it to rejoin before moving on to the next. Security updates are set to install
automatically, so at least the most urgent patches aren’t waiting on me.&lt;/p&gt;
&lt;p&gt;Still, it’s a pain. Every update is a planned outage for whatever can’t move, and a reason to
babysit the rack. Apple, if you’re reading this: I’d love to be able to run these system updates
without a full reboot.&lt;/p&gt;
&lt;h2 id=&quot;the-power-to-be-your-best&quot;&gt;The Power to Be Your Best&lt;/h2&gt;
&lt;p&gt;How did my planning around performance per watt pan out? Pretty well, actually.&lt;/p&gt;
&lt;p&gt;Before the Macs, my three-node Harvester cluster (each node with a Ryzen 7 5700G and an RTX 4060)
idled somewhere in the mid 200Ws, and could easily pull around 400W once I threw some real load at
it. Those numbers come from remembering what my UPS showed, not careful measurement, but they’re in
the right ballpark.&lt;/p&gt;
&lt;p&gt;The new rack (affectionately referred to as “Mac Rack Mini Pro”) has twice as many nodes and still
comes in well under that. It idles in the mid 100Ws, and under load it settles in the mid 200Ws,
about where the old cluster used to &lt;em&gt;idle&lt;/em&gt;. Those are whole-rack numbers by the way: the UPS also
powers the networking gear, the UNAS, and the DAS, so the Minis themselves are drawing even less
than that.&lt;/p&gt;
&lt;figure class=&quot;power&quot; data-astro-cid-5sld7dar&gt;&lt;div class=&quot;chart&quot; style=&quot;--old-idle: 0.5555555555555556&quot; data-astro-cid-5sld7dar&gt;&lt;div class=&quot;group&quot; data-astro-cid-5sld7dar&gt;&lt;p class=&quot;state&quot; data-astro-cid-5sld7dar&gt;Idle&lt;/p&gt;&lt;div class=&quot;row&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;name&quot; data-astro-cid-5sld7dar&gt;Harvester x64&lt;span class=&quot;nodes&quot; data-astro-cid-5sld7dar&gt;3 nodes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;track&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;bar&quot; tabindex=&quot;0&quot; aria-label=&quot;Harvester x64, idle: roughly 230 to 270 watts&quot; style=&quot;--high: 60%; --solid: 85.18518518518519%&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;tip&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;Harvester x64, idle: ~230–270 W&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;value&quot; data-astro-cid-5sld7dar&gt;mid 200s W&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;row mac&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;name&quot; data-astro-cid-5sld7dar&gt;Mac Minis&lt;span class=&quot;nodes&quot; data-astro-cid-5sld7dar&gt;6 nodes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;track&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;bar&quot; tabindex=&quot;0&quot; aria-label=&quot;Mac Minis, idle: roughly 130 to 170 watts&quot; style=&quot;--high: 37.77777777777778%; --solid: 76.47058823529412%&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;tip&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;Mac Minis, idle: ~130–170 W&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;value&quot; data-astro-cid-5sld7dar&gt;mid 100s W&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;group&quot; data-astro-cid-5sld7dar&gt;&lt;p class=&quot;state&quot; data-astro-cid-5sld7dar&gt;Under load&lt;/p&gt;&lt;div class=&quot;row&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;name&quot; data-astro-cid-5sld7dar&gt;Harvester x64&lt;span class=&quot;nodes&quot; data-astro-cid-5sld7dar&gt;3 nodes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;track&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;bar&quot; tabindex=&quot;0&quot; aria-label=&quot;Harvester x64, under load: roughly 375 to 425 watts&quot; style=&quot;--high: 94.44444444444444%; --solid: 88.23529411764706%&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;tip&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;Harvester x64, under load: ~375–425 W&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;value&quot; data-astro-cid-5sld7dar&gt;~400 W&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;row mac&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;name&quot; data-astro-cid-5sld7dar&gt;Mac Minis&lt;span class=&quot;nodes&quot; data-astro-cid-5sld7dar&gt;6 nodes&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;track&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;bar&quot; tabindex=&quot;0&quot; aria-label=&quot;Mac Minis, under load: roughly 230 to 270 watts&quot; style=&quot;--high: 60%; --solid: 85.18518518518519%&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;tip&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;Mac Minis, under load: ~230–270 W&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;value&quot; data-astro-cid-5sld7dar&gt;mid 200s W&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;axis&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;&lt;span class=&quot;track&quot; data-astro-cid-5sld7dar&gt;&lt;span style=&quot;left: 0%&quot; data-astro-cid-5sld7dar&gt;0&lt;/span&gt;&lt;span style=&quot;left: 22.22222222222222%&quot; data-astro-cid-5sld7dar&gt;100&lt;/span&gt;&lt;span style=&quot;left: 44.44444444444444%&quot; data-astro-cid-5sld7dar&gt;200&lt;/span&gt;&lt;span style=&quot;left: 66.66666666666666%&quot; data-astro-cid-5sld7dar&gt;300&lt;/span&gt;&lt;span style=&quot;left: 88.88888888888889%&quot; data-astro-cid-5sld7dar&gt;400&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;marker&quot; aria-hidden=&quot;true&quot; data-astro-cid-5sld7dar&gt;Harvester idle&lt;/span&gt;&lt;/div&gt;&lt;figcaption data-astro-cid-5sld7dar&gt;Watts at the wall, approximate, from what the UPS showed. Twice the nodes, and under load the Macs land about where Harvester used to idle.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;That’s added up over time. Since making the switch, my power usage has dropped by around 75–125 kWh
a month. Twice the nodes, less power.&lt;/p&gt;
&lt;h2 id=&quot;should-you-eat-the-forbidden-fruit&quot;&gt;Should You Eat the Forbidden Fruit?&lt;/h2&gt;
&lt;p&gt;For most people, as you might’ve guessed, probably not. If you don’t &lt;em&gt;need&lt;/em&gt; macOS, a cheaper Linux
box with discrete graphics for hardware acceleration will get you to the same place with far less
friction.&lt;/p&gt;
&lt;p&gt;But if you’re a die-hard Apple fan, appreciate fun hardware, or your use case actually requires
Apple’s software like Xcode, the seeds you sow will yield a nice harvest. The Minis are whisper
quiet, sip power, and can really crunch data. Running them as a cluster, as you can see, is entirely
possible.&lt;/p&gt;
&lt;p&gt;They aren’t cheap, and macOS is prepared to fight you every step of the way. No matter how much you
automate, be prepared for reboots, and to remote into the desktop every now and again to click
through whatever prompt it’s decided to throw at you this time.&lt;/p&gt;
&lt;h2 id=&quot;whats-next&quot;&gt;What’s Next?&lt;/h2&gt;
&lt;p&gt;I truly believe a homelab is never really finished. As such, I’ve already got a couple of ideas
lined up for the rack ;)&lt;/p&gt;
&lt;h3 id=&quot;downloading-more-ram&quot;&gt;Downloading More RAM&lt;/h3&gt;
&lt;p&gt;The biggest limit on what I can run locally is memory. Each Cosmonautical Mini has 24GB of unified
memory, and that has to cover the model, its context, and everything else the node is running. That
rules out a lot of the bigger open models.&lt;/p&gt;
&lt;p&gt;Apple recently added &lt;a href=&quot;https://en.wikipedia.org/wiki/Remote_direct_memory_access&quot;&gt;RDMA&lt;/a&gt; over
Thunderbolt 5 to macOS, which lets one Mac read and write another Mac’s memory directly, without
going through the network stack. Taurus and Orion both have Thunderbolt 5 ports, so I’m planning to
cable them together and split a single model across both of them.&lt;/p&gt;
&lt;p&gt;Ollama can’t do that part, since it only runs a model on one machine. Apple’s
&lt;a href=&quot;https://github.com/ml-explore/mlx&quot;&gt;MLX&lt;/a&gt; can, though. Its
&lt;a href=&quot;https://ml-explore.github.io/mlx/build/html/usage/distributed.html&quot;&gt;distributed mode&lt;/a&gt; is built to
use RDMA over Thunderbolt, and &lt;a href=&quot;https://github.com/ml-explore/mlx-lm&quot;&gt;&lt;code&gt;mlx-lm&lt;/code&gt;&lt;/a&gt; can shard a model
across both Minis and serve it over an OpenAI-compatible API. That means Open WebUI and the release
notes pipeline can talk to it the same way they talk to Ollama today.&lt;/p&gt;
&lt;h3 id=&quot;homekitschy&quot;&gt;HomeKitschy&lt;/h3&gt;
&lt;p&gt;My smart home already runs on &lt;a href=&quot;https://www.home-assistant.io/installation/&quot;&gt;Home Assistant OS&lt;/a&gt;, on a
(you guessed it) Mac Mini. This one’s a
&lt;a href=&quot;https://en.wikipedia.org/wiki/Mac_mini#Third_generation_%28Unibody%29&quot;&gt;2012 Intel model&lt;/a&gt; with a
&lt;a href=&quot;https://zigbee.blakadder.com/Nortek_HUSBZB-1.html&quot;&gt;Nortek GoControl HUSBZB-1 QuickStick Combo&lt;/a&gt;
Zigbee + Z-Wave USB stick plugged into it. Home Assistant’s
&lt;a href=&quot;https://www.home-assistant.io/integrations/homekit/&quot;&gt;HomeKit Bridge&lt;/a&gt; integration exposes its
entities to HomeKit, and an &lt;a href=&quot;https://www.apple.com/apple-tv-4k/&quot;&gt;Apple TV 4K&lt;/a&gt; acts as the
&lt;a href=&quot;https://support.apple.com/en-us/102557&quot;&gt;home hub&lt;/a&gt;, so everything shows up in the
&lt;a href=&quot;https://www.apple.com/home-app/&quot;&gt;Home app&lt;/a&gt; and works with Siri, no matter what brand it is.&lt;/p&gt;
&lt;p&gt;Next up, I want to expand the setup with &lt;a href=&quot;https://nodered.org&quot;&gt;Node-RED&lt;/a&gt;, &lt;a href=&quot;https://mqtt.org&quot;&gt;MQTT&lt;/a&gt;,
and &lt;a href=&quot;https://www.zigbee2mqtt.io&quot;&gt;Zigbee2MQTT&lt;/a&gt;. Rather than piling more add-ons onto the old Mini,
I’m going to deploy them as Nomad jobs, so they’re coordinated and managed like everything else on
the rack.&lt;/p&gt;
&lt;p&gt;Once that’s in place, the rack itself can join the house. The UPS’s power draw (via
&lt;a href=&quot;https://www.home-assistant.io/integrations/nut/&quot;&gt;Network UPS Tools&lt;/a&gt;) and each node’s stats can go
into Home Assistant, onto a &lt;a href=&quot;https://www.home-assistant.io/dashboards/&quot;&gt;Lovelace dashboard&lt;/a&gt;, and
through the HomeKit Bridge into the Home app, with an alert on my phone when something goes down.
Then “Hey Siri, how’s the cluster?” would get an actual answer, and Home automations could react to
the rack the same way they react to everything else in the house.&lt;/p&gt;
&lt;p&gt;I’ve also ordered an &lt;a href=&quot;https://www.apple.com/apple-homeview/&quot;&gt;Apple HomeView&lt;/a&gt; for the purpose of
seeing how it reacts to Jellify, but it should pair nicely with these Home Assistant plans.&lt;/p&gt;
&lt;h2 id=&quot;a-few-thank-yous&quot;&gt;A Few Thank Yous&lt;/h2&gt;
&lt;p&gt;A lot of people made this setup possible and inspired me to build it, and they deserve a salute.&lt;/p&gt;
&lt;h3 id=&quot;the-maintainers&quot;&gt;The Maintainers&lt;/h3&gt;
&lt;p&gt;This project really does stand on the shoulders of giants. Thank you to the maintainers of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://brew.sh&quot;&gt;Homebrew&lt;/a&gt;, which installs and upgrades just about everything on the Macs&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.nomadproject.io&quot;&gt;Nomad&lt;/a&gt;, &lt;a href=&quot;https://www.consul.io&quot;&gt;Consul&lt;/a&gt;, and
&lt;a href=&quot;https://www.terraform.io&quot;&gt;Terraform&lt;/a&gt;, the backbone of the cluster&lt;/li&gt;
&lt;li&gt;The &lt;a href=&quot;https://www.ansible.com/community&quot;&gt;Ansible community&lt;/a&gt; and
&lt;a href=&quot;https://semaphoreui.com&quot;&gt;Semaphore&lt;/a&gt;, which build and deploy it all&lt;/li&gt;
&lt;li&gt;Apple’s &lt;a href=&quot;https://github.com/apple/container&quot;&gt;&lt;code&gt;container&lt;/code&gt;&lt;/a&gt;, which runs every Linux workload I have&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://maestro.mobile.dev&quot;&gt;Maestro&lt;/a&gt;, for making mobile UI testing on real simulators and
emulators approachable&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;the-builders&quot;&gt;The Builders&lt;/h3&gt;
&lt;p&gt;The apps are the reason the cluster exists at all. Thank you to the open source contributors behind
&lt;a href=&quot;https://nextcloud.com&quot;&gt;Nextcloud&lt;/a&gt;, &lt;a href=&quot;https://github.com/Dispatcharr/Dispatcharr&quot;&gt;Dispatcharr&lt;/a&gt;,
&lt;a href=&quot;https://ollama.com&quot;&gt;Ollama&lt;/a&gt;, &lt;a href=&quot;https://openwebui.com&quot;&gt;Open WebUI&lt;/a&gt;,
&lt;a href=&quot;https://github.com/rommapp/romm&quot;&gt;RomM&lt;/a&gt;, &lt;a href=&quot;https://guacamole.apache.org&quot;&gt;Guacamole&lt;/a&gt;,
&lt;a href=&quot;https://github.com/seerr-team/seerr&quot;&gt;Seerr&lt;/a&gt;, and &lt;a href=&quot;https://penpot.app&quot;&gt;Penpot&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And to the people behind the services those apps lean on, quietly doing their jobs underneath:
&lt;a href=&quot;https://www.postgresql.org&quot;&gt;PostgreSQL&lt;/a&gt; and &lt;a href=&quot;https://github.com/patroni/patroni&quot;&gt;Patroni&lt;/a&gt;,
&lt;a href=&quot;https://redis.io&quot;&gt;Redis&lt;/a&gt;, &lt;a href=&quot;https://github.com/seaweedfs/seaweedfs&quot;&gt;SeaweedFS&lt;/a&gt;,
&lt;a href=&quot;https://traefik.io&quot;&gt;Traefik&lt;/a&gt;, &lt;a href=&quot;https://github.com/fail2ban/fail2ban&quot;&gt;Fail2ban&lt;/a&gt;,
&lt;a href=&quot;https://www.openldap.org&quot;&gt;OpenLDAP&lt;/a&gt;, &lt;a href=&quot;https://www.keycloak.org&quot;&gt;Keycloak&lt;/a&gt;, and
&lt;a href=&quot;https://github.com/renovatebot/renovate&quot;&gt;Renovate&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;the-visionaries&quot;&gt;The Visionaries&lt;/h3&gt;
&lt;p&gt;Some people showed me this was possible and made me realize its potential before I ever racked a
Mac. Thank you to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/NeptuneHub&quot;&gt;NeptuneHub&lt;/a&gt;, who has been realizing my dream of open source sonic
analysis with &lt;a href=&quot;https://github.com/NeptuneHub/AudioMuse-AI&quot;&gt;AudioMuse-AI&lt;/a&gt;, and made it possible to
run it natively on Apple Silicon&lt;/li&gt;
&lt;li&gt;The &lt;a href=&quot;https://github.com/jellyfin&quot;&gt;Jellyfin contributors&lt;/a&gt;, who have made
&lt;a href=&quot;https://jellyfin.org/docs/general/post-install/transcoding/hardware-acceleration/&quot;&gt;hardware accelerated transcoding&lt;/a&gt;
a reality on Apple Silicon&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.jeffgeerling.com&quot;&gt;Jeff Geerling&lt;/a&gt;, whose
&lt;a href=&quot;https://github.com/geerlingguy/ansible-collection-mac&quot;&gt;&lt;code&gt;geerlingguy.mac&lt;/code&gt;&lt;/a&gt; collection handles the
Homebrew and Mac App Store installs in my playbooks, and whose
&lt;a href=&quot;https://www.jeffgeerling.com/tags/mac-mini&quot;&gt;Mac adventures&lt;/a&gt; gave me the confidence to build a
cluster of my own&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;the-sponsors&quot;&gt;The Sponsors&lt;/h3&gt;
&lt;p&gt;Finally, thank you to everyone who sponsors me on GitHub and Patreon. Your support is what lets me
spend time building systems like this one and working on Jellify.&lt;/p&gt;
&lt;aside class=&quot;sponsor&quot; aria-label=&quot;Sponsor&quot; data-astro-cid-6nlbk6ah&gt;&lt;svg class=&quot;icon&quot; viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot; data-astro-cid-ccg5yoga&gt;&lt;path d=&quot;M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z&quot; data-astro-cid-ccg5yoga&gt;&lt;/path&gt;&lt;/svg&gt;&lt;p class=&quot;heading&quot; data-astro-cid-6nlbk6ah&gt;Like what you see?&lt;/p&gt;&lt;p class=&quot;message&quot; data-astro-cid-6nlbk6ah&gt;If you&apos;d like to support my work, you can sponsor me on GitHub or Patreon.&lt;/p&gt;&lt;div class=&quot;links&quot; data-astro-cid-6nlbk6ah&gt;&lt;a href=&quot;https://github.com/sponsors/anultravioletaurora&quot; data-astro-cid-6nlbk6ah&gt;&lt;svg class=&quot;icon&quot; viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot; data-astro-cid-ccg5yoga&gt;&lt;path d=&quot;M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z&quot; data-astro-cid-ccg5yoga&gt;&lt;/path&gt;&lt;/svg&gt;Sponsors&lt;/a&gt;&lt;a href=&quot;https://www.patreon.com/anultravioletaurora&quot; data-astro-cid-6nlbk6ah&gt;&lt;svg class=&quot;icon&quot; viewBox=&quot;0 0 24 24&quot; aria-hidden=&quot;true&quot; data-astro-cid-ccg5yoga&gt;&lt;path d=&quot;M14.82 2.41C18.78 2.41 22 5.65 22 9.62C22 13.58 18.78 16.8 14.82 16.8C10.85 16.8 7.61 13.58 7.61 9.62C7.61 5.65 10.85 2.41 14.82 2.41M2 21.6H5.5V2.41H2V21.6Z&quot; data-astro-cid-ccg5yoga&gt;&lt;/path&gt;&lt;/svg&gt;Patreon&lt;/a&gt;&lt;/div&gt;&lt;/aside&gt;</content:encoded></item><item><title>Hello, world!</title><link>https://violetcaulfield.com/blog/2026-11-19-hello-world</link><guid isPermaLink="true">https://violetcaulfield.com/blog/2026-11-19-hello-world</guid><description>A new home on the internet, with a blog and an RSS feed.</description><pubDate>Thu, 19 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Welcome to my blog :3&lt;/p&gt;
&lt;p&gt;It’s built with &lt;a href=&quot;https://astro.build&quot;&gt;Astro&lt;/a&gt;, served from Cloudflare, and borrows its colors from
&lt;a href=&quot;https://jellify.app&quot;&gt;Jellify&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;what-to-expect&quot;&gt;What to expect&lt;/h2&gt;
&lt;p&gt;Posts about software I’m building, and hardware I’m (ab)using.&lt;/p&gt;
&lt;h2 id=&quot;rss-feed&quot;&gt;RSS feed&lt;/h2&gt;
&lt;p&gt;If you use a feed reader, you can follow along with the &lt;a href=&quot;https://violetcaulfield.com/blog/rss.xml&quot;&gt;RSS feed&lt;/a&gt;.&lt;/p&gt;</content:encoded></item></channel></rss>