BISWAS Bengali reliability markBISWASAGENTIC RELIABILITY & TRUST
← All stories

CHAOS ENGINEERING · BRAHMOS

Brahmos: Continuous Availability-Zone Chaos at Atlassian

How we turned a quarterly, hand-run disaster-recovery exercise into a platform that fails over a random availability zone under thousands of production services every quarter, with nobody in the room.

Deepak BiswasDeepak Biswas
October 2026

Brahmos is Atlassian's chaos engineering platform. It lets a service owner break their own service on purpose, from a UI, a CLI, an API or a deployment pipeline, and it tells them whether the service held up. Today it injects faults across six families, from CPU and memory pressure to network delay, DNS blackholes, instance termination, dependency failures and full availability-zone failover, against every service on our internal compute platform. In this post we focus on the capability that changed how Atlassian does disaster recovery: continuous availability-zone failover, which we call Continuous AZDR.

We built it because the alternative was a seven-hour day.

The quarterly exercise

Atlassian has run an availability-zone failure test across its compute platform, Micros, since 2017. The mechanics are simple: for every service, remove one zone from the autoscaling group and the load balancer, swap the cache primary with its replica, and force a database failover. Then put everything back.

The simplicity hid the cost. Four engineers ran scripts from a jump host. One staging run in 2023 took seven hours and was considered smooth. When we later added up planning, preparation and execution, the quarterly cycle came to about 18 engineering days. Service owners missed the announcement and found out when their service failed over. In one quarter a subnet-ordering bug meant the compute failover silently did nothing for a large share of services, and completion was reconciled by hand in a spreadsheet.

The exclusion list was the deeper problem. By early 2024, roughly one production service in five was excluded from the exercise. Any service that was not ready could opt out, so the exercise certified the services least likely to fail and said nothing about the rest.

What Brahmos is

Brahmos predates the zone-failover work. We started it in 2020 after evaluating a commercial chaos product and deciding we needed an in-network kill switch, blast-radius controls and tight integration with our own platform more than we needed a vendor. The first version ran on the open-source Chaos Toolkit and injected CPU, memory, disk and latency faults into staging services.

An experiment in Brahmos has always had the same three parts: a load profile, a steady-state hypothesis and a fault. The platform drives load through our performance tooling, confirms that the service meets its steady-state probes under that load, injects the fault, and keeps evaluating the probes until the fault ends or a halt condition trips. That model is the subject of Atlassian's US Patent 11,748,242, "Proactive monitoring of a software application framework", on which four of the original engineers are named inventors.

The fault inventory grew from there:

FamilyFaults
Resource stressCPU, memory, I/O, disk
Networkdelay, packet drop, packet corruption, packet duplication
Blackholea dependency, a cloud API, DNS
Cloudterminate instances, reboot a database
Availability zonecompute, database and cache failover
Applicationa dependency returns an error code or added latency

A manual wargame used to cost a team about two days. With Brahmos it takes five to ten minutes to set up, and the plan is reusable. By mid 2024 well over a thousand services had run at least one Brahmos fault in the previous six months.

Service-level zone-failover faults arrived in late 2021, so a team could fail over its own database or cache at any time rather than waiting for the quarter. The obvious next question was whether the quarterly exercise itself could run on the platform.

Automating the big day

In September 2022 we shipped brahmos-azdr, a Go service with a GraphQL API and a Postgres store, built to run the whole quarterly exercise. One exercise is seven fixed activities in order: dry run, database failover, cache failover disable, cache failover, cache failover re-enable, compute failover and compute restore. Each activity requires two distinct approvers before it executes. Compute failover goes through the Micros control plane, cache failover through the ElastiCache API, database failover through RDS.

The first staging dry run took 13 hours and 26 minutes and kept running for eight hours after we aborted it. It had made 112,000 sequential calls to the platform API at about 150 a minute. Parallel discovery with rate-limit backoff fixed that.

