ALLOCATING RESOURCES TO VIRTUAL MACHINES VIA A WEIGHTED COST RATIO
First Claim
1. A method comprising:
- receiving a plurality of estimates of costs of executing a plurality of respective queries from a plurality of respective virtual machines using a plurality of respective estimated resources allocated to the plurality of respective virtual machines;
selecting a selected virtual machine of the plurality of respective virtual machines with a lowest weighted cost ratio as compared to all other of the plurality of respective virtual machines;
finding a source virtual machine from among the plurality of respective virtual machines with a lowest current resource usage percentage;
calculating an amount of a resource to deallocate from the source virtual machine, wherein the calculating further comprises estimating the amount of the resource to deallocate that does not raise the lowest current resource usage percentage of the source virtual machine over a maximum resource threshold;
deallocating the amount of the resource from the source virtual machine; and
allocating the amount of the resource to the selected virtual machine.
1 Assignment
0 Petitions
Accused Products
Abstract
In an embodiment, a plurality of estimates of costs of executing a plurality of respective queries is received from a plurality of respective virtual machines using a plurality of respective estimated resources allocated to the plurality of respective virtual machines. A selected virtual machine of the plurality of respective virtual machines is selected with a lowest weighted cost ratio, as compared to all other of the plurality of respective virtual machines. A source virtual machine is found with a lowest current resource usage. An amount of a resource to deallocate from the source virtual machine is calculated, which further comprises estimating the amount of the resource to deallocate that does not raise the lowest current resource usage over a maximum resource threshold. The amount of the resource from the source virtual machine is deallocated. The amount of the resource is allocated to the selected virtual machine.
-
Citations
20 Claims
-
1. A method comprising:
-
receiving a plurality of estimates of costs of executing a plurality of respective queries from a plurality of respective virtual machines using a plurality of respective estimated resources allocated to the plurality of respective virtual machines; selecting a selected virtual machine of the plurality of respective virtual machines with a lowest weighted cost ratio as compared to all other of the plurality of respective virtual machines; finding a source virtual machine from among the plurality of respective virtual machines with a lowest current resource usage percentage; calculating an amount of a resource to deallocate from the source virtual machine, wherein the calculating further comprises estimating the amount of the resource to deallocate that does not raise the lowest current resource usage percentage of the source virtual machine over a maximum resource threshold; deallocating the amount of the resource from the source virtual machine; and allocating the amount of the resource to the selected virtual machine. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-readable medium encoded with instructions, wherein the instructions when executed comprise:
-
receiving a plurality of estimates of costs of executing a plurality of respective queries from a plurality of respective virtual machines using a plurality of respective estimated resources allocated to the plurality of respective virtual machines; selecting a selected virtual machine of the plurality of respective virtual machines with a lowest weighted cost ratio as compared to all other of the plurality of respective virtual machines; finding a source virtual machine from among the plurality of respective virtual machines with a lowest current resource usage percentage; calculating an amount of a resource to deallocate from the source virtual machine, wherein the calculating further comprises estimating the amount of the resource to deallocate that does not raise the lowest current resource usage percentage of the source virtual machine over a maximum resource threshold; deallocating the amount of the resource from the source virtual machine; allocating the amount of the resource to the selected virtual machine; and executing one of the plurality of respective queries at the selected virtual machine using the amount of the resource allocated by the allocating. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A computer system comprising:
-
a processor; and memory communicatively connected to the processor, wherein the memory is encoded with instructions, and wherein the instructions when executed by the processor comprise receiving a plurality of estimates of costs of executing a plurality of respective queries from a plurality of respective virtual machines using a plurality of respective estimated resources allocated to the plurality of respective virtual machines, selecting a selected virtual machine of the plurality of respective virtual machines with a lowest weighted cost ratio as compared to all other of the plurality of respective virtual machines, finding a source virtual machine from among the plurality of respective virtual machines with a lowest current resource usage percentage, calculating an amount of a resource to deallocate from the source virtual machine, wherein the calculating further comprises estimating the amount of the resource to deallocate that does not raise the lowest current resource usage percentage of the source virtual machine over a maximum resource threshold, deallocating the amount of the resource from the source virtual machine, allocating the amount of the resource to the selected virtual machine, and executing one of the plurality of respective queries at the selected virtual machine using the amount of the resource allocated by the allocating. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification