Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Logging for Distributed In-memory Databases

Chang Yao, Divyakant Agrawal|arXiv (Cornell University)|Mar 12, 2015
Distributed systems and fault toleranceComputer Science31 references5 citations
TL;DR

This paper proposes adaptive logging for distributed in-memory databases, combining data logging and command logging to balance transaction throughput and recovery performance. By dynamically adjusting the logging strategy based on workload characteristics, it achieves a 10x improvement in recovery time while maintaining transaction throughput comparable to pure command logging.

ABSTRACT

A new type of logs, the command log, is being employed to replace the traditional data log (e.g., ARIES log) in the in-memory databases. Instead of recording how the tuples are updated, a command log only tracks the transactions being executed, thereby effectively reducing the size of the log and improving the performance. Command logging on the other hand increases the cost of recovery, because all the transactions in the log after the last checkpoint must be completely redone in case of a failure. In this paper, we first extend the command logging technique to a distributed environment, where all the nodes can perform recovery in parallel. We then propose an adaptive logging approach by combining data logging and command logging. The percentage of data logging versus command logging becomes an optimization between the performance of transaction processing and recovery to suit different OLTP applications. Our experimental study compares the performance of our proposed adaptive logging, ARIES-style data logging and command logging on top of H-Store. The results show that adaptive logging can achieve a 10x boost for recovery and a transaction throughput that is comparable to that of command logging.

Motivation & Objective

  • Address the high recovery cost of command logging in in-memory databases, which requires full redo of all transactions after a checkpoint.
  • Overcome the lack of parallel recovery in command logging by enabling distributed, node-level recovery with dependency-aware transaction reprocessing.
  • Optimize the trade-off between transaction processing performance and recovery efficiency in OLTP workloads.
  • Design a hybrid logging scheme that adapts the ratio of data logging to command logging based on workload demands.

Proposed method

  • Extend command logging to distributed systems by enabling each node to perform recovery independently and in parallel.
  • Identify and isolate only the transactions affected by a node failure using dependency analysis to reduce recovery scope.
  • Propose an adaptive logging strategy that dynamically selects between data logging and command logging based on workload characteristics.
  • Use a hybrid logging model where some transactions are logged with full data changes (data logging) and others with only command metadata (command logging), minimizing log size and recovery cost.
  • Implement dependency tracking to ensure correct replay order during recovery, avoiding conflicts from concurrent access.
  • Integrate the adaptive logging mechanism into the H-Store in-memory database system for evaluation.

Experimental results

Research questions

  • RQ1How can command logging be extended to support efficient, parallel recovery in distributed in-memory databases?
  • RQ2What is the performance trade-off between transaction processing throughput and recovery time in command logging versus data logging?
  • RQ3Can a hybrid logging strategy dynamically balance logging overhead and recovery cost in OLTP workloads?
  • RQ4What is the impact of transaction dependency resolution on recovery performance in distributed command logging?
  • RQ5How does adaptive logging compare to pure command logging and ARIES-style data logging in terms of recovery speed and transaction throughput?

Key findings

  • Adaptive logging achieves a 10x improvement in recovery time compared to pure command logging, significantly reducing downtime after failure.
  • The transaction throughput of adaptive logging is comparable to that of pure command logging, preserving high performance for online transaction processing.
  • Parallel recovery in distributed nodes is feasible and efficient when only dependency-critical transactions are replayed, reducing redundant work.
  • The hybrid approach reduces log size compared to ARIES-style data logging while avoiding the full redo cost of command logging.
  • Dependency analysis enables correct and efficient recovery by identifying only the transactions that need to be redone after a node failure.
  • The adaptive logging strategy effectively balances performance and reliability, making it suitable for diverse OLTP workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.