Skip to main content
QUICK REVIEW

[Paper Review] Deep learning based Auto Tuning for Database Management System

Karthick Prasad Gunasekaran, Kajal Tiwari|arXiv (Cornell University)|Jan 1, 2020
Data Quality and ManagementDecision Sciences4 citations
TL;DR

This paper proposes a deep learning-based auto-tuning framework for database management systems that leverages transfer learning by reusing historical tuning data. It employs Gaussian Mixture Model (GMM) clustering for workload mapping and ensemble models like Random Forest and neural networks alongside Gaussian Process Regression (GPR) to improve latency prediction, achieving a 67.85% MAPE—slightly better than the baseline GPR model (69.61% MAPE) and outperforming other models in accuracy on a small dataset.

ABSTRACT

The management of database system configurations is a challenging task, as there are hundreds of configuration knobs that control every aspect of the system. This is complicated by the fact that these knobs are not standardized, independent, or universal, making it difficult to determine optimal settings. An automated approach to address this problem using supervised and unsupervised machine learning methods to select impactful knobs, map unseen workloads, and recommend knob settings was implemented in a new tool called OtterTune and is being evaluated on three DBMSs, with results demonstrating that it recommends configurations as good as or better than those generated by existing tools or a human expert.In this work, we extend an automated technique based on Ottertune [1] to reuse training data gathered from previous sessions to tune new DBMS deployments with the help of supervised and unsupervised machine learning methods to improve latency prediction. Our approach involves the expansion of the methods proposed in the original paper. We use GMM clustering to prune metrics and combine ensemble models, such as RandomForest, with non-linear models, like neural networks, for prediction modeling.

Motivation & Objective

  • To address the challenge of tuning hundreds of non-standardized, interdependent DBMS configuration knobs.
  • To reduce the search space by pruning redundant performance metrics using factor analysis and clustering.
  • To improve latency prediction by reusing past tuning experience through workload mapping to similar historical workloads.
  • To evaluate the effectiveness of GMM clustering as an alternative to K-means for workload clustering and metric grouping.
  • To compare the performance of GPR, Random Forest, and neural networks in low-data regimes for latency prediction.

Proposed method

  • Pruning redundant metrics using factor analysis to reduce dimensionality and retain high-variability metrics.
  • Applying K-means and Gaussian Mixture Model (GMM) clustering to group similar metrics and identify representative workload clusters.
  • Using Euclidean distance-based nearest-neighbor workload mapping to transfer tuning experience from historical workloads to new deployments.
  • Employing Gaussian Process Regression (GPR) as the primary latency prediction model, with hyperparameter tuning via alpha (noise level) optimization.
  • Experimenting with ensemble models (Random Forest) and deep neural networks for latency prediction, using MAPE as the loss function and ADAM optimizer.
  • Scaling input features using zero-mean, unit-variance normalization to improve model convergence and performance.

Experimental results

Research questions

  • RQ1Can GMM clustering improve workload mapping accuracy compared to K-means clustering in DBMS auto-tuning?
  • RQ2Does reusing historical tuning data through workload mapping reduce prediction error in latency modeling?
  • RQ3How do different regression models—GPR, Random Forest, and neural networks—perform under limited training data for DBMS configuration tuning?
  • RQ4To what extent does data preprocessing, including feature scaling and metric pruning, enhance model performance and training efficiency?
  • RQ5Can ensemble and non-linear models outperform GPR in low-data scenarios for latency prediction in DBMS auto-tuning?

Key findings

  • Replacing K-means clustering with GMM clustering reduced the MAPE from 69.61% to 67.85%, indicating improved prediction accuracy.
  • The baseline GPR model achieved a MAPE of 69.61% using factor analysis and K-means for metric pruning and workload mapping.
  • Neural networks produced the highest MSE (13,426) and a MAPE of 77.26%, indicating overfitting due to limited training data.
  • Random Forest achieved a MAPE of 78.98% and a higher MSE (3,817), suggesting poor generalization on small datasets.
  • GPR with low alpha values (e.g., 1e-1) achieved the best performance, with MAPE dropping to 69.61% in the baseline model.
  • Scaling all input features except the latency target improved model performance, while unscaled data led to poor predictions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.