Back to results
US 9,355,129 B2Granted
Scheduling queries using a stretch metric
AssigneeHewlett Packard Enterprise Development LP
InventorsChetan Kumar Gupta, Song Wang, Abhay Mehta
Life of this patent
Estimating the term…
Abstract
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.
Claims19
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.
6 more elements
At least one non-transitory computer readable medium storing instructions that when executed by a computer system cause the computer system to:
- maintain a queue of queries, the queue identifying an order for executing the queries;
- receive a new query;
- determine, 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;
- minimize 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;
- determine 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;
- determine 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;
- insert the new query in the determined position in the queue;
- and
- select 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.
6 more elements
A system comprising:
- a processor;
- and
- a non-transitory computer readable medium storing instructions that when executed by the processor cause the processor to implement an opportunistic query scheduling scheme to:
- maintain a queue of queries, the queue identifying an order for executing the queries;
- receive a new query;
- determine, 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;
- minimize 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;
- determine 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;
- determine 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;
- insert the new query in the determined position in the queue;
- and
- select 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.
9 more elements
Dependencies are inferred from the claim text.