Continuous Load Testing
Slack 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.
Related posts
- 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.
- 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.
- Slowing Down to Speed Up – Circuit Breakers for Slack’s CI/CD
Slack Engineering mediumAdeptSlack added orchestration-level circuit breakers to Checkpoint, its CI/CD orchestration service, to stop cascading failures between internal systems such as GitHub Enterprise, Jenkins, test environments, Flannel, Vitess and search. CI/CD request volume grew about 10% month over month, and vertical and horizontal scaling had stopped keeping up. Checkpoint's background jobs query dependent-service health in Prometheus through Trickster. When thresholds are exceeded, the breakers open, deferring or shedding test jobs, and they close again when the services recover. The Hacklang implementation drops the half-open state because job retries and cached TTL queries handle recovery, fails closed when metric lookups error, and notifies engineers whenever a breaker changes state.
- Building an End to End load test automation system on top of Kubernetes
Zalando Engineering mediumAdeptZalando'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.
- Building On-call: Continually testing with smoke tests
incident.io mediumAdeptincident.io runs an end-to-end smoke test suite for its On-call paging product every minute against production and staging, and also on every pull request and deploy using containers on a single machine. The suite covers core journeys such as alert ingestion and escalation paging, plus edge cases like malformed user JavaScript in alert parsing. Lessons drawn from building it: have each test begin by tearing down leftover state from earlier runs, set up data through the application's own abstractions rather than direct database or ORM writes, and assert on user-visible timing rather than database rows alone. Running continuous traffic also exposed hidden scaling assumptions, such as migrations that slowed down and batch operations that needed rethinking.