SharesInfo
SharesInfo
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.
AllOf
This class requires all of the following:
JSON Example
{
"_typeName": "string",
"shares": 0,
"level": "string"
}
integer As int32
As int32
shares
Required
The number of shares allocated.
Used to determine resource allocation in case of resource contention. This value is only set if level is set to custom. If level is not set to custom, this value is ignored. Therefore, only shares with custom values can be compared.
There is no unit for this value. It is a relative measure based on the settings for other resource pools.
level
Required
Simplified shares notation.
These designations have different meanings for different resources.
Possible values:
low
: For CPU: Shares = 500 * number of virtual CPUs
For Memory: Shares = 5 * virtual machine memory size in megabytes
For Disk: Shares = 500
For Network: Shares = 0.25 * networkResourcePoolHighShareValuenormal
: For CPU: Shares = 1000 * number of virtual CPUs
For Memory: Shares = 10 * virtual machine memory size in megabytes
For Disk: Shares = 1000
For Network: Shares = 0.5 * networkResourcePoolHighShareValuehigh
: For CPU: Shares = 2000 * number of virtual CPUs
For Memory: Shares = 20 * virtual machine memory size in megabytes
For Disk: Shares = 2000
For Network: Shares = networkResourcePoolHighShareValuecustom
: If you specifycustom
for the level property, when there is resource contention the Server uses the shares value to determine resource allocation.
Possible values are :
low,
normal,
high,
custom,