Abstract
Tuning high-dimensional systems like RocksDB is notoriously slow and expensive. This paper introduces a specialized Bayesian Optimization (BO) framework that leverages Multi-Task Learning and structural decomposition to achieve a 1.3x throughput improvement in just 10 iterations—significantly outperforming state-of-the-art methods that require 60 or more steps.
Introduction
RocksDB is a high-performance key-value store critical for large-scale data infrastructure. However, its performance is highly sensitive to over 30 tunable parameters, such as buffer sizes and compaction triggers. Optimizing these settings for specific hardware and workloads is a challenging "black-box" problem characterized by the curse of dimensionality and expensive evaluation cycles. Standard optimization algorithms often struggle to converge within a reasonable timeframe, especially given the resource-intensive nature of system benchmarks.
Methodology
The proposed framework enhances the standard Bayesian Optimization loop by integrating two key strategies: Multi-Task Learning (MTL) and Structural Decomposability.
Multi-Task Learning (MTL)
Instead of optimizing solely for the primary objective (IOPS), the model tracks auxiliary metrics such as Write Amplification, Read Latency, and Compaction Time. By learning the correlations between these sub-goals, the surrogate model—implemented using an Intrinsic Coregionalization Model (ICM) kernel within GPyTorch and BoTorch—extracts more information from each evaluation.
Structural Decomposability
To combat high dimensionality, the authors use expert knowledge to group parameters with the specific sub-metrics they influence. This decomposition reduces the effective search space for the optimizer. For example, parameters related to write buffers are mapped to "Write Amplification," allowing the model to focus on relevant interactions rather than navigating a single 30-dimensional block.
Experimental Setup
The framework was evaluated using a realistic Facebook Social Graph workload simulated via RocksDB’s db_bench tool. The workload features a mix of GET (78%), PUT (13%), and DELETE (6%) operations with dynamic traffic patterns that change every 5,000 operations. Baselines included Random Search, Tree-structured Parzen Estimator (TPE), and standard Gaussian Process implementations.
Results and Discussion
The "Clustered Multi-Task" approach demonstrated superior convergence speed, reaching optimal configurations in 10 steps compared to the 60 steps required by competing methods. The approach achieved a 1.3x to 1.45x throughput improvement over default configurations.
Key insights from the results include:
- Internal Metrics as Signals: Internal "stalls" and "amplification" metrics provide valuable signals that help the optimizer understand system behavior beyond simple throughput.
- Expert Knowledge as a Shortcut: Injecting manual clustering based on domain expertise drastically reduces the search space and accelerates convergence.
- Stability: The clustered approach provided a more consistent and reliable path to high performance compared to non-clustered multi-task variants, which exhibited higher instability.
Conclusion
This research highlights the value of internal system metrics and expert knowledge in optimizing complex software. Future work will focus on automating the parameter clustering process through unsupervised learning and extending the model to handle categorical parameters, which currently present challenges for smooth Gaussian Process models.
Summary updated