Vcenter_Settings_V1_Config_Components_Inventory_Resourcepool_Shares

Vcenter_Settings_V1_Config_Components_Inventory_Resourcepool_Shares
Vcenter_Settings_V1_Config_Components_Inventory_Resourcepool_Shares

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.

JSON Example
{
    "level": "string",
    "shares": 0
}
level
Required

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.

integer As int64
shares
Required

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.