AEGIS: CALIBRATED ANOMALY-RISK-DRIVEN CHECKPOINTING AND PROACTIVE MIGRATION FOR FAULT-TOLERANT HIGH-CONCURRENCY STREAM PROCESSING

Authors

  • XuanPing Zou (Corresponding Author) Zoom, Inc, San Jose 95113, USA.
  • KaiLang Wei Emory University, Atlanta, GA, USA.
  • Zhou Lu Northeastern University, San Jose, CA, USA.

Keywords:

Cloud reliability, Fault tolerance, Stream processing, Checkpointing, Anomaly detection, State space models, Conformal prediction

Abstract

High-concurrency cloud platforms run stateful stream-processing jobs whose availability depends on checkpoint-based rollback recovery. Production systems snapshot at static intervals tuned for an average failure rate, although cloud failures are announced by gray-failure symptoms in server telemetry and the cost of both snapshots and recovery rises sharply under bursty load. This paper presents AEGIS, a fault-tolerance controller that closes the loop between telemetry-based anomaly detection and dataflow recovery actions. AEGIS combines (i) DASS-Net, a dual-axis selective state-space detector that couples a Mamba-style causal scan over time with variate-token attention across metrics; (ii) a drift-aware conformal layer that turns residual evidence into distribution-free alarm p-values and a time-varying hazard; and (iii) a risk-integral checkpoint trigger and a break-even migration rule that generalize Young’s optimal interval to time-varying hazard, state size and load. Experiments use real telemetry of 28 production servers (SMD) and the PSM fleet, and real bursty arrival traces (NAB) that drive a fault-injection study of a partitioned dataflow job with incident-correlated crashes. DASS-Net achieves the highest AUC-ROC on SMD (0.850) and raises alarms 1.5 min earlier than the most timely of 7 re-implemented baselines. Over ten held-out runs, AEGIS lowers fault-tolerance waste by 38.3% relative to Young/Daly checkpointing and by 30.8% relative to prediction-triggered migration, avoids 63.7% of crashes, reduces SLO-violating records by 55.5%, and writes 37.2% fewer snapshots.

References

[1] Carbone P, Katsifodimos A, Ewen S, et al. Apache Flink: Stream and batch processing in a single engine. Bulletin of the IEEE Computer Society Technical Committee on Data Engineering, 2015, 38(4): 28-38.

[2] Carbone P, Ewen S, Fóra G, et al. State management in Apache Flink: Consistent stateful distributed stream processing. Proceedings of the VLDB Endowment, 2017, 10(12): 1718-1729.

[3] Fragkoulis M, Carbone P, Kalavri V, et al. A survey on the evolution of stream processing systems. The VLDB Journal, 2024, 33(2): 507-541.

[4] Carbone P, Fóra G, Ewen S, et al. Lightweight asynchronous snapshots for distributed dataflows. arXiv:1506.08603, 2015.

[5] Geldenhuys M K, Thamsen L, Kao O. Chiron: Optimizing fault tolerance in QoS-aware distributed stream processing jobs. In: Proceedings of the IEEE International Conference on Big Data, 2020: 434-440.

[6] Young J W. A first order approximation to the optimum checkpoint interval. Communications of the ACM, 1974, 17(9): 530-531.

[7] Daly J T. A higher order estimate of the optimum checkpoint interval for restart dumps. Future Generation Computer Systems, 2006, 22(3): 303-312.

[8] Huang P, Guo C, Zhou L, et al. Gray failure: The Achilles’ heel of cloud-scale systems. In: Proceedings of the Workshop on Hot Topics in Operating Systems (HotOS), 2017: 150-155.

[9] Lin Q, Hsieh K, Dang Y, et al. Predicting node failure in cloud service systems. In: Proceedings of the ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE), 2018: 480-490.

[10] Levy S, Yao R, Wu Y, et al. Predictive and adaptive failure mitigation to avert production cloud VM interruptions. In: Proceedings of the USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2020: 1155-1170.

[11] Bouguerra M S, Gainaru A, Bautista-Gomez L, et al. Improving the computing efficiency of HPC systems using a combination of proactive and preventive checkpointing. In: Proceedings of the IEEE International Symposium on Parallel and Distributed Processing (IPDPS), 2013: 501-512.