In August 2023 the service ran its first production exercise. Execution time fell 59 percent against the scripted run, with zero preparation time. Compute failover dropped from 1 hour 21 minutes to 20 minutes and database failover from 52 minutes to under 20. By May 2024 a single run was failing over hundreds of cache groups and databases and thousands of compute targets across eight production regions in 1 hour 35 minutes, with no product impact. The Micros team's role went from four engineers executing to one supervising, and the engineering time the exercise consumed fell by roughly 90 percent.

It was a better exercise. It was still an exercise: one day, started by hand, with the exclusion list intact.

Brahmos architecture: scheduler, run executor, resource discovery and steady-state checks on top; the brahmos-azdr fault service with three engine generations; fault providers, targets across three zones, and evidence sinks
Figure 1. Brahmos today. The scheduler holds a chaos configuration per service deployment, the run executor drives each experiment, discovery resolves the service's resources in the target zone, and one fault service hosts three generations of zone-failover engine behind a single API and database.

Continuous AZDR

A December 2023 review listed three problems with the automated exercise: it was still initiated by people, which capped how often it ran; services could still be excluded; and there were no per-service results for compliance. We decided to stop treating zone failover as an event and start treating it as a fault like any other in the continuous-chaos scheduler. The quarterly day retired in September 2024.

The model is deliberately small. Every Micros service gets a continuous-chaos configuration when it deploys, with a schedule per deployment. Tier 0 and Tier 1 services run in a predictable two-week window at the start of each quarter; everything else runs at a random time in the first six weeks. The platform picks a random zone and fails every eligible resource in it at once: instances are terminated and the autoscaling group is denied capacity in that zone through AWS Fault Injection Service, the database is forced to fail over, and the cache primary moves to a replica in another zone. The fault lasts ten minutes. Runs happen on weekdays, one region per service per quarter, and owners can defer by seven days.

The execution engine is boring on purpose. A trigger becomes a row in a Postgres table. A worker group polls the table every minute, takes an advisory lock per task, runs ten tasks in parallel and writes one result row. Rollback is a second row whose execution time is now plus the fault duration. Eligibility rules do the gatekeeping: a database that is not Multi-AZ, a cache with no replica, or a cluster with fewer than two members is reported and skipped rather than failed over.

The first quarter taught us about blast radius. Zone failures on aggregation services broke a product's latency objective, and one monitoring service was being failed over 125 times a quarter because it had five copies in 25 environments. We paused for a month, added the one-region-per-service-per-quarter rule, and resumed.

Timeline from the 2020 Brahmos alpha through the 2022 zone-exercise service, the 2024 move to Continuous AZDR, the 2026 isolation engine and what comes next
Figure 2. Three engine generations in four years. The newest did not replace the oldest: the 2022 engine still runs the annual exercise in our compliance environment, where continuous chaos is not in scope.

Anatomy of an experiment

The animation below follows one zone-failover experiment as the newest engine runs it. Metric values are illustrative.

Animated walkthrough of one Brahmos zone-failover experiment: schedule fires, targets discovered, steady-state check, fault injected into one zone, traffic reroutes, monitoring, rollback, report
Figure 3. One experiment, eight phases. The continuous engine of 2024 ran eligibility checks and a timer; the steady-state and during-fault monitoring phases came with the 2026 engine, which orchestrates each experiment as a durable workflow.
  1. Schedule fires. The scheduler picks a service, an environment and a random zone.
  2. Targets discovered. Discovery returns every resource the service owns in that zone. Ineligible resources are reported and skipped.
  3. Steady state. Synthetic probes and the service's SLOs establish the baseline. A service that is already unhealthy is not exercised.
  4. Fault injected. Compute leaves the zone, the cache replica is promoted elsewhere, the database fails over. Each action keeps a rollback handle.
  5. Traffic reroutes. The load balancer drains the faulted zone. This is the moment the redundancy claim is actually tested.
  6. Monitoring. Probes run through the fault window. A failing probe or a fast-burning error budget aborts the experiment and rolls back early.
  7. Rollback. Compute scheduling in the zone is restored. Failovers are not reversed; the new primary stays where it landed, exactly as it would after a real outage.
  8. Report. Every phase was published to the event bus as it happened. The result and timeline are stored as evidence, and a failure is routed to the owning team.

