Stage: Query Execution Time Prediction in Amazon Redshift

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wu, Ziniu, Marcus, Ryan, Liu, Zhengchun, Negi, Parimarjan, Nathan, Vikram, Pfeil, Pascal, Saxena, Gaurav, Rahman, Mohammad, Narayanaswamy, Balakrishnan, Kraska, Tim
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911788776292352
author Wu, Ziniu
Marcus, Ryan
Liu, Zhengchun
Negi, Parimarjan
Nathan, Vikram
Pfeil, Pascal
Saxena, Gaurav
Rahman, Mohammad
Narayanaswamy, Balakrishnan
Kraska, Tim
author_facet Wu, Ziniu
Marcus, Ryan
Liu, Zhengchun
Negi, Parimarjan
Nathan, Vikram
Pfeil, Pascal
Saxena, Gaurav
Rahman, Mohammad
Narayanaswamy, Balakrishnan
Kraska, Tim
contents Query performance (e.g., execution time) prediction is a critical component of modern DBMSes. As a pioneering cloud data warehouse, Amazon Redshift relies on an accurate execution time prediction for many downstream tasks, ranging from high-level optimizations, such as automatically creating materialized views, to low-level tasks on the critical path of query execution, such as admission, scheduling, and execution resource control. Unfortunately, many existing execution time prediction techniques, including those used in Redshift, suffer from cold start issues, inaccurate estimation, and are not robust against workload/data changes. In this paper, we propose a novel hierarchical execution time predictor: the Stage predictor. The Stage predictor is designed to leverage the unique characteristics and challenges faced by Redshift. The Stage predictor consists of three model states: an execution time cache, a lightweight local model optimized for a specific DB instance with uncertainty measurement, and a complex global model that is transferable across all instances in Redshift. We design a systematic approach to use these models that best leverages optimality (cache), instance-optimization (local model), and transferable knowledge about Redshift (global model). Experimentally, we show that the Stage predictor makes more accurate and robust predictions while maintaining a practical inference latency and memory overhead. Overall, the Stage predictor can improve the average query execution latency by $20\%$ on these instances compared to the prior query performance predictor in Redshift.
format Preprint
id arxiv_https___arxiv_org_abs_2403_02286
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Stage: Query Execution Time Prediction in Amazon Redshift
Wu, Ziniu
Marcus, Ryan
Liu, Zhengchun
Negi, Parimarjan
Nathan, Vikram
Pfeil, Pascal
Saxena, Gaurav
Rahman, Mohammad
Narayanaswamy, Balakrishnan
Kraska, Tim
Databases
Query performance (e.g., execution time) prediction is a critical component of modern DBMSes. As a pioneering cloud data warehouse, Amazon Redshift relies on an accurate execution time prediction for many downstream tasks, ranging from high-level optimizations, such as automatically creating materialized views, to low-level tasks on the critical path of query execution, such as admission, scheduling, and execution resource control. Unfortunately, many existing execution time prediction techniques, including those used in Redshift, suffer from cold start issues, inaccurate estimation, and are not robust against workload/data changes. In this paper, we propose a novel hierarchical execution time predictor: the Stage predictor. The Stage predictor is designed to leverage the unique characteristics and challenges faced by Redshift. The Stage predictor consists of three model states: an execution time cache, a lightweight local model optimized for a specific DB instance with uncertainty measurement, and a complex global model that is transferable across all instances in Redshift. We design a systematic approach to use these models that best leverages optimality (cache), instance-optimization (local model), and transferable knowledge about Redshift (global model). Experimentally, we show that the Stage predictor makes more accurate and robust predictions while maintaining a practical inference latency and memory overhead. Overall, the Stage predictor can improve the average query execution latency by $20\%$ on these instances compared to the prior query performance predictor in Redshift.
title Stage: Query Execution Time Prediction in Amazon Redshift
topic Databases
url https://arxiv.org/abs/2403.02286