Database Configuration Knob Determination via Vectorization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database configuration knob determination methods are time-consuming and inflexible, requiring repeated testing when workload conditions change, and cannot adapt dynamically to meet varying performance requirements such as delay and throughput.

Innovation Solution

A method that involves obtaining query statements, performing vectorization coding to extract feature vectors, and using a double-state deep reinforcement learning model to determine a configuration knob set based on current database status, allowing for dynamic tuning of configuration knobs at query-level, workload-level, or cluster-level to optimize performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a DBA manually tests and determines configuration knobs based on workload status, then the database can provide appropriate data services, but a large amount of time is consumed and the process cannot adapt dynamically when workload changes

Engineering Contradiction:
Improveadaptability to workload changesVSAvoidtime for configuration determination
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent implements dynamic configuration knob determination through an automated system that continuously monitors workload status and adjusts configuration parameters in real-time. The system transitions from static manual configuration to dynamic automated adjustment, enabling the database to adapt to changing workload conditions without manual intervention and significantly reducing the time required for configuration determination.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent enables the database system to automatically determine and adjust its own configuration knobs based on monitored workload status. The automated system performs self-service by eliminating the need for DBA manual testing and configuration, allowing the system to autonomously optimize performance parameters in response to workload changes.

Inventive Principle:
Principle #25Self-service

2Reliability

If configuration knobs are manually tuned for each service change, then the database can match service requirements, but repeated testing is required which is inefficient for dynamic network workloads

Engineering Contradiction:
Improveconfiguration matching accuracyVSAvoidconfiguration tuning efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent implements a feedback mechanism where the system continuously monitors workload status and uses this information to automatically adjust configuration knobs. The feedback loop enables the system to maintain accurate configuration matching without manual intervention, as the automated system receives real-time workload information and responds by optimizing configuration parameters accordingly.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent performs preliminary automated configuration determination based on predicted or current workload status before actual service execution. The system proactively adjusts configuration knobs in advance based on workload patterns, eliminating the need for repeated manual testing when service changes occur.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If multiple configuration parameters are adjusted to optimize database performance, then performance in delay and throughput can be improved, but the complexity of determining optimal values increases

Engineering Contradiction:
Improvedatabase throughput and delay performanceVSAvoidconfiguration determination complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements a universal automated configuration system that handles multiple configuration parameters and various workload types through a single integrated approach. The system performs multi-functionality by simultaneously monitoring diverse workload metrics and adjusting multiple configuration knobs based on a unified automated decision-making process, simplifying the overall complexity despite managing numerous parameters.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12164488B2Method and apparatus for determining configuration knob of database
Publication Date: 2024.12.10 HUAWEI TECH CO LTD
  • US12164488B2 patent drawing
  • US12164488B2 patent drawing
  • US12164488B2 patent drawing

AI summary

A method for determining a configuration knob of a database is disclosed, and may be applied to a database management system. In this method, vectorization coding is performed on a query statement, to obtain a target feature vector of the query statement, and then a configuration knob set for determining the database is determined based on two aspects of double-state information: the target feature vector and current status information of the database (101). The configuration knob set is used to execute N query statements. The configuration knob of the database (101) may be dynamically determined based on the query statement and the current status information of the database (101), so that good performance of the database (101) in a case of different workload requirements, for example, performance in aspects of a delay and a throughput, can be ensured.