Skip to content
CVContact

Blog

Moving my server to arm64 in one day

Migrating every service to arm64 hardware in a single day.

On 15 November 2026 I moved ubunkii, the server that runs my sites and apps, to a new machine: an Oracle Cloud Ampere A1 instance in Singapore, with 2 OCPU and 12 GB of memory (4 OCPU and 24 GB since 25 November, the same instance resized). The old server was x86. Ampere A1 is arm64.

That one difference shaped most of the day. A container image is built for one architecture, so every image had to exist for arm64 before its service could start on the new server. The other half was the data: five databases and four file volumes had to arrive whole, and I wanted a count that proved it.

What runs there

ubunkii runs the main site, the design site and the cloud site, and the apps beside them, each stack in Docker. On 19 November the cloud site's public service list names PetPals, Titik Api, Stok Dapur API, Kumpul, Tenggat and a visit counter next to the three sites.

The new server took a while to get. The region does not always have room for this shape, so a launch script kept retrying, and was written never to start a second instance. It got the server at 14:34 WIB.

Rebuilt for arm64

The old server ran 11 images. Each was built again on the new server, for arm64, from the same commits, and tagged the way CI tags it.

Two stacks had nothing to pull for arm64:

  • Titik Api's database image, PostgreSQL with PostGIS, is published for x86 only. The stack now runs a PostGIS image that is built for arm64 as well, pinned by its digest.
  • Tenggat's two images on Docker Hub were x86 only, so both were built on the server.

Then the deploys. GitHub Actions now builds the images of the seven repositories that deploy here on an arm64 runner. For this site it was a one-line change to the deploy workflow, merged the same afternoon: the build job runs on an arm64 runner, so the image is built natively for the server that runs it.

Moving the data

An export script on the old server dumped each PostgreSQL container whole, with its roles and every database. It also packed the file volumes, the host's configuration and the newest verified nightly backup of each job, with a checksum for every file. It ran twice: first as a safety copy while the apps ran, then as the cutover copy with the apps stopped. The export is 93 MB.

On the new server each of the five databases was restored into its stack's own database service. The four file volumes were unpacked into volumes that Docker Compose had created, not ones made by hand: Compose labels its volumes, and may offer to recreate one made by hand, and its data with it.

Then the check. A script counted the rows of every table in every database on both servers, and the two lists were compared line by line: 125 tables and 358,677 rows, identical.

The cutover

Until the cutover the new server ran without the keys that send mail and push alerts, so no message could go out from both servers.

On 15 November the apps that keep data were stopped on the old server, exported, restored and compared again, and everything was started on the new one. At 15:09 WIB a script pointed the 11 proxied DNS records at it. Cloudflare proxies them, so the switch takes seconds. The apps that keep data were away for four minutes. The sites were not away at all.

Each repository's deploy settings now name the new server. On the old one every stack was stopped, its backup jobs moved aside and its timers turned off, so no job ran twice. After the move all 17 containers were healthy, and every hostname answered through Cloudflare from the new server.

The check that still said x86

On 16 November the first nightly backup of Titik Api on the new server failed.

Every backup is restored into a throwaway database and compared with the live data before it is kept. That restore check named its own database image, and it still named the PostGIS image that is x86 only. The rebuild had covered the images the services run. This one belonged to the nightly backup job.

The check now takes its image from the database service in the stack's compose file, so it runs whatever the database runs. Run by hand the same day, the backup passed: 20 tables, 340,095 rows and 2 photos restored and compared.

What I take from it

Moving to arm64 was less about the new machine than about a list: every image, and every place that names one. The services were easy, because a service without an arm64 image cannot start, so it shows at once. The backup check was a place I missed, and it showed up the next morning because the check failed instead of keeping a backup it could not restore.

The full case study, with its timeline, is on the cloud site: cloud.mrramdn.com/en/work/server-move.