The newest engine runs this lifecycle as a durable workflow on Temporal: five phases, each optionally gated by an operator signal, with child workflows running probe iterations before, during and after the fault. The same engine powers our service-isolation and region-isolation drills, where the fault is a 503 at the edge rather than a zone loss.

Results

1,000+
production service stacks failed over per quarter
and as many again in staging
18 → 2 → 0
engineering days per quarterly exercise
scripted, platform-run, continuous
20% → ~0
share of production services excluded
early 2024 to mid 2026
0
failed executions in the last two quarters
January to June 2026
10 min
fault window per experiment
one random zone, all resources at once
2
approvers before a human-run drill starts
scheduled runs need none
Two charts: engineering days per quarterly exercise falling from 18 to 2 to 0, and production services with a failed zone-failover execution per quarter falling from 22 to 0
Figure 4. Effort and failures. The residual failure causes in 2025 were a resources-per-target quota in the cloud fault-injection service, databases with full storage, and clusters whose customer-managed encryption keys were unavailable.

Two numbers matter more than the rest. The exclusion list went from one production service in five to a single entry, because a service can no longer opt out of the quarter; it can only defer a week. And failed executions fell from 22 services in the first full quarter to zero in the two most recent, as the long tail of ineligible resources was either fixed by owners or encoded as a skip rule.

What the experiments found

The passes are the point of compliance. The failures are the point of chaos engineering. Three findings from the last year, generalised:

An event-distribution service that could not throttle itself. A scheduled zone failover removed a third of its nodes. The survivors inherited more partitions, polled as fast as they could, pinned their CPUs and fell into a restart loop. An earlier run had shown the same symptom at half the traffic and self-healed in minutes, so nobody looked. The fix was self-throttling under reduced capacity, and a review habit: a self-healing anomaly in a chaos run is still a finding.

A cache tier the experiments never touched. A non-replicated cache has no failover API, so our zone faults had never exercised it. When one zone ran out of capacity for that cache type in production, the autoscaler did not retry in the other zones, the hit rate collapsed and database connection pools saturated behind it. The gap had been written down in a wargame brainstorm years earlier. The coverage map was the finding, and it now drives a new fault family for non-replicated caches and for zone capacity starvation.

An isolation that isolated one protocol. In a region-isolation drill we blocked inbound HTTP to a service at the proxy. Its health check went red as designed and orchestration completed in the other region. Then the logs showed workflow activities still executing in the "isolated" region: the workflow engine dispatches tasks to its workers over gRPC, which never passes through the proxy. Egress isolation is now part of the fault.

A fourth lesson came from the platform itself. A scheduled run once failed a database over to a standby that was still in recovery, and the engine had verified nothing after the failover. Post-failover verification is now the first item on the engine's backlog, and the reason the walkthrough above has a monitoring phase.

Safety

Breaking production on a schedule only works if the controls are stronger than the faults. Ours are:

  • Eligibility before injection. Resources that cannot survive the fault by design are skipped and reported, never failed over.
  • Blast radius by construction. One service, one zone, ten minutes, one region per quarter, weekdays only.
  • Kill switches at three levels. Global, per environment and per service, plus a seven-day deferral for owners.
  • Two approvers for anything a human triggers, and signal-gated phases on the durable-workflow engine.
  • Rollback as a scheduled task, not a code path that has to succeed under stress.
  • Evidence for every run on the event bus, in the results store and in a quarterly report that auditors read.

Scaling the control plane