[12] Aupy G, Robert Y, Vivien F, et al. Checkpointing algorithms and fault prediction. Journal of Parallel and Distributed Computing, 2014, 74(2): 2048-2064.

[13] Engelmann C, Vallée G R, Naughton T, et al. Proactive fault tolerance using preemptive migration. In: Proceedings of the Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP), 2009: 252-257.

[14] Su Y, Zhao Y, Niu C, et al. Robust anomaly detection for multivariate time series through stochastic recurrent neural network. In: Proceedings of the ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2019: 2828-2837.

[15] Audibert J, Michiardi P, Guyard F, et al. USAD: Unsupervised anomaly detection on multivariate time series. In: Proceedings of the ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2020: 3395-3404.

[16] Tuli S, Casale G, Jennings N R. TranAD: Deep transformer networks for anomaly detection in multivariate time series data. Proceedings of the VLDB Endowment, 2022, 15(6): 1201-1214.

[17] Xu J, Wu H, Wang J, et al. Anomaly Transformer: Time series anomaly detection with association discrepancy. In: Proceedings of the International Conference on Learning Representations (ICLR), 2022.

[18] Silvestre P F, Fragkoulis M, Spinellis D, et al. Clonos: Consistent causal recovery for highly-available streaming dataflows. In: Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD), 2021: 1637-1650.

[19] Del Monte B, Zeuch S, Rabl T, et al. Rhino: Efficient management of very large distributed state for stream processing engines. In: Proceedings of the ACM SIGMOD International Conference on Management of Data (SIGMOD), 2020: 2471-2486.

[20] Gu A, Dao T. Mamba: Linear-time sequence modeling with selective state spaces. arXiv:2312.00752, 2023.

[21] Liu Y, Hu T, Zhang H, et al. iTransformer: Inverted transformers are effective for time series forecasting. In: Proceedings of the International Conference on Learning Representations (ICLR), 2024.

[22] Gibbs I, Candès E. Adaptive conformal inference under distribution shift. In: Advances in Neural Information Processing Systems (NeurIPS), 2021, 34.

[23] Abdulaal A, Liu Z, Lancewicki T. Practical approach to asynchronous multivariate time series anomaly detection and localization. In: Proceedings of the ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2021: 2485-2494.

[24] Lavin A, Ahmad S. Evaluating real-time anomaly detection algorithms—The Numenta anomaly benchmark. In: Proceedings of the IEEE International Conference on Machine Learning and Applications (ICMLA), 2015: 38-44.

[25] Hundman K, Constantinou V, Laporte C, et al. Detecting spacecraft anomalies using LSTMs and nonparametric dynamic thresholding. In: Proceedings of the ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2018: 387-395.

[26] Zeng A, Chen M, Zhang L, et al. Are transformers effective for time series forecasting? In: Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), 2023, 37(9): 11121-11128.

[27] Nie Y, Nguyen N H, Sinthong P, et al. A time series is worth 64 words: Long-term forecasting with transformers. In: Proceedings of the International Conference on Learning Representations (ICLR), 2023.

[28] Kim S, Choi K, Choi H-S, et al. Towards a rigorous evaluation of time-series anomaly detection. In: Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), 2022, 36: 7194-7201.

[29] Garg A, Zhang W, Samaran J, et al. An evaluation of anomaly detection and diagnosis in multivariate time series. IEEE Transactions on Neural Networks and Learning Systems, 2022, 33(6): 2508-2517.

[30] Liu F T, Ting K M, Zhou Z-H. Isolation forest. In: Proceedings of the IEEE International Conference on Data Mining (ICDM), 2008: 413-422.

Downloads

Published

2024-10-15

Issue

Section

Research Article

DOI:

How to Cite

XuanPing Zou, KaiLang Wei, Zhou Lu. Aegis: Calibrated Anomaly-Risk-Driven Checkpointing And Proactive Migration For Fault-Tolerant High-Concurrency Stream Processing. Innovation and Technology Studies. 2024, 1(1): 78-86. DOI: https://doi.org/10.61784/its4031.