---
title: "Building an End to End load test automation system on top of Kubernetes"
description: "Zalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster."
url: "https://swe.quest/articles/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes-7beb3707dbd053ca"
canonical: "https://engineering.zalando.com/posts/2021/03/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes.html"
source: "Zalando Engineering"
published: "2021-03-01"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["testing","performance","kubernetes","payments","capacity-planning"]
---

# Building an End to End load test automation system on top of Kubernetes

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2021-03-01, 9 min read, Case study. Original: [https://engineering.zalando.com/posts/2021/03/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes.html](https://engineering.zalando.com/posts/2021/03/building-an-end-to-end-load-test-automation-system-on-top-of-kubernetes.html)

## Summary

Zalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster. A Go service, the load-test-conductor, deploys production versions of services, scales Kubernetes and ECS to production configuration, drives distributed Locust workers, then scales down and cleans up. External dependencies are mocked with Hoverfly, chosen after comparing several tools, and Skipper header-based routing lets shared services switch to mocks for load-test traffic. A feedback algorithm adjusts Locust user count and hatch rate each minute to hit a target orders-per-minute KPI. Tests run on a CronJob or via an API call. Results are still judged manually from Grafana dashboards and SLO alerts, and keeping the test environment production-like took the most effort, including mid-test deployments and mismatched infrastructure.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)

## Prerequisites

- Kubernetes deployments and scaling ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- load testing basics ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- microservices ([easy posts on Microservices](https://swe.quest/tags/microservices.md?difficulty=easy))

## Keywords

Locust, Hoverfly, Skipper, Kubernetes, Amazon ECS, Grafana, Zalando

## Related posts

- [Continuous Load Testing](https://swe.quest/articles/continuous-load-testing-cb6889189cd6bc8f.md): Slack Engineering · 2022-04-29 · Medium · 13 min read · Testing, Performance engineering, Resilience, Kubernetes, Deployment
  Slack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer.
- [Automating performance tests](https://swe.quest/articles/automating-performance-tests-3c422bee8eb7f6b1.md): Supabase · 2024-02-21 · Medium · 7 min read · Testing, Performance engineering, Observability, Infrastructure as code, CI/CD
  Supabase built its performance-testing pipeline while rewriting its WebSocket-based Realtime service, starting with manual k6 load generators on AWS VMs and adding Grafana/Prometheus to diagnose loader resource exhaustion.
- [Load Testing with Koi Pond](https://swe.quest/articles/load-testing-with-koi-pond-0d1865c57c75034d.md): Slack Engineering · 2021-04-23 · Medium · 14 min read · Testing, Performance engineering, Scaling, Real-time systems, Capacity planning
  Koi Pond is Slack's load-testing tool that boots lightweight simulated clients (koi), grouped into schools of up to 5,000, which open real websocket connections and call Web APIs.
- [Autonomous testing of services at scale](https://swe.quest/articles/autonomous-testing-of-services-at-scale-54aa6a1bfbfb71d4.md): Meta Engineering · 2021-10-20 · Medium · 13 min read · Testing, Microservices, RPC & gRPC, Sandboxing & isolation, Developer productivity
  Meta built an integration testing framework for back-end services that reuses production containerization and routing to spin up ephemeral test environments, with per-service boundaries where requests go to local services, in-process Python mocks, in-memory replicas, production (read-only) or are blocked.
- [How we migrated onto K8s in less than 12 months](https://swe.quest/articles/how-we-migrated-onto-k8s-in-less-than-12-months-54c705b789d0d5b3.md): Figma · 2024-08-08 · Medium · 16 min read · Kubernetes, Cloud platforms, Deployment, Resilience, Cost optimization
  Figma moved most of its core services from AWS ECS to EKS in under 12 months.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
