跪拜 Guibai
← Back to the summary

Huolala Runs Big Data Ops with Workflow+Agent Hybrid That Self-Heals Alerts

Summary: As big data clusters keep growing, the traditional ops model that relies on manual experience can no longer meet stability and efficiency requirements. This article shares the complete construction path from the automated ops platform TSL to an intelligent ops AI Agent, covering process orchestration, root cause analysis, alert self-healing, multi-Agent architecture, and an ops knowledge base. The goal is to push ops from manual-experience-driven toward intelligence.

Background

As the company's globalization accelerates, we have deployed more than 10 data centers across multiple clouds and regions, supporting real-time, offline, and analytics big data scenarios, forming a distributed system with diverse scenarios, large scale, and complex architecture, which imposes higher demands on delivery efficiency and stability. Main challenges include:

  1. Many ops processes, hard to reuse: There are many SOPs, and a large portion of steps rely on scripts and manual operations (cluster deployment/expansion/upgrade/config release, etc.); similar operations vary greatly across components, making it hard to condense experience into reusable automation.
  2. Multi-cluster, multi-component makes standardization difficult: The scale of clusters and components is large, and the entry points and steps for release, maintenance, and change are not unified.
  3. High coordination cost for cross-region changes and rollbacks: One change often involves multiple regions, clusters, services, and third-party components, requiring staged canary releases; components are mostly stateful services, and rollbacks often come with data consistency handling, making risk control hard.
  4. Multiple scenarios coexist, SLA tiers are distinct: Batch processing, real-time computation, online services, and OLAP have different latency and availability requirements, so resource scheduling and stability policies need to be layered per scenario.
  5. Long fault location chains: Problems may span collection, transmission, computation, and storage; metrics, logs, and task states are scattered across multiple systems, and correlation analysis relies on manual work, which can stretch time-to-locate and time-to-recover.

To address these challenges, we need to strengthen two core dimensions:

  1. Ops efficiency: We currently support daily ops for 100+ clusters, 50,000+ CPU cores, and 40+ components; automation and intelligence are badly needed to replace manual operations.
  2. System stability: Given that any single point of failure in the global architecture may impact multiple business lines, we need to build an end-to-end stability assurance system covering the full chain.

Against these challenges, we improved ops capabilities in four stages:

  1. Manual stage: Start from standardization, build and refine ops SOPs, change control, and monitoring/deployment of service components.
  2. Tool stage: Script key processes, improve the global architecture, and initially boost ops efficiency.
  3. Platform stage: Build an automated ops platform and push capabilities into practice.
  4. Intelligent stage: Automation covers most ops scenarios; we begin exploring intelligent ops.

Next, we focus on the results of automation construction and intelligent ops construction.

Automated Ops Construction

  1. Problems and Pain Points

In early work, we faced significant challenges. Take the offline YARN cluster expansion shown below: it relied on SOPs and scripted operations, with many steps, long duration, and manual intervention prone to stability risks. In the past, the big data SRE team spent nearly 70% of their time on transactional tasks in the early stage. To address these pain points, the team planned automation capability building in advance.

  1. Capability Building

Automation construction has produced two key capabilities that support the big data automated ops platform:

Based on these, we built the big data automated ops platform in-house. Core features include workflow management, asset management, process orchestration, and a service control Agent. These capabilities are applied to key scenarios like fault emergency scaling and promotion resource assurance.

  1. Platform Status

The automated ops platform TSL now has core features such as asset management, workflow orchestration, and Agent capabilities. It is already in production as the foundation for big data ops. It currently supports managing over a thousand ops resources, efficient resource delivery, release and changes, and cloud migration, building a high-efficiency, stable ops support system.

Intelligent Ops Construction

  1. Problems and Pain Points

After reaching a relatively mature stage with automation, we started exploring intelligent ops for big data.

Currently, after alert governance, there are still 50+ phone alerts per week, average location time is 20 to 30 minutes, and analysis requires switching between multiple systems within big data. Human input costs are high and efficiency is low. If alerts are not responded to promptly, it can directly cause job failures/delays, inaccurate or interrupted data output, unavailable reports and dashboards, and affect downstream business decisions and online services, further triggering SLA violations and expanding the impact. At the same time, alert scenarios are becoming more complex, with high accuracy requirements. Based on these challenges, we officially launched the construction of root cause analysis and alert self-healing capabilities.

  1. Construction Goals

