Perfce: Performance Debugging on Databases with Chaos Engineering-Enhanced Causality Analysis
Zhenlan Ji, Pingchuan Ma, Shuai Wang
Abstract
Debugging performance anomalies in databases is challenging. Causal inference techniques enable qualitative and quantitative root cause analysis of performance downgrades. Nevertheless, causality analysis is challenging in practice, particularly due to limited observability. Recently, chaos engineering (CE) has been applied to test complex software systems. CE frameworks mutate chaos variables to inject catastrophic events (e.g., network slowdowns) to stress-test these software systems. The systems under chaos stress are then tested (e.g., via differential testing) to check if they retain normal functionality, such as returning correct SQL query outputs even under stress. To date, CE is mainly employed to aid software testing. This paper identifies the novel usage of CE in diagnosing performance anomalies in databases. Our framework, PERFCE, has two phases - offline and online. The offline phase learns statistical models of a database using both passive observations and proactive chaos experiments. The online phase diagnoses the root cause of performance anomalies from both qualitative and quantitative aspects on-the-fly. In evaluation, Perfce outperformed previous works on synthetic datasets and is highly accurate and moderately expensive when analyzing real-world (distributed) databases like MySQL and TiDB.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- XInsight: eXplainable Data Analysis Through The Lens of CausalityPingchuan Ma, Rui Ding, Shuai Wang, Shi Han et al.SIGMOD 2023 · 20 citations
- Causality-Aided Trade-Off Analysis for Machine Learning FairnessZhenlan Ji, Pingchuan Ma, Shuai Wang, Yanhui LiASE 2023 · 6 citations
- Scalable Differentiable Causal Discovery in the Presence of Latent Confounders with Skeleton PosteriorPingchuan Ma, Rui Ding, Qiang Fu, Jiaru Zhang et al.KDD 2024 · 5 citations
- Enabling Runtime Verification of Causal Discovery Algorithms with Automated Conditional Independence ReasoningPingchuan Ma, Zhenlan Ji, Peisen Yao, Shuai Wang et al.ICSE 2024 · 2 citations
- FIRA: Enabling Automatic Forensic Investigation of Unmanned Aerial VehiclesYizhi Huang, David Oygenblik, Runze Zhang, Mingxuan Yao et al.USENIX Security 2026
Builds on18
- Sage: practical and scalable ML-driven performance debugging in microservicesYu Gan, Mingyu Liang, Sundar Dev, David Lo et al.ASPLOS 2021 · 170 citations
- Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
- DiBS: Differentiable Bayesian Structure LearningLars Lorch, Jonas Rothfuss, Bernhard Schölkopf, Andreas KrauseNeurIPS 2021 · 144 citations
- Groot: An Event-graph-based Approach for Root Cause Analysis in Industrial SettingsHanzhang Wang, Zhengkai Wu, Huai Jiang, Yichao Huang et al.ASE 2021 · 73 citations
- Causality-Based Neural Network RepairBing Sun, Jun Sun, Long H. Pham, Tie ShiICSE 2022 · 69 citations
Related papers
- Testing Computation Pushdown in Distributed Database SystemsJinsheng Ba, Zuming Jiang, Zhendong SuISSTA 2026
- Relational Debugging - Pinpointing Root Causes of Performance ProblemsXiang (Jenny) Ren, Sitao Wang, Zhuqi Jin, David Lion et al.OSDI 2023 · 5 citations
- Mozi: Discovering DBMS Bugs via Configuration-Based Equivalent TransformationJie Liang, Zhiyong Wu, Jingzhou Fu, Mingzhe Wang et al.ICSE 2024 · 18 citations
- PUPPY: Finding Performance Degradation Bugs in DBMSs via Limited-Optimization Plan ConstructionZhiyong Wu, Jie Liang, Jingzhou Fu, Mingzhe Wang et al.ICSE 2025 · 6 citations
- One DBMS, Two Modes, and a Bunch of Bugs: Catching Logic Bugs in Distributed DBMSs via Differential TestingZi-Xuan Fu, Jia-Ju Bai, Hong-Bo Feng, Kang ChenSIGMOD 2026
