Adaptive Database Replication Compression for CPU-Bandwidth Balance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In data replication environments, existing compression methods often consume significant CPU resources for compressing and decompressing data, and may not optimally utilize network bandwidth due to a lack of adaptive compression techniques tailored to specific database workloads.

Innovation Solution

A method that analyzes database workloads to generate a compression knowledge base, divides data streams into segments, assigns appropriate compression types based on this knowledge, and compresses and decompresses the segments accordingly, optimizing CPU usage and network efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If existing compression methods are used to compress data in data replication, then network bandwidth utilization is improved, but CPU resource consumption increases significantly

Engineering Contradiction:
Improvenetwork bandwidth utilizationVSAvoidCPU resource consumption
Core Design Contradiction:
Loss of energyVSUse of energy by moving object

Solution Approach 1:

The system dynamically adapts compression techniques based on database workload characteristics. It analyzes workload patterns and automatically adjusts compression methods and segments, transforming a static compression approach into a dynamic one that responds to changing conditions, thereby optimizing the balance between CPU usage and network bandwidth utilization

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes compression parameters based on workload analysis. By generating a compression knowledge base from workload analysis and adjusting compression types and segments according to specific database characteristics, it modifies compression parameters dynamically to reduce CPU overhead while maintaining effective network bandwidth utilization

Inventive Principle:
Principle #35Parameter changes

2Device complexity

If existing compression methods are used without workload-specific adaptation, then device complexity is reduced, but adaptability to different database workloads deteriorates

Engineering Contradiction:
Improvecompression system complexityVSAvoidadaptability to database workload
Core Design Contradiction:
Device complexityVSAdaptability or versatility

Solution Approach 1:

The system performs preliminary workload analysis to generate a compression knowledge base before applying compression. By analyzing database workload characteristics in advance and pre-determining optimal compression strategies, it prepares adaptation rules beforehand, enabling the system to adapt to different workloads without adding complex real-time decision-making mechanisms

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The compression knowledge base acts as an intermediary between the workload analysis and the compression process. It stores pre-analyzed workload characteristics and corresponding compression strategies, serving as a mediator that translates workload patterns into appropriate compression actions without requiring complex direct analysis during compression operations

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS11687560B2Database replication using adaptive compression
Publication Date: 2023.06.27 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11687560B2 patent drawing
  • US11687560B2 patent drawing
  • US11687560B2 patent drawing

AI summary

Methods, computer program products, and/or systems are provided that perform the following operations: in a data replication environment, analyzing a database workload to generate a knowledge base of information related to compression; dividing a transfer data stream into different segments based, at least in part, on the knowledge base; obtaining candidate compression types for the transfer data stream based, at least in part, on the knowledge base; assigning respective compression types of the candidate compression types to the different segments; generating compressed segments based, at least in part, on the respective compression types assigned to the different segments; and providing the compressed segments to a replication target.