Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Remove topic Kubernetes Clear all 11 posts RSS

2026

2023

Unlocking Real-time Predictions with Shopify's Machine Learning Platform

Case study 13 min +130 XP

Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store.

2022

2021

Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups

Incident 8 min +80 XP

Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem_cgroup_commit_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

Shopify's Path to a Faster Trino Query Execution: Infrastructure

Case study 12 min +120 XP

Shopify scaled its Trino interactive query infrastructure on GKE by moving experiment queries to a dedicated cluster via Trino Gateway header routing and capping hardConcurrencyLimit at 60 to relieve coordinator lock contention on the resource group.

The quest for software engineering knowledge.

Look:
Layout: