Skip to main content
QUICK REVIEW

[Paper Review] LogBase: A Scalable Log-structured Database System in the Cloud

Hoang Tam Vo, Sheng Wang|arXiv (Cornell University)|Jun 30, 2012
Advanced Data Storage TechnologiesComputer Science28 references5 citations
TL;DR

LogBase is a cloud-native, log-structured database system that eliminates write bottlenecks by storing all data exclusively in a log, enabling high write throughput and fast recovery. It uses in-memory multiversion indexes to support efficient data access and transactional semantics, outperforming HBase and disk-based log-structured systems in write scalability and recovery efficiency.

ABSTRACT

Numerous applications such as financial transactions (e.g., stock trading) are write-heavy in nature. The shift from reads to writes in web applications has also been accelerating in recent years. Write-ahead-logging is a common approach for providing recovery capability while improving performance in most storage systems. However, the separation of log and application data incurs write overheads observed in write-heavy environments and hence adversely affects the write throughput and recovery time in the system. In this paper, we introduce LogBase - a scalable log-structured database system that adopts log-only storage for removing the write bottleneck and supporting fast system recovery. LogBase is designed to be dynamically deployed on commodity clusters to take advantage of elastic scaling property of cloud environments. LogBase provides in-memory multiversion indexes for supporting efficient access to data maintained in the log. LogBase also supports transactions that bundle read and write operations spanning across multiple records. We implemented the proposed system and compared it with HBase and a disk-based log-structured record-oriented system modeled after RAMCloud. The experimental results show that LogBase is able to provide sustained write throughput, efficient data access out of the cache, and effective system recovery.

Motivation & Objective

  • To address the write performance bottleneck in write-heavy cloud applications such as financial transactions and web logging.
  • To enable dynamic, elastic scaling in commodity cloud clusters for handling variable workloads.
  • To support efficient multiversion data access for analytical queries on historical data.
  • To provide transactional semantics for bundled read-write operations across multiple records.
  • To achieve fast system recovery after machine failures without relying on in-memory data structures.

Proposed method

  • Adopt a log-only storage model where all writes are appended to a single log file, eliminating in-place updates and reducing disk I/Os.
  • Use in-memory multiversion indexes to enable efficient point queries and range scans on data stored in the log.
  • Implement checkpointing and log replay for fast system recovery, reducing recovery time by avoiding full log scans.
  • Support snapshot isolation for multi-record, read-modify-write transactions to ensure consistency.
  • Dynamically scale the system across commodity clusters using a distributed architecture with data partitioning.
  • Use log compaction to cluster historical versions of records, minimizing index checks during scans.

Experimental results

Research questions

  • RQ1Can a log-only storage model eliminate the write bottleneck in write-heavy cloud workloads?
  • RQ2How does log-only storage compare to WAL+Data and in-memory systems in terms of write throughput and recovery time?
  • RQ3Can in-memory multiversion indexes efficiently support data access when data are stored only in the log?
  • RQ4To what extent can checkpointing improve system recovery performance in a disk-based log-structured system?
  • RQ5How does LogBase scale in terms of write throughput and query performance across multiple nodes?

Key findings

  • LogBase achieves sustained high write throughput by eliminating random I/Os through sequential log writes, outperforming HBase and disk-based systems in write-intensive workloads.
  • System recovery with checkpointing is significantly faster than full log replay, reducing recovery time by avoiding scanning the entire log.
  • LogBase provides faster recovery than traditional WAL+Data systems due to the absence of data file updates and reduced I/O overhead.
  • The use of in-memory multiversion indexes enables efficient access to data in the log, even for long-tail queries, with minimal performance degradation.
  • LogBase's sequential scan performance exceeds that of LRS (a LevelDB-based system) due to reduced index lookup overhead after log compaction.
  • Throughput scales effectively with cluster size, demonstrating strong horizontal scalability in dynamic cloud environments.

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.