主权项 |
1. A computer program product for managing resources of a plurality of resource types in a virtual computing environment having a plurality of applications running therein, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
receive, by the virtual computing environment, a request to reallocate a first quantity of a first resource type of the plurality of resource types; select, by the virtual computing environment, a trade-off group, the trade-off group including a set of applications of the plurality of applications, the trade-off group having at least the first quantity of the first resource type allocated to it, and the trade-off group being capable of using one or more alternate resource types as a substitute for the first quantity of the first resource type, wherein the trade-off group is selected from a plurality of trade-off groups, and wherein as part of the selecting the trade-off group, the program instructions are executable by the computer to further cause the computer to:
calculate, by the virtual computing environment, a first resource score for a potential trade-off group of the plurality of trade-off groups, wherein factors affecting the first resource score include a percentage of each resource type of the plurality of resource types that would be free within the virtual computing environment if that potential trade-off group were selected; andcalculate, by the virtual computing environment, a second resource score for the trade-off group, wherein factors affecting the second resource score include a second percent of each resource type of the plurality of resource types that would be free within the virtual computing environment if the trade-off group were selected; and reallocate, by the virtual computing environment, the first quantity of the first resource type from the trade-off group. |