Cost-Intelligent Data Analytics in the Cloud

Huanchen Zhang, Yihao Liu, Jiaqi Yan · DOI

In the era of on-premise data centers, database optimization was a race for pure performance. Since hardware costs were sunk, the primary goal was to extract every ounce of speed from fixed resources. However, the shift to the public cloud and its "pay-as-you-go" model has fundamentally changed the landscape. Performance is no longer the sole metric of success; monetary cost has become a first-class citizen.

This paper introduces a "cost-intelligent" architecture for cloud data warehouses. By treating cost as a primary optimization target alongside performance, the proposed system enables automatic resource scaling and database tuning that respects both Service Level Agreements (SLAs) and budgetary constraints.

The Problem: Over-provisioning and Blind Tuning

Current cloud data warehouses often leave users with two frustrating challenges:

  1. The "T-shirt" Size Trap: Platforms like Snowflake require users to select fixed warehouse sizes (e.g., Small, X-Large). To avoid missing critical SLAs, users frequently over-provision, paying for compute power they don't fully utilize.
  2. Opaque Tuning Costs: Traditional auto-tuning tools suggest performance enhancements like materialized views or new indexes without accounting for the financial cost of their creation and maintenance. A tuning action might save seconds but cost thousands of dollars.
Figure 1 & 2: The contrast between rigid UI-based sizing and the proposed cost-intelligent Pareto frontier.

A Cost-Intelligent Architecture

The authors propose a system designed to maintain "Pareto-optimality"—the ideal balance where performance cannot be improved without increasing cost, and vice versa. The architecture moves beyond simple performance tuning to holistic cost management.

Key Components

  • Bi-Objective Optimizer: This engine searches for execution plans that either minimize cost for a target latency or maximize performance within a fixed budget.
  • Explainable Cost Estimator: Using a hybrid of mathematical models and explainable machine learning, the system predicts the financial impact of queries and tuning actions.
  • DOP Monitor: Instead of static cluster sizing, the system monitors execution at the pipeline level, dynamically adjusting the Degree of Parallelism (DOP) to address bottlenecks in real-time.
  • What-If Service: This service evaluates potential tuning actions by calculating their "Net Profit": the dollar value of time saved minus the cost of implementation.
Figure 5: The proposed cost-intelligent system architecture, featuring the Bi-Objective Optimizer and DOP Monitor.

Key Insights: The Scalability Trap

A central theme of the paper is the "Scalability Trap." While cloud resources are theoretically infinitely scalable, database operations often suffer from diminishing returns due to network overhead. Cost intelligence involves finding the "sweet spot" where the cost of additional parallelism is justified by the performance gain. By using the dollar as a universal language, the system bridges the gap between technical database administration and business-level decision-making.

Future Directions

As a vision paper, this work serves as a roadmap for future research. Challenges remain, particularly in improving cardinality estimation for more accurate cost predictions and managing the overhead of the statistics services required for real-time monitoring. The authors are currently developing this system at Tsinghua University to further explore these "cost-intelligent" frontiers.

Summary updated

BibTeX
@inproceedings{zhang2024cost,
  author = {Huanchen Zhang and Yihao Liu and Jiaqi Yan},
  title = {{Cost-Intelligent Data Analytics in the Cloud}},
  booktitle = {CIDR},
  year = {2024},
}
Figure