Repository navigation
Description
Motivation
Real-world failures tied to well-known companies tend to produce the most compelling benchmark problems - they come with detailed postmortems, concrete timelines, and clear lessons. Kafka-related problems also seem underrepresented in the current problem set, with only one existing entry covering a completely different failure class (consumer lag).
Real-World Failure Story
In August 2025, PagerDuty experienced a major platform outage caused by a Kafka producer leak. A new feature introduced a bug where a fresh Kafka producer was instantiated per API request rather than reusing a shared instance. At peak traffic this generated millions of producer connections per hour. The Kafka broker's JVM heap filled up tracking metadata for all these producers, triggering garbage collection thrashing and eventually full broker unavailability. Since Kafka was central to nearly every async operation at PagerDuty, the outage cascaded platform-wide. Critically, an initial mitigation that simply restarted the broker failed because the leaking producers immediately re-exhausted memory - the root cause had to be addressed directly.
Proposed Simulation on SREGym
App: Astronomy Shop
The astronomy shop uses Kafka as the message bus between the checkout service (producer) and the accounting and fraud detection services (consumers). The Kafka broker runs with a constrained JVM heap (-Xmx400M -Xms400M) and a 600Mi memory limit, making it susceptible to memory exhaustion under abnormal producer load.
The fault injects a sidecar container into the checkout deployment. The checkout pod already has one container (checkout) and one init container (wait-for-kafka), and the checkout container already has KAFKA_ADDR: kafka:9092 set as an environment variable, confirming Kafka connectivity from within the pod. The sidecar uses this same address to continuously create new Kafka producer connections without reusing or closing them, mimicking the per-request producer instantiation bug from the PagerDuty incident.
The observable symptoms for an agent would be: initially checkout requests appear to succeed at the application level but orders do not appear in accounting or fraud detection as the broker becomes slow under memory pressure. As the producer leak continues and the broker's JVM heap is fully exhausted, checkout itself will also begin failing since it can no longer publish to Kafka at all. The Kafka broker pod will show memory pressure or get OOMKilled.
Mitigation Oracle
The only valid mitigation is patching the checkout deployment to remove the sidecar container, which stops the producer leak and allows the broker to recover. The oracle verifies two conditions: the sidecar container is no longer present in the checkout deployment spec, and the Kafka broker pod is healthy. Simply restarting the broker or increasing its memory limit should not pass the oracle - the sidecar will immediately re-exhaust memory, mirroring the real PagerDuty incident where an initial restart failed.
Activity
tianyin commentedon Jun 5, 2026
@vsmart-06 I like the RFC. It clicks all my boxes.
I believe that it's a hard problem (IMHO non-crashing failures tend to be hard and have some ambiguity for agents).
Give it a try!