We set two core goals for intelligent ops:

  1. Platform Architecture

Based on the above goals, we designed the intelligent ops platform with a three-layer architecture:

  1. Application Scenarios

  1. Workflow and Agent

In big data alert scenarios, the system is highly complex, with many anomaly types and long chains. There are many operations that can be standardized, but also many decision problems with incomplete information and dynamic changes.

Dimension Workflow Agent
Core idea Rules + process Autonomous decision + action
Input requirements Relatively clear requirements, clear boundaries Can handle vague requirements / incomplete information
Stability Very high (predictable results) Relatively low (possible decision variance)
Scalability Weak (new features require changing the workflow) Strong (just add a new tool)
Maintainability Weak (large projects, many nodes, hard to maintain) Relatively good (concentrated in prompts & models)

Therefore we adopt a Workflow + Agent collaboration model: Workflow provides a standardized, auditable process skeleton, while Agent provides intelligent analysis and dynamic scheduling tools for uncertainty, achieving a balance of efficiency and controllability.

  1. Multi-Agent

In big data root cause analysis, faults typically involve multi-dimensional signals and cross-system evidence (metrics, logs, health, dependency/lineage, changes, etc.), with long analysis chains, many branches, and incomplete information. In a single-Agent architecture, it is difficult to stably cover multi-domain methods and complex toolchains while meeting latency requirements, and an overly long reasoning chain can lead to misjudgment and non-reproducibility. To improve systematic analysis capability and result credibility, we adopt a multi-Agent architecture: split end-to-end attribution analysis into multiple parallel specialized analysis tasks, with different Agents collecting evidence and inferring using their own tools and strategies; finally, a summarization/arbitration mechanism aligns, cross-validates, and evaluates confidence across multiple evidence paths, outputting structured, explainable, and replayable root cause conclusions and handling recommendations.

  1. Ops Knowledge Base

We built an intelligent ops knowledge base as a "knowledge hub" to support problem understanding, experience reuse, and precise decision-making. The knowledge base covers five categories: infrastructure, monitoring, logs, faults, and operations. It is bound to application scenarios through seven standardized steps, forming a usable, extensible ops knowledge system. It will be continuously updated as scenarios deepen, further improving analysis and decision accuracy.

  1. Evaluation System

In model application service scenarios, an evaluation system is crucial, and big data intelligent ops is no exception. There are three main difficulties:

  1. High dimensionality, high barrier: One alert needs to check whether logs/metrics are valid, whether analysis is correct, and whether recommendations are actionable.
  2. High maintenance cost: Standards, knowledge base, and BadCases must be continuously updated; if not iterated, they go stale, making long-term persistence difficult.
  3. Unstable online data: Alert context differs each time, and conclusions for similar problems fluctuate; a single right/wrong label does not represent overall service quality.

These difficulties converge into a closed loop: on-site only does tiered scoring + remarks, knowledge base/BadCase updates periodically, and effects are measured using long-term real alert data. The platform runs the full "alert analysis — user evaluation — data entry — iterative optimization" cycle, forming a data flywheel that makes analysis more accurate with use and the knowledge base richer.

  1. Alert analysis: use expert knowledge to assist attribution/self-healing judgment, with conclusions output via Feishu
  2. User evaluation: on-duty colleagues score analysis quality (failing / passing / excellent) and add remarks
  3. Data entry: analyze data and enter excellent cases (GoodCases) into the knowledge base, with regular updates
  4. Iterative optimization: BadCase analysis and targeted optimization to improve attribution diagnosis accuracy

  1. Online Application

Launched results: Alert attribution and alert self-healing scenarios are live with good results.

Future and Outlook

  1. Service-Oriented Architecture

We will unify the entire intelligent ops architecture, from bottom to top in four layers plus stability assurance capabilities:

  1. Intelligent Ops Direction

Looking ahead, we will build a "zero-trust" ops security foundation for the future, pushing ops capabilities from "supportive tool" to "autonomous closed loop," aiming for higher efficiency, stronger stability, and greater certainty in the ops system.

Product R&D team (Big Data SRE): Zhang Weiwei, Liang Jiancong, Cai Jin, Zhang Dingkang