When you create a virtual data center (VDC) compute policy, you can specify a subset of all available attributes. The only mandatory attribute is the VDC compute policy name.

The following table lists all attributes that you can define within a VDC Compute policy.
Table 1. VDC Compute Policy Attributes
VDC Compute Policy Attribute API Parameter Description
Name name Mandatory parameter that is used as an identifier for the VDC compute policy.
Description description Represents a short description of the VDC compute policy.
vCPU Speed cpuSpeed Defines the vCPU speed of a virtual machine (VM) in MHz.
Memory memory Defines the memory configured for a VM in MB.

When a tenant assigns the VDC compute policy to a VM, the VM receives the amount of memory defined by this attribute.

Number of vCPUs cpuCount Defines the number of vCPUs configured for a VM.

When a tenant assigns the VDC compute policy to a VM, the VM receives the number of vCPUs defined by this attribute.

Cores per Socket coresPerSocket The number of cores per socket for a VM.

The number of vCPUs that is defined in the VDC compute policy must be divisible by the number of cores per socket.

If the number of vCPUs is not divisible by the number of cores per socket, the number of cores per socket becomes invalid.

Memory Reservation Guarantee memoryReservationGuarantee Defines the reserved amount of memory that is configured for a VM.

The value of the attribute ranges between 0 and 1.

Value of 0 memory reservation guarantee defines no memory guarantee. Value of one defines 100% memory reserved.

CPU Reservation Guarantee cpuReservationGuarantee Defines how much of the CPU resources of a VM are reserved.

The allocated CPU for a VM equals the number of vCPUs times the vCPU speed in MHz.

The value of the attribute ranges between 0 and one. Value of 0 CPU reservation guarantee defines no CPU reservation. Value of 1 defines 100% of CPU reserved.

CPU Limit cpuLimit Defines the CPU limit in MHz for a VM.

Value of minus one (-1) defines no CPU limit.

If not defined in the VDC compute policy, CPU limit is equal to the allocated CPU for the VM.

Memory Limit memoryLimit Defines the memory limit in MB for a VM.

Value of minus one (-1) defines no memory limit.

If not defined in the VDC compute policy, memory limit is equal to the allocated memory for the VM.

CPU Shares cpuShares Defines the number of CPU shares for a VM.

If not defined in the VDC compute policy, normal shares are applied to the VM.

Memory Shares memoryShares Defines the number of memory shares for a VM.

If not defined in the VDC compute policy, normal shares are applied to the VM.

Extra Configurations extraConfigs Represents a mapping between a key and value pairs that are applied as extra configuration values on a VM.
Provider VDC Compute Policy pvdcComputePolicy Defines the reference of the VDC compute policy to a provider VDC compute policy.