LogDB: Multivariate Log-based Failure Diagnosis for Distributed Databases (Extended from MultiLog)

Lingzhe Zhang, Tong Jia, Mengxi Jia, Ying LiarXiv 2025 · DOI

Abstract

Distributed databases (DDBs) are critical to modern cloud infrastructure but present unique challenges for failure diagnosis due to their distributed nature and complex anomaly patterns. This paper introduces LogDB, a framework that leverages multivariate log embeddings and a Variational Autoencoder (VAE) to aggregate diagnostic information across an entire cluster. By capturing sequential, quantitative, and semantic log features, LogDB achieves superior diagnostic accuracy compared to existing state-of-the-art methods, particularly in identifying subtle system and database-specific failures.

Introduction

Distributed databases (DDBs) serve as the backbone of modern cloud services. However, their maintenance is notoriously difficult; a single "slow query" or a background task conflict can result in massive financial losses. While system logs provide a wealth of information, existing log-based failure diagnosis methods often fall short in DDB environments for three primary reasons:

  1. Distributed Nature: Most tools are designed for single-node systems, ignoring the leader-follower dynamics and data consistency models inherent in DDBs.
  2. Incomplete Data: For performance reasons, databases do not log every action, leading to "gaps" in the execution path.
  3. Complexity of Anomalies: DDBs face a unique mix of system-level issues (e.g., CPU saturation) and database-specific issues (e.g., background compaction storms).

LogDB is a specialized failure diagnosis framework designed to address these challenges by combining multi-modal log embeddings with a VAE to fuse data across the entire cluster.

Methods

LogDB processes logs through a three-stage pipeline designed to capture the full context of a distributed system's state.

The LogDB architecture, illustrating the flow from node-level log embedding to cluster-level fusion using a VAE and anomaly classification.

1. Multivariate Log Embedding

Instead of relying solely on log templates, LogDB extracts three types of information:

  • Sequential: The order of events.
  • Quantitative: The frequency of specific events.
  • Semantic: The actual meaning of log messages, processed using FastText and TF-IDF. This allows the model to understand that a "NullPointerException" is semantically different from a "ConnectionTimeout," even in similar structural positions.

2. Standalone Node Feature Extraction

Each node in the cluster utilizes a Long Short-Term Memory (LSTM) network enhanced with a Self-Attention mechanism. This configuration allows the model to "focus" on the most relevant log entries within a specific time window for each individual node.

3. Cluster-Level Fusion

To diagnose the entire cluster, LogDB employs a Variational Autoencoder (VAE). Since different nodes produce varying log volumes, the VAE compresses and standardizes these features into a "latent representation." Finally, a Convolutional Neural Network (CNN) acts as a meta-classifier to identify the specific failure type affecting the cluster.

Experimental Setup

The researchers evaluated LogDB using Apache IoTDB deployed in Docker containers. Traffic was generated using three industry-standard workloads: TSBS, TPCx-IoT, and IoT-Benchmark.

To simulate realistic failures, the team used Chaos Mesh to inject system-level faults and manual configuration changes to trigger database-level faults. The specific anomalies targeted are detailed in the table below.

Categorization of system and database-specific anomalies used for evaluating LogDB.

Key Results and Insights

LogDB consistently outperformed state-of-the-art baselines like LogKG, LogCluster, and Cloud19 across all benchmarks.

  • Accuracy: On the TSBS workload, LogDB achieved an F1-score of 98.06%, significantly higher than Cloud19 (78.68%).
  • Robustness: In the more complex TPCx-IoT workload, LogDB improved the F1-score by 26.83% over the best-performing baseline.
  • Handling Log Scarcity: Some failures, like network partitions, cause a decrease in log volume. LogDB’s quantitative embedding captures these "silences" as a signal, whereas traditional methods often fail.
  • Class-Wise Performance: LogDB was particularly effective at identifying "silent" failures (e.g., memory anomalies) where other tools almost completely failed (e.g., LogCluster scored ~21% while LogDB reached 100%).

Conclusion

LogDB demonstrates that a holistic, cluster-wide view is essential for diagnosing distributed systems. By aggregating disparate views from leaders and followers, it identifies patterns that are invisible to single-node analysis. Future work will involve testing LogDB on other DDB platforms and extending the framework to include metrics (CPU/RAM usage) and traces (request paths) for a truly multimodal diagnostic approach.

Summary updated

BibTeX
@misc{zhang2025logdb,
  author = {Lingzhe Zhang and Tong Jia and Mengxi Jia and Ying Li},
  title = {{LogDB: Multivariate Log-based Failure Diagnosis for Distributed Databases (Extended from MultiLog)}},
  year = {2025},
  eprint = {2505.01676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.01676},
}
Figure