Edge Key-Value Store Deduplication via Bloom Filter Compaction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Log-structured merge tree (LSM tree)-series key-value stores face a space amplification problem in update-intensive workloads due to delayed deletion and increased deprecated data, leading to inefficient use of storage space.

Innovation Solution

A data deduplication-extended compaction method is introduced for key-value stores, utilizing a Bloom filter to check for duplicated data during compaction, which removes duplicates when the deduplication ratio reaches a threshold, thereby reducing space amplification and maintaining a balance with write amplification.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If delayed deletion is implemented in LSM tree, then write amplification is reduced, but space amplification increases

Engineering Contradiction:
Improvewrite amplificationVSAvoidspace amplification
Core Design Contradiction:
ProductivityVSVolume of stationary object

Solution Approach 1:

The patent segments the compaction process into two distinct phases: a first compaction process that handles metadata compaction and SSTable relocation, and a second compaction process that performs deduplication. This segmentation allows the system to achieve both reduced write amplification (through delayed deletion in the first phase) and reduced space amplification (through deduplication in the second phase) without compromising either objective.

Inventive Principle:
Principle #1Segmentation

2Volume of stationary object

If deduplication is performed during compaction, then space amplification is reduced, but I/O costs increase

Engineering Contradiction:
Improvespace amplificationVSAvoidI/O costs
Core Design Contradiction:
Volume of stationary objectVSLoss of energy

Solution Approach 1:

The patent performs preliminary actions by first completing the first compaction process (metadata compaction and SSTable relocation) before initiating the second compaction process for deduplication. This preliminary completion of essential compaction tasks ensures that the system structure is stabilized, allowing the deduplication process to operate more efficiently with reduced I/O overhead, as the basic compaction framework is already in place.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If full compaction is performed, then data consistency is improved, but write amplification increases

Engineering Contradiction:
Improvedata consistencyVSAvoidwrite amplification
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies partial action by implementing a two-stage compaction process where the first stage performs essential compaction operations (metadata compaction and SSTable relocation) to achieve sufficient data consistency, while the second stage performs optional deduplication. This partial completion of compaction in the first stage maintains data consistency requirements while avoiding the excessive action of performing full compaction including deduplication in every write operation, thus reducing write amplification.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS11514010B2Deduplication-adapted CaseDB for edge computing
Publication Date: 2022.11.29 INHA UNIV RES & BUSINESS FOUNDATION
  • US11514010B2 patent drawing
  • US11514010B2 patent drawing
  • US11514010B2 patent drawing

AI summary

Disclosed is a data deduplication method for an edge computer. The method is performed in a key-value store, and may include receiving a compaction request occurred from the key-value store to a metadata layer, checking whether deduplication for removing duplicated data is required when compaction of a metadata file is performed in response to the received compaction request, and removing the duplicated data by checking whether the deduplication is required.