主权项 |
1. An information processing apparatus that controls a resource allocation amount a plurality of virtual machines run by a computer, the information processing apparatus comprising:
a memory that stores an allowable index upper limit that is applicable to all of the virtual machines combined and stores, for each of the plurality of virtual machines individually, index information indicating an association between the resource allocation amount and an index for the respective virtual machine; and a processor that, when a virtual machine lacking resources is detected from among the plurality of virtual machines based on a resource usage status, calculates an index value for all of the virtual machines combined when an amount of resources allocated to the detected virtual machine is increased and compares the calculated index value with the allowable index upper limit, and
when the calculated index value is less than or equal to the allowable index upper limit, increases the resource allocation amount allocated to the detected virtual machine such that the index value for all of the virtual machines combined does not exceed the allowable index upper limit, andwhen the calculated index value is greater than the allowable index upper limit for the detected virtual machine, determines whether the index value for all of the virtual machines combined is to be less than or equal to the allowable index upper limit when an amount of resources allocated to another one of the plurality of virtual machines having different index information than the detected virtual machine is reduced and an amount of resources allocated to the detected virtual machine is increased, and when it is determined that the index value for all of the virtual machines combined is to be less than or equal to the allowable index upper limit when an amount of resources allocated to the another one of the plurality of virtual machines is reduced and an amount of resources allocated to the detected virtual machine is increased, increases the resource allocation amount allocated to the detected virtual machine and reduces the resource allocation amount allocated to the another virtual machine such that the index value for all of the virtual machines combined does not exceed the allowable index upper limit. |