Database Tuning via Neural Network Workload Classification
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing automated database tuning techniques, such as Ottertune, face challenges in cloud platforms due to resource intensity, the cold-start problem, deep mapping issues, self-mapping errors, and cascading errors, which hinder timely and accurate knob configuration generation across diverse database management systems.
Innovation Solution
A database tuning service utilizing a neural network model that classifies workloads and generates recommended knob configurations, trained on reference workloads to optimize performance metrics, addressing the limitations of existing methods by improving classification accuracy and reducing resource requirements.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If traditional automated tuning techniques (e.g., Ottertune) are used to generate knob configurations, then tuning coverage across diverse database systems can be achieved, but resource consumption increases and the cold-start problem occurs
Solution Approach 1:
The patent creates virtual database instances that copy the structural characteristics of real database systems without requiring actual physical instances. These virtual instances serve as training data for the neural network model, eliminating the need to spin up real databases during the tuning process and significantly reducing resource consumption while maintaining broad tuning coverage across diverse database management systems.
Solution Approach 2:
The patent performs preliminary training of the neural network model using pre-collected database metadata and configuration parameters from multiple database systems. This preliminary action creates a pre-trained model that can immediately handle new tuning requests without requiring resource-intensive real-time exploration, thus solving the cold-start problem while maintaining versatility.
2Measurement precision
If comprehensive database metadata is collected and stored for training, then classification accuracy improves, but storage requirements and data processing complexity increase
Solution Approach 1:
The patent extracts only the most relevant and discriminative features from comprehensive database metadata, such as key configuration parameters, workload characteristics, and performance metrics. By selecting only the essential features needed for accurate workload classification rather than processing all available metadata, the system maintains high classification accuracy while significantly reducing data processing complexity and storage requirements.
3Reliability
If a neural network model is trained on diverse reference workloads, then tuning accuracy across different database types improves, but training time and computational resources increase
Solution Approach 1:
The patent segments the training process into multiple stages: first training on synthetic virtual database instances to learn fundamental patterns, then fine-tuning on a smaller set of real database workloads to capture system-specific characteristics. This segmented approach allows the model to achieve high tuning accuracy across diverse database types while significantly reducing total training time compared to training on all real workloads simultaneously.
Data Source
AI summary
Various examples are directed to systems and methods for tuning a database service in a cloud platform. A tuning service may access a neural network model trained to classify workload points to one of classes. The tuning service may execute the neural network model with a first source workload point as input to return a first class as output, where the first source workload describing a source database. The tuning service may select a target workload for the first source workload point from a plurality of reference workloads. Selecting the target workload may be based at least in part on the first class returned by the neural network model. The tuning service may generate a recommended knob configuration for the source database using the target workload.


