Table of Contents
Fetching ...

Centrum: Model-based Database Auto-tuning with Minimal Distributional Assumptions

Yuanhao Lai, Pengfei Zheng, Chenpeng Ji, Yan Li, Songhan Zhang, Rutao Zhang, Zhengang Wang, Yunfei Du

TL;DR

This work addresses the limitations of GP-BO for DBMS auto-tuning by introducing Centrum, a distribution-free model-based tuner that fuses gradient-boosting ensembles with conformal inference. Centrum replaces Gaussian assumptions with a two-phase Stochastic Gradient Boosting Ensemble (SGBE) surrogate and a locally adaptive, conformal uncertainty framework, enabling distribution-free point and interval estimates used in a distribution-free EI acquisition. The approach co-optimizes point and interval accuracy via SR2 and NAIS and a two-phase training with a WIS-driven ensemble refinement, achieving strong empirical gains: ahead of 21 SOTA tuners in both accuracy and efficiency across MySQL and PostgreSQL benchmarks, with up to a 4.2× speedup in tuning time. The results demonstrate practical impact for DBMS auto-tuning in cloud environments, offering robust performance under non-continuous, non-Gaussian, and non-stationary measurement regimes.

Abstract

Gaussian-Process-based Bayesian optimization (GP-BO), is a prevailing model-based framework for DBMS auto-tuning. However, recent work shows GP-BO-based DBMS auto-tuners significantly outperformed auto-tuners based on SMAC, which features random forest surrogate models; such results motivate us to rethink and investigate the limitations of GP-BO in auto-tuner design. We find the fundamental assumptions of GP-BO are widely violated when modeling and optimizing DBMS performance, while tree-ensemble-BOs (e.g., SMAC) can avoid the assumption pitfalls and deliver improved tuning efficiency and effectiveness. Moreover, we argue that existing tree-ensemble-BOs restrict further advancement in DBMS auto-tuning. First, existing tree-ensemble-BOs can only achieve distribution-free point estimates, but still impose unrealistic distributional assumptions on uncertainty estimates, compromising surrogate modeling and distort the acquisition function. Second, recent advances in gradient boosting, which can further enhance surrogate modeling against vanilla GP and random forest counterparts, have rarely been applied in optimizing DBMS auto-tuners. To address these issues, we propose a novel model-based DBMS auto-tuner, Centrum. Centrum improves distribution-free point and interval estimation in surrogate modeling with a two-phase learning procedure of stochastic gradient boosting ensembles. Moreover, Centrum adopts a generalized SGBE-estimated locally-adaptive conformal prediction to facilitate a distribution-free uncertainty estimation and acquisition function. To our knowledge, Centrum is the first auto-tuner to realize distribution-freeness, enhancing BO's practicality in DBMS auto-tuning, and the first to seamlessly fuse gradient boosting ensembles and conformal inference in BO. Extensive physical and simulation experiments on two DBMSs and three workloads show Centrum outperforms 21 SOTA methods.

Centrum: Model-based Database Auto-tuning with Minimal Distributional Assumptions

TL;DR

This work addresses the limitations of GP-BO for DBMS auto-tuning by introducing Centrum, a distribution-free model-based tuner that fuses gradient-boosting ensembles with conformal inference. Centrum replaces Gaussian assumptions with a two-phase Stochastic Gradient Boosting Ensemble (SGBE) surrogate and a locally adaptive, conformal uncertainty framework, enabling distribution-free point and interval estimates used in a distribution-free EI acquisition. The approach co-optimizes point and interval accuracy via SR2 and NAIS and a two-phase training with a WIS-driven ensemble refinement, achieving strong empirical gains: ahead of 21 SOTA tuners in both accuracy and efficiency across MySQL and PostgreSQL benchmarks, with up to a 4.2× speedup in tuning time. The results demonstrate practical impact for DBMS auto-tuning in cloud environments, offering robust performance under non-continuous, non-Gaussian, and non-stationary measurement regimes.

Abstract

Gaussian-Process-based Bayesian optimization (GP-BO), is a prevailing model-based framework for DBMS auto-tuning. However, recent work shows GP-BO-based DBMS auto-tuners significantly outperformed auto-tuners based on SMAC, which features random forest surrogate models; such results motivate us to rethink and investigate the limitations of GP-BO in auto-tuner design. We find the fundamental assumptions of GP-BO are widely violated when modeling and optimizing DBMS performance, while tree-ensemble-BOs (e.g., SMAC) can avoid the assumption pitfalls and deliver improved tuning efficiency and effectiveness. Moreover, we argue that existing tree-ensemble-BOs restrict further advancement in DBMS auto-tuning. First, existing tree-ensemble-BOs can only achieve distribution-free point estimates, but still impose unrealistic distributional assumptions on uncertainty estimates, compromising surrogate modeling and distort the acquisition function. Second, recent advances in gradient boosting, which can further enhance surrogate modeling against vanilla GP and random forest counterparts, have rarely been applied in optimizing DBMS auto-tuners. To address these issues, we propose a novel model-based DBMS auto-tuner, Centrum. Centrum improves distribution-free point and interval estimation in surrogate modeling with a two-phase learning procedure of stochastic gradient boosting ensembles. Moreover, Centrum adopts a generalized SGBE-estimated locally-adaptive conformal prediction to facilitate a distribution-free uncertainty estimation and acquisition function. To our knowledge, Centrum is the first auto-tuner to realize distribution-freeness, enhancing BO's practicality in DBMS auto-tuning, and the first to seamlessly fuse gradient boosting ensembles and conformal inference in BO. Extensive physical and simulation experiments on two DBMSs and three workloads show Centrum outperforms 21 SOTA methods.
Paper Structure (24 sections, 4 equations, 10 figures, 4 tables, 1 algorithm)

This paper contains 24 sections, 4 equations, 10 figures, 4 tables, 1 algorithm.

Figures (10)

  • Figure 1: Exemplify the violation of Gaussian Process's assumptions against PostgreSQL-v10.5-Sysbench auto-tuning - (a) non-smooth TPS (Transaction Per Second) surface over varying configurations; - (b) empirical distribution of TPS is strikingly non-Gaussian and multi-modal; - (c) and (d) heterogeneous noise levels and length scales.
  • Figure 2: Exemplify performance of surrogate model including GP, RF and PGBM in tuning PostgreSQL-v10.5-Sysbench - (a) $R^2$ of point estimations; - (b) 95%-confidence interval estimations; - (c) resulted BOs' tuning trajectories.
  • Figure 3: Centrum framework overview
  • Figure 4: Mean and variation of final tuned performance of MySQL-v8.0 and PostgreSQL-v10.5 over Sysbench. Percentage numbers show relative improvements over SMAC. See entire tuning trajectories in \ref{['fig:eval_all_trajectory']}.
  • Figure 5: Mean and variation of final tuned performance of MySQL-v5.7 over Sysbench, Job and TPCC. Percentage numbers show relative improvements over SMAC. See entire tuning trajectories in \ref{['fig:eval_all_trajectory']}.
  • ...and 5 more figures