VcenterSettingsV1ConfigComponentsInventoryResourcepoolShares
The Shares structure provides specification of shares. Shares are used to determine relative allocation between resource consumers. In general, a consumer with more shares gets proportionally more of the resource, subject to certain other constraints.
Properties
The Shares.Level enumerated type defines the possible values for the allocation level.
LOW : For CPU: Shares = 500 * number of virtual CPUs.
For Memory: Shares = 5 * virtual machine memory size in MB.
NORMAL : For CPU: Shares = 1000 * number of virtual CPUs.
For Memory: Shares = 10 * virtual machine memory size in MB.
HIGH : For CPU: Shares = 2000 * nmumber of virtual CPUs.
For Memory: Shares = 20 * virtual machine memory size in MB.
CUSTOM : If set, in case there is resource contention the server uses the shares value to determine the resource allocation.
Possible values are: LOW , NORMAL , HIGH , CUSTOM
When Shares.level is set to CUSTOM, it is the number of shares allocated. Otherwise, this value is ignored. There is no unit for this value. It is a relative measure based on the settings for other resource pools.
JSON Example
{
"level": "LOW",
"shares": 0
}