2024-01-19 12:00:36 +08:00
# Tiered Compaction Strategy

2024-01-20 11:55:10 +08:00
In this chapter, you will:
* Implement a tiered compaction strategy and simulate it on the compaction simulator.
* Incorporate tiered compaction strategy into the system.
2024-01-20 12:05:57 +08:00
2024-01-21 00:45:10 +08:00
The tiered compaction we talk about in this chapter is the same as RocksDB's universal compaction. We will use these two terminologies interchangeably.
2024-01-22 01:10:50 +08:00
## Task 1: Universal Compaction
## Task 2: Compaction Simulation
## Task 3: Integrate with the Read Path
2024-01-21 00:45:10 +08:00
## Test Your Understanding
* What are the pros/cons of universal compaction compared with simple leveled/tiered compaction?
* How much storage space is it required (compared with user data size) to run universal compaction without using up the storage device space?
* The log-on-log problem.
We do not provide reference answers to the questions, and feel free to discuss about them in the Discord community.
2024-01-20 12:05:57 +08:00
{{#include copyright.md}}