TL;DR
This paper presents a machine learning-based SQL query cost predictor at Twitter that efficiently estimates resource usage without executing queries, improving scheduling and scaling in large-scale data systems.
Contribution
It introduces a hardware-agnostic, SQL-based cost prediction service using ML models trained on historical logs, achieving high accuracy in resource estimation.
Findings
Achieves 97.9% accuracy in CPU prediction
Achieves 97% accuracy in memory prediction
Enables faster query scheduling and scaling
Abstract
With the advent of the Big Data era, it is usually computationally expensive to calculate the resource usages of a SQL query with traditional DBMS approaches. Can we estimate the cost of each query more efficiently without any computation in a SQL engine kernel? Can machine learning techniques help to estimate SQL query resource utilization? The answers are yes. We propose a SQL query cost predictor service, which employs machine learning techniques to train models from historical query request logs and rapidly forecasts the CPU and memory resource usages of online queries without any computation in a SQL engine. At Twitter, infrastructure engineers are maintaining a large-scale SQL federation system across on-premises and cloud data centers for serving ad-hoc queries. The proposed service can help to improve query scheduling by relieving the issue of imbalanced online analytical…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
Methodstravel james
