Building an End to End load test automation system on top of Kubernetes
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.
Related posts
- Continuous Load Testing
Slack Engineering mediumAdeptSlack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer. Performance regressions get caught on every deploy without the cost of spinning up test environments. Making this safe required an Automatic Shutdown service that polls Prometheus via Trickster and stops tests when thresholds are breached (e.g. API success below 95% for five minutes), partial shutdown and Emergency Stop controls, DynamoDB-backed persistence so the Keeper survives pod restarts, and automated token generation via cron, job queues, exponential-backoff retries and encrypted S3 storage. A gradual rollout from 5,000 to 500,000 clients with cross-team communication produced zero off-hours pages in six months, and an ad-hoc test that once took a day of effort now takes minutes.
- Automating performance tests
Supabase mediumAdeptSupabase 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. When load-test metric volume overwhelmed Prometheus's push endpoint, they added Telegraf as an intermediary buffer that also collects host metrics. Because k6 Cloud would have cost hundreds of thousands per year for their concurrency levels, they wrote a small Go app that runs Terraform and k6 scenarios, tears down infrastructure, tracks launch history and exposes an API for GitHub Actions. With it they have run tests of up to 1M concurrent virtual users for Supavisor and 200K for Realtime, and onboarded other services in hours to days.
- Load Testing with Koi Pond
Slack Engineering mediumAdeptKoi 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. They run two kinds of work. Behaviors are templated API sequences fired at frequencies taken from real workspace usage. Formations make a percentage of koi act together within a time window to recreate thundering herds such as mass reactions in an announcement channel. Scaling from 5,000 to 1 million koi before a large customer launch, alongside manual QA and API Blast, exposed problems that single-endpoint tools missed: real-time server overload from file-sharing fan-out, a missing rate limit on chat.postMessage, and a monitoring database that needed more shards.
- Autonomous testing of services at scale
Meta Engineering mediumAdeptMeta 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. An autonomous extension mirrors a service's Twine production spec, isolates it via application-level RPC filtering plus an LD_PRELOAD layer intercepting libc connect/sendto/sendmsg, and routes unknown RPCs to a universal mock, letting one-third of services run safely with no human setup. Thrift's reflective IDL lets it auto-generate fuzz harnesses and dependency mocks, and mutating sanitized recorded production requests helps fuzzing reach deep code paths past input validation.
- How we migrated onto K8s in less than 12 months
Figma mediumAdept
Figma moved most of its core services from AWS ECS to EKS in under 12 months. It made the switch because ECS lacked StatefulSets, Helm support, easy node cordoning and access to CNCF tools like Keda, Karpenter and Istio/Envoy. The key to the timeline was tight scoping: keep the platform abstraction unchanged and only add changes that were one-way doors or cheaper to do up front. Those changes were Bazel-generated service YAMLs deployed in one step, three active EKS clusters per service to shrink blast radius, and Karpenter node autoscaling. Log pipeline changes (Vector) and pod autoscaling were deferred as fast-follows, and load testing with a scaled-up hello-world service plus incremental traffic rollout kept the migration low-risk.