发明名称 Scheduling queries using a stretch metric
摘要 A query scheduler orders queries in a queue. Each query is executed based on its position in the queue. When a new query is received, the new query is inserted in the queue. A position in the queue for inserting the new query is determined based on a stretch metric for each query in the queue.
申请公布号 US9355129(B2) 申请公布日期 2016.05.31
申请号 US200812250881 申请日期 2008.10.14
申请人 Hewlett Packard Enterprise Development LP 发明人 Gupta Chetan Kumar;Wang Song;Mehta Abhay
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Mannava & Kang 代理人 Mannava & Kang
主权项 1. A method for scheduling queries, the method comprising: maintaining a queue of queries, the queue identifying an order for executing the queries; receiving a new query; determining, for the new query and for each of the queries in the queue, a stretch metric indicative of a Quality of Service (QoS) measure, wherein the stretch metric for each of the queries is based on an end time of the query, an arrival time of the query, and the processing time of the query; minimizing an Ip norm of the stretch metric for at least some of the queries in the queue, wherein p is a finite, real number greater than 1; determining, by a processor, a weight for the new query and a weight for each of the queries in the queue, wherein the weight for a query is based on the stretch metric of the query, and wherein the weight of a largest query in the queue is determined to be a largest weight only if such determination does not cause the stretch metric of the smallest query in the queue to exceed a predetermined threshold wait time; determining, by the processor, a position in the queue to insert the new query by comparing the weight of the new query to the weights of the queries in the queue; inserting the new query in the determined position in the queue; and selecting a query from the queue to execute based on the order for executing the queries identified from the queue, wherein the query with the largest weight is executed first.
地址 Houston TX US