Two engineering details are worth recording. The original orchestrator ran Cadence inside the main API service, which capped concurrent wargames at about 22; splitting the workflow engine into its own service with its own database lifted that past 300 before we stopped testing. And the first-generation exercise engine held every target in a goroutine pool with no persisted state, which is why a 13-hour dry run could outlive its own abort. The continuous engine persists each step as a row; the newest persists each step as a Temporal workflow event. Each generation moved more state out of process.

What's next

Coverage is the gap. Our zone faults are built on the Micros control plane and AWS managed services, and the fault model does not yet reach Kubernetes workloads or non-replicated caches. Closing that gap is the work in front of us.

The longer bet is an agent in the loop. Brahmos already produces what an agent needs: incident reviews that name the gaps, an SLO catalogue, a dependency graph, a fault inventory with eligibility rules, and an evidence store of every past run. The design we are working toward, shown below, puts an agent at both ends of the experiment and keeps people and the workflow engine in the middle.

Agent-in-the-loop design: the agent reads incident reviews, SLOs, the dependency graph and past evidence, proposes a hypothesis, selects a fault, predicts blast radius; a threshold routes high-radius experiments through a dependency-owner workflow before human approval mints a time-limited token; Brahmos executes; the agent analyses the evidence, writes the report and assigns actions
Figure 5. The target design. Steps 1 to 4 and 7 to 8 are the agent. Steps 5 and 6 are people and the workflow engine. Execution is Brahmos as it runs today.

The loop starts from incident data. The agent builds context for a service from its recent incident reviews, its SLOs and error budgets, its position in the dependency graph and the outcomes of every experiment that has touched it. From that it proposes a hypothesis in the form the platform already understands: a steady-state condition, a fault, and what should still be true during the fault. It selects the fault from the inventory, runs the eligibility rules as a dry run, and asks the platform for a blast-radius prediction: which callers and which shared infrastructure the fault would reach, scored against the dependency graph and past runs.

The score decides the path. Below a per-tier threshold, the proposal goes straight to an approver. Above it, the workflow engine first opens a dependency workflow: the owners of the services in the predicted radius are notified, a window is agreed, and their probes are added to the steady-state set so that the experiment measures the blast radius it predicted. Only then does a human sign the proposal, and only then does the workflow engine mint a time-limited approval token. Every write the agent can make, through a Model Context Protocol server over the platform, requires that token. The engine owns the fault and the rollback handle; the agent can request an abort but cannot suppress one.

When the run ends, the agent takes the other end of the loop. It reads the probe results, SLO traces and logs against the hypothesis, computes recovery time, and writes the report: verdict per hypothesis, evidence, and what did not match the prediction. Each finding becomes a ticket on the owning team's backlog, and the report itself joins the evidence store that the next proposal will read.

None of that is in production yet. What is real is narrower: agents already maintain the platform's own code, and one consuming team has automated grading its wargame results against a spec. The pieces the design depends on, the eligibility rules, the evidence store, the approval and abort signals on the durable-workflow engine, already exist. The agent adds judgement at the front and the back; the controls in between are the ones we trust today.

Learn more

The patent behind the experiment model is US 11,748,242. Brahmos is built on the open-source Chaos Toolkit, Temporal and Cadence, and uses AWS Fault Injection Service for compute faults. If you run a zone-failure exercise by hand today, we would like to hear what it costs you.


Deepak Biswas is a Senior Engineering Reliability Leader at Atlassian, responsible for automated incident detection, resiliency testing and disaster-recovery orchestration. More at https://biswas-ai.com. Thanks to the Resilience Engineering and Central DR engineers who built and operate Brahmos, and to the Micros team who trusted a tool with their quarter.

CONTINUE THE CONVERSATION

What does this change for your platform?

Talk reliability with Deepak ↗

NEWSLETTER

AI observability,
in your inbox.

The latest technical news and trends in AI observability, AI infrastructure reliability and AI gateways.