Skip to content
← All work
MSc researchCompleted · Distinction

Kubernetes recovery.

Recovering workloads when the remaining nodes are full.

For my MSc at Queen’s University Belfast, I studied which workloads Kubernetes should recover after a node failure when there is too little capacity for everything. My dissertation, “Evict the Guilty, Not the Innocent”, was supervised by Prof. Javid Taheri. I completed the MSc with Distinction.

My role
Designed, implemented and evaluated the scheduler
Context
Queen’s University Belfast
Built with
Python · Kubernetes · Amazon EKS · Terraform · Optimisation

01

Choosing what to recover

After a node failure, the surviving nodes may not have room for every displaced workload. Recovering in priority order can leave a less valuable set running than choosing the combination that best uses the available capacity.

I built a scheduler that treats this as a knapsack problem: choose the set of workloads with the highest total importance that fits. I also built a model using kubelet signals to estimate whether a workload is serving, so the scheduler can consider more than its assigned importance label.

02

Testing on Amazon EKS

I deliberately failed nodes on Amazon EKS and compared the scheduler with the stock scheduler and PriorityClass preemption. Workloads came from the Alibaba 2018 cluster trace, with nine importance grades. I committed the analysis plan before collecting the confirmatory data and recorded 199 runs.

The results describe controlled research workloads on a small cluster. They do not establish performance on a production workload.

03

The results

In the main comparison, the knapsack scheduler kept 84.9% of importance-weighted work running, compared with 79.1% for the stock scheduler. It did so without evicting healthy pods. PriorityClass recovered more work, but evicted healthy workloads to make room.

A separate experiment included services labelled important that were not serving. Using measured behaviour to guide the choice improved the result by 12.9 percentage points; my written prediction was 12.7. The five recorded pairs below are from that experiment. Some follow-up comparisons are descriptive rather than confirmatory.

Recorded data

Explore the recorded results.

Five recorded pairs from the separate label-mismatch experiment. Select a run to compare the schedulers.

RECORDED ON AMAZON EKS05 PAIRED NODE FAILURES
Trust the labels81.1%
Measure the behaviour94.0%

Five-run mean · +12.9 percentage points

708090100

Weighted completion at the horizon. Each line connects the two results for one workload and node failure.

Take a node down and watch the workloads move. Try the recovery demo in the Lab →

Keep exploring

Heimdall

See where a change has reached.

What’s next?

Let’s talk about
what’s next.

I’m open to roles in platform engineering, developer tools and AI infrastructure.
Remote-first, open to relocating, and no sponsorship needed.

Get in touch