Distributed Database Partition Reclamation for Latency Reduction
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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.
2Loss of substance
If defragmentation and garbage collection processes are continuously running on data drives, then space reclamation is improved, but drive load increases
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.
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.
3Productivity
If read operations are prohibited during reclamation operations, then reclamation efficiency is improved, but system availability decreases
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.
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.
Data Source
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.


