DocumentCode :
3122330
Title :
Predicting Multiple Metrics for Queries: Better Decisions Enabled by Machine Learning
Author :
Ganapathi, Archana ; Kuno, Harumi ; Dayal, Umeshwar ; Wiener, Janet L. ; Fox, Armando ; Jordan, Michael ; Patterson, David
Author_Institution :
Comput. Sci. Div., Univ. of California at Berkeley, Berkeley, CA
fYear :
2009
fDate :
March 29 2009-April 2 2009
Firstpage :
592
Lastpage :
603
Abstract :
One of the most challenging aspects of managing a very large data warehouse is identifying how queries will behave before they start executing. Yet knowing their performance characteristics - their runtimes and resource usage - can solve two important problems. First, every database vendor struggles with managing unexpectedly long-running queries. When these long-running queries can be identified before they start, they can be rejected or scheduled when they will not cause extreme resource contention for the other queries in the system. Second, deciding whether a system can complete a given workload in a given time period (or a bigger system is necessary) depends on knowing the resource requirements of the queries in that workload. We have developed a system that uses machine learning to accurately predict the performance metrics of database queries whose execution times range from milliseconds to hours. For training and testing our system, we used both real customer queries and queries generated from an extended set of TPC-DS templates. The extensions mimic queries that caused customer problems. We used these queries to compare how accurately different techniques predict metrics such as elapsed time, records used, disk I/Os, and message bytes. The most promising technique was not only the most accurate, but also predicted these metrics simultaneously and using only information available prior to query execution. We validated the accuracy of this machine learning technique on a number of HP Neoview configurations. We were able to predict individual query elapsed time within 20% of its actual time for 85% of the test queries. Most importantly, we were able to correctly identify both the short and long-running (up to two hour) queries to inform workload management and capacity planning.
Keywords :
learning (artificial intelligence); query processing; software metrics; very large databases; database queries; machine learning; performance metrics; very large data warehouse; Capacity planning; Computer science; Data engineering; Data warehouses; Databases; Machine learning; Measurement; Milling machines; System testing; USA Councils; database performance prediction; machine learning; operational business intelligence;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Data Engineering, 2009. ICDE '09. IEEE 25th International Conference on
Conference_Location :
Shanghai
ISSN :
1084-4627
Print_ISBN :
978-1-4244-3422-0
Electronic_ISBN :
1084-4627
Type :
conf
DOI :
10.1109/ICDE.2009.130
Filename :
4812438
Link To Document :
بازگشت