In-Memory Database Replication Factor Adjustment
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In-memory databases face challenges in efficiently managing data storage due to limited storage space and high costs, with existing methods failing to effectively manage data when storage is full, leading to potential failures and memory leaks.
Innovation Solution
A method that adjusts the replication factor of data stored in an in-memory database, allowing for the deletion of duplicated data when storage utilization reaches a threshold, thereby preventing memory-full states and ensuring storage space without altering the replication factor, and providing administrators with options for backup and expansion.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If data is stored with high replication factor in in-memory database, then data reliability is improved, but storage space consumption increases
Solution Approach 1:
The patent implements dynamic adjustment of replication factor based on memory utilization rate. When memory usage exceeds a threshold, the system automatically reduces the replication factor for certain data, thereby freeing up storage space while maintaining appropriate redundancy levels for reliability.
Solution Approach 2:
The system changes the replication factor parameter dynamically based on storage conditions. By adjusting this parameter according to memory utilization, the system optimizes the balance between data reliability (requiring higher replication) and storage space availability (requiring lower replication).
2Quantity of substance
If replication factor is reduced to free storage space, then storage space is secured, but data reliability deteriorates
Solution Approach 1:
The patent applies different replication factors to different data based on their characteristics and access patterns. Not all data is treated uniformly - critical data maintains higher replication factors while less critical data uses lower replication factors, optimizing both reliability and storage space utilization.
Solution Approach 2:
The system performs partial replication adjustment by selectively reducing replication factors for specific data sets rather than uniformly reducing all replication. This partial action maintains necessary reliability for critical data while freeing sufficient space for overall system operation.
3Loss of energy
If disk-based database is used instead of in-memory database, then storage cost is reduced, but access speed deteriorates
Solution Approach 1:
The patent proactively monitors memory utilization rates and adjusts replication factors before memory becomes completely full. This preliminary action prevents memory exhaustion and potential system failures, maintaining fast access speeds by ensuring sufficient buffer space in memory without needing to resort to slower disk-based storage.
Data Source
AI summary
Methods and apparatuses for managing data using an in-memory database are provided. One of the methods comprises, determining whether a memory utilization rate is equal to or greater than a threshold value, reducing the value of replication factor of data stored in the memory, when the memory utilization rate is equal to or greater than the threshold value as a result of the determination, and deleting at least one data duplicated with the data, in accordance with the reducing the value of replication factor.


