Introduction
Modern key-value stores often rely on Log-Structured Merge-trees (LSM-trees) and tiered storage architectures to balance performance and cost. Typically, the "top" levels of the LSM-tree reside on fast SSDs, while the "bottom" levels are pushed to slower, cheaper storage like HDDs. However, this often results in frequently accessed "read-hot" records being compacted into the slow tier, leading to significant performance degradation.
Existing solutions to this problem often suffer from high memory overhead for tracking hot keys, the "cold hitchhiker" problem (where cold data is moved alongside hot data in large blocks), and delays caused by waiting for background compactions to move data. HotRAP (Hot Record Retention and Promotion) is a novel design that addresses these challenges by tracking the hotness of individual records and providing efficient pathways to keep them in the fast tier.
The HotRAP Architecture
HotRAP addresses the limitations of existing tiered storage solutions through a record-centric approach, ensuring that the fast storage tier is utilized exclusively by truly hot data.
Three Pathways to the Fast Tier
To ensure hot data remains accessible on high-speed hardware, HotRAP implements three distinct data movement pathways:
- Retention: During background maintenance (compaction), HotRAP identifies hot records already in the fast tier and retains them there, preventing them from being moved to slow storage.
- Promotion by Compaction: When a compaction occurs, the system "piggybacks" hot records from an in-memory cache back into the fast tier.
- Promotion by Flush: For read-heavy workloads where compactions are infrequent, HotRAP can proactively "flush" hot records from its cache directly into the top level of the fast tier, bypassing the need for a full compaction cycle.
RALT: On-Disk Hotness Tracking
A key innovation in HotRAP is the Recent Access Lookup Table (RALT). Instead of consuming limited RAM to track key hotness, HotRAP uses a specialized, tiny LSM-tree stored on the fast disk.
RALT stores only keys and metadata (access counts and timestamps), using exponential smoothing to prioritize recent access patterns. This allows the system to track billions of keys with a minimal memory footprint and low I/O overhead—typically only 5–12% of total system I/O.
Evaluation and Results
The researchers evaluated HotRAP using the Yahoo! Cloud Serving Benchmark (YCSB) and real-world production traces from Twitter.
- Throughput Gains: HotRAP achieved up to a 5.4× throughput improvement over state-of-the-art systems in read-only YCSB workloads and a 3.8× improvement in balanced read-write scenarios.
- Real-world Performance: On Twitter traces, which feature complex and shifting hot sets, HotRAP delivered up to 1.9× higher throughput than competitors.
- Efficiency: The system maintained a 94.5% hit rate for hot data in the fast tier. Under uniform workloads with no hot data, the system adds less than 1% overhead compared to standard RocksDB.
Conclusion
HotRAP demonstrates that fine-grained record management and decoupled data promotion pathways can significantly enhance the performance of LSM-trees on tiered storage. By offloading hotness metadata to fast disks via RALT and moving data at the record level, HotRAP effectively eliminates the performance gap between fast and slow storage tiers with minimal resource overhead.
Summary updated