Skip to main content
A delivery driver using a handheld device at the tailgate of a loaded truck
Undergraduate Thesis · 2026

Load Testing & Site Reliability Engineering for a German Logistics Platform

Swiss German University
Bachelor of Information Technology
commsult APAC
Research host, for commsult AG
2025 – 2026
Final-year thesis
The Research

What the framework found

Ontego Traces — tour monitoring and route optimisation dashboard
Ontego Traces driver app running on a handheld device
Ontego Traces — the logistics platform under test
commsult AGResearched at commsult APAC

Ontego Traces is a logistics platform used by German delivery operators. My thesis gave it its first instrumented performance baseline — an SRE-aligned benchmarking framework, and ten controlled experiments against its highest-volume write path — to find where it actually breaks under load, and prove which fixes matter.

Site Reliability EngineeringLoad Testing (k6)Docker SwarmAutoscalingObservabilityContinuous Delivery
+0%
Throughput gained
from database tuning on a single replica
−0%
Tail latency cut
p95 on one tuned replica vs the baseline
0
Controlled experiments
each isolating one infrastructure variable
0
SRE golden signals
latency, traffic, errors & saturation — live on Grafana

Ten experiments, one verdict

Each bar is a real k6 run under identical load, shown relative to the untuned baseline. The tuned single replica wins both metrics — beating the two-replica configurations it was supposed to lose to.

Relative throughput

Longer is better
DB tuned 1 replica · pool 10Best
Pool sweet spot 2 replicas · pool 4
DB tuned + scale 2 replicas · pool 10
Conn. proxy (1R) 1 replica · pool 20
+1 replica 2 replicas · pool 5
Conn. proxy (2R) 2 replicas · pool 20
Baseline 1 replica · pool 5Baseline

Relative tail latency

Shorter is better
DB tuned 1 replica · pool 10Best
Pool sweet spot 2 replicas · pool 4
+1 replica 2 replicas · pool 5
Conn. proxy (1R) 1 replica · pool 20
Conn. proxy (2R) 2 replicas · pool 20
DB tuned + scale 2 replicas · pool 10
Baseline 1 replica · pool 5Baseline

The instinct is to scale out. But tuning the database on one replica delivered more throughput and lower latency than adding a second — because the real bottleneck was never CPU.

Scale out · 2 replicas
+0%
throughput vs baseline — latency improved, but throughput barely moved
Tune the DB · 1 replica
+0%
throughput vs baseline — and the lowest tail latency of any run

The ceiling I found

A live pg_stat_activity trace revealed the hard limit: every write request contends for the same shared configuration row, serialising all concurrent writes. It's the last rung of the bottleneck ladder — an application-level fix, not an infrastructure one.

CPU bound
Add service replicas
Queue bound
Scale the message consumers
Database bound
Tune commit, cache & pool
Hot-row bound
Fix the application code
Where it landed

What I learned

Measure before you scale

Adding a second replica improved tail latency but lifted throughput by under 10%. Horizontal scaling only pays off when CPU is the constraint — and here it wasn't.

The database is the ceiling

Disabling synchronous commit, enlarging the page cache and widening the connection pool beat two-replica scaling on every metric — from a single machine.

Some infra problems are app bugs

A live database trace exposed a single shared row serialising every write. No replica count or connection proxy can remove a row-level lock — only an application change can.

You can't tune what you can't see

With the four SRE golden signals on one Grafana axis, a latency spike stopped being something to interpret afterwards and became something to read live — pointing straight at the layer that was actually saturated.

What I shipped

SRE benchmarking framework

Reproducible k6 experiments with a fixed, staged methodology — the platform's first instrumented performance baseline.

CPU-based autoscaler

A Docker Swarm daemon that scales the busiest service between one and three replicas on CPU and queue-depth signals, with cooldown.

Observability stack

Prometheus + Grafana capturing all four golden signals, federated across two VMs so app metrics survive under load.

CI/CD quality gate

A pipeline check that blocks production deploys when tail latency or error rate breach an agreed threshold.

Research conducted at commsult APAC on a staging deployment of commsult AG's Ontego Traces. Product imagery on this page is commsult's own published material and remains its property. No service names, endpoints, schema details, deployment topology or absolute performance figures are published here or in the paper — all results are stated relative to the untuned baseline.