Skip to content
Main siteContact

Case study · Infrastructure · Nov 2026

Server move

Moved every service to a new server, and from x86 to arm64, in one day (15 November 2026). Five databases and four file volumes were restored and compared: 125 tables, 358,677 rows, identical. The apps that keep data were away for four minutes; the sites were not away at all.

Role
Move, data checks and cutover
Period
Nov 2026
Stack
Oracle Cloud, Docker, PostgreSQL, Cloudflare, GitHub Actions
tables and 358,677 rows, identical on both servers
125
minutes away for the apps that keep data; the sites not at all
4
images rebuilt for arm64 from the same commits
11

A new server

ubunkii runs the main, design and cloud sites and the apps beside them, each stack in Docker. On 15 November 2026 it moved from the previous server to an Oracle Cloud Ampere A1 instance in Singapore, with 2 OCPU, 12 GB of memory and a 100 GB disk; since 25 November the same instance has 4 OCPU and 24 GB. Ampere A1 is arm64 and the previous server was x86, so every image had to exist for arm64 before its service could start.

The region does not always have room for this shape. A launch script that retries, and never starts a second instance, got the server at 14:34 WIB.

Rebuilt for arm64

The 11 images the previous server ran were built again on the new server, for arm64, from the same commits, and tagged as CI tags them.

Some had no arm64 build to pull. Titik Api's database image, PostgreSQL with PostGIS, is published for x86 only, so 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.

GitHub Actions now builds the images of the seven repositories that deploy here on an arm64 runner.

Moving the data, and checking it

An export script on the previous server dumped each PostgreSQL container whole, its roles and every database, and 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, and the four file volumes were unpacked into volumes that Docker Compose had created: Compose labels its volumes, and may offer to recreate one made by hand, with its data.

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 went out from both servers.

On 15 November the apps that keep data were stopped on the previous server, exported, restored and compared again, and everything was started on the new server. 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.

Each repository's deploy settings now name the new server. On the previous server 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 next morning

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, and that restore check still named the PostGIS image that is x86 only.

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.

Timeline

  1. Server launched, data restored and compared, DNS switched
  2. First nightly Titik Api backup on the new server failed; fixed the same day