Distributed Database Partition Reclamation for Latency Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database management systems face increased read and write latency due to ongoing defragmentation and garbage collection processes, which also elevate the load on data drives, impacting operational efficiency.

Innovation Solution

A method for distributed databases that involves creating a replica of data partitions, informing clients to prohibit read operations during reclamation processes, allowing write operations and defragmentation to occur on one partition while maintaining availability on another, thereby managing load and latency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If defragmentation and garbage collection processes are continuously running on data drives, then data organization and space reclamation are improved, but read and write latency increase and drive load increases

Engineering Contradiction:
Improvedata organizationVSAvoidread and write latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent divides the database system into multiple data partitions, allowing defragmentation and garbage collection to be performed on specific partitions without affecting the entire system. This segmentation enables selective maintenance operations that isolate the impact of reclamation processes to only the affected partition, thereby reducing overall system latency while maintaining data organization integrity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements periodic defragmentation and garbage collection operations on data partitions rather than continuous operations. By scheduling these reclamation processes at intervals and rotating through different partitions, the system maintains data organization while distributing the latency impact over time, preventing sustained high load on any single partition.

Inventive Principle:
Principle #19Periodic action

2Loss of substance

If defragmentation and garbage collection processes are continuously running on data drives, then space reclamation is improved, but drive load increases

Engineering Contradiction:
Improvedata spaceVSAvoiddrive load
Core Design Contradiction:
Loss of substanceVSPower

Solution Approach 1:

The patent segments the database into multiple data partitions that can be independently managed. This allows space reclamation to be performed on individual partitions without requiring the entire drive system to operate at high load simultaneously, thereby reducing overall drive load while still achieving effective space reclamation across the distributed system.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a coordinator component that manages and schedules defragmentation and garbage collection operations across multiple partitions. This intermediary distributes the reclamation workload over time and across different partitions, preventing any single drive from bearing excessive load while ensuring comprehensive space reclamation throughout the system.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If read operations are prohibited during reclamation operations, then reclamation efficiency is improved, but system availability decreases

Engineering Contradiction:
Improvereclamation efficiencyVSAvoidsystem availability
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The patent divides the database system into multiple independent data partitions, allowing read operations to continue on partitions that are not currently undergoing reclamation. This segmentation enables the system to maintain availability for client applications on healthy partitions while performing efficient reclamation operations on isolated partitions without mutual interference.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements periodic rotation through different data partitions for reclamation operations. By cycling through partitions in sequence and prohibiting reads only on the currently active partition, the system achieves efficient reclamation on each partition while maintaining overall system availability through the periodic nature of the operations and the presence of multiple partitions.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS10528254B2Methods and systems of garbage collection and defragmentation in a distributed database
Publication Date: 2020.01.07 BULKOWSKI BRIAN J
  • US10528254B2 patent drawing
  • US10528254B2 patent drawing
  • US10528254B2 patent drawing

AI summary

In one aspect, a computerized-method of a distributed database includes the step of providing a first data partition with a set of data. The method includes the step of providing a second data partition with a replica of the first set of data. The method includes the step of identifying a client application accessing the first data partition and the second data partition. The method includes the step of performing a reclamation operation on the second data partition. The method includes the step of informing the client application that a read operation is prohibited during the reclamation operation.