← Latest papers
💻 computer science

KRCA: An Efficient Root Cause Analysis System in Hyper-Scale Microservice Systems via Agentic AI

This paper presents KRCA, an end-to-end root cause analysis system for hyper-scale microservices that combines a multi-stage pipeline with a memory-augmented multi-agent framework to achieve high diagnostic accuracy and efficiency, as evidenced by its successful six-month deployment at Kuaishou which reduced diagnosis time by 77.3%.

Original authors: Jiamin Jiang, Jingfei Feng, Yu Luo, Qingliang Zhang, Yongqian Su, Wenwei Gu, Shenglin Zhang, Tianyu Cui, Yao Wu, Jielong Huang, Nan Qi, Dan Pei

Published 2026-07-03
📖 4 min read☕ Coffee break read

Original authors: Jiamin Jiang, Jingfei Feng, Yu Luo, Qingliang Zhang, Yongqian Su, Wenwei Gu, Shenglin Zhang, Tianyu Cui, Yao Wu, Jielong Huang, Nan Qi, Dan Pei

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are the captain of a massive, futuristic cruise ship with 200,000 tiny, independent engines (microservices) working together to keep the ship running. Every day, new engines are added, old ones are tweaked, and different teams are constantly making changes.

One morning, an alarm blares: "The ship is slowing down!"

In the past, finding out which specific engine caused the slowdown was like looking for a needle in a haystack the size of a city. You'd have to check every single engine, one by one, often getting confused by the noise of thousands of other engines that were just reacting to the problem, not causing it. This took hours, and the ship (or in this case, an app like Kuaishou) would suffer huge losses while you figured it out.

KRCA is a new, super-smart detective system designed to solve this specific problem. Here is how it works, broken down into three simple steps:

1. The "Drill-Down" Flashlight (Narrowing the Search)

Instead of checking all 200,000 engines, KRCA starts at the exact spot where the alarm sounded (a specific API). It uses a special "flashlight" to look only at the engines directly connected to that spot.

  • The Analogy: Imagine a detective who doesn't search the whole city. Instead, they start at the crime scene and only follow the footprints of people who were there at that exact moment.
  • How it works: It checks the "failure rate" and "speed" of connected services. If a downstream engine is acting weird, it follows that path. If an engine is acting normal, it ignores it. This instantly shrinks the search from 200,000 suspects down to just a handful of "suspicious" ones.

2. The "Skeleton Map" (Organizing the Clues)

Once the system finds a suspicious engine, that engine might have hundreds of sensors (metrics) attached to it (temperature, pressure, fuel flow, etc.). Trying to figure out which sensor is the real culprit by looking at raw numbers is like trying to solve a puzzle with 400 pieces that are all jumbled up.

  • The Analogy: Instead of staring at a pile of jumbled puzzle pieces, KRCA first builds a skeleton frame of the puzzle. It knows that "Fuel Flow" usually causes "Engine Speed" issues, and "Temperature" usually causes "Pressure" issues.
  • How it works: It takes the weird sensor readings and snaps them into a pre-made "skeleton" map based on how the system is supposed to work. This gives the detective a structured starting point, so they don't get lost in the noise.

3. The "Team of Specialists" (The Agentic AI)

Now that the system has a small list of suspects and a structured map, it calls in a team of AI experts.

  • The Analogy: Imagine a main detective (the Main Agent) who calls in a Traffic Expert, a CPU Expert, and a Database Expert.
    • The Main Agent says: "Hey, the CPU is hot. Expert CPU, check if this is a real problem or just a glitch."
    • The Expert checks its own memory bank of past cases (like a veteran detective remembering a similar case from last year) and uses tools to gather proof.
    • They talk to each other, cross-checking facts, and saying, "No, that's not it," or "Yes, that's definitely the cause."
  • The Result: They work together to write a final report that says exactly which engine broke and why (e.g., "A memory leak in the storage service caused a chain reaction").

Why is this a big deal?

  • Speed: Before KRCA, it took engineers about 52 minutes to find the root cause. With KRCA, it takes about 11 minutes. That's a 77% reduction in time.
  • Accuracy: In tests, KRCA found the right engine 88% of the time and correctly identified the type of failure 79% of the time. This is much better than previous methods, which often got lost in the massive amount of data.
  • Real-World Success: This isn't just a theory. It has been running on Kuaishou's actual production system for over six months, handling thousands of alerts a day and saving the company significant money by stopping failures faster.

In short: KRCA is like a highly organized, multi-specialist detective team that uses a flashlight to narrow the search, a skeleton map to organize clues, and a memory bank of past cases to solve massive, complex system failures in minutes instead of hours.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →