Abstract
Cloud configuration optimization usually forces a painful tradeoff between slow, exact solvers (like ILP) and fast, but approximate and unexplainable Machine Learning (ML) models. This paper introduces cloud oracles, a technique inspired by database query optimization that precomputes exact optimal configurations into a geometric data structure. At runtime, finding the perfect cloud setup becomes a lightning-fast geometric query, offering the sub-millisecond speed of ML with the guaranteed accuracy and explainability of exact mathematical solvers.
Introduction
Modern cloud environments are massive, elastic, and highly configurable. To keep costs low and performance high, developers must constantly tune configurations—such as where to place data across hundreds of regions, or which storage tiers to use—as workload patterns change. Currently, the industry relies on two extreme approaches: Integer Linear Programming (ILP), which provides provably correct answers but is computationally prohibitive at scale, and Machine Learning (ML), which offers fast inference but sacrifices accuracy and explainability.
The authors seek a "best of both worlds" third path: a method that is as fast as ML inference, but as perfectly accurate and explainable as an ILP solver.
Methods: The Cloud Oracle Approach
The authors borrow a concept from database systems called Parametric Query Optimization (PQO) and apply it to cloud infrastructure. The core idea is to split the optimization into a heavy offline phase and a lightweight online phase:
- Offline Precomputation: The system enumerates valid cloud configurations and calculates their cost functions, which are typically linear in the cloud (e.g., pay-per-use pricing). It then prunes strictly sub-optimal choices. The remaining optimal decisions form a convex polytope—a multi-dimensional geometric shape where the "floor" represents the lowest possible cost for any given set of workload parameters.
- Online Inference: At runtime, when actual workload parameters (like read/write frequencies) are known, the system performs a geometric ray-shooting query on the polytope. Vertical ray-shooting instantly finds the absolute minimum cost, while directed ray-shooting allows for "drift analysis," calculating exactly how much a workload can change before the current configuration becomes suboptimal.
Because the oracle is represented as a dense matrix of hyperplanes, querying it relies on simple matrix-vector multiplication, which is highly optimized for modern GPUs.
Evaluation and Results
The approach was evaluated using a simulated case study of fault-tolerant object placement across a network topology modeled after Cloudflare's global infrastructure (up to 300 data centers).
Performance and Scalability
The cloud oracle demonstrates blistering speed, outperforming standard ILP solvers (like Gurobi) by over four orders of magnitude. As shown in the scaling analysis, for a 100-data-center problem, ILP takes over 1000 seconds, while the cloud oracle completes the same task in sub-10 milliseconds on a GPU.
Accuracy
Unlike ML models that approximate solutions, the cloud oracle achieves 100% accuracy relative to the ILP solver. It does not approximate; it mathematically guarantees the exact optimal solution for the given parameters.
Tractable Overhead
While the offline phase is computationally intensive, it remains tractable. Precomputing the oracle for a massive 300-data-center scale takes approximately 20 minutes on a single CPU thread. Once built, the oracle can run thousands of Monte Carlo simulation samples in milliseconds, enabling interactive "what-if" scenario planning.
Limitations and Future Work
The current implementation of cloud oracles relies on a relatively fixed, linear cost model and an enumerable decision space. Future work aims to address non-linear costs, larger search spaces with complex capacity constraints, and handling uncertainty in cost models (e.g., fluctuating network latency).
Conclusion
By viewing cloud optimization through the lens of database query optimization, this work bypasses the traditional trade-offs of speed versus accuracy. The core insight is that geometry beats search: transforming an optimization problem into a computational geometry problem allows for massive parallelization on GPUs. This turns complex, iterative searches into simple matrix multiplications, enabling real-time, proactive infrastructure management that is both provably optimal and highly performant.
Summary updated