Freigeben über


GetPlacementScore method of the MSCluster_ClusterService class

Gets the placement score for a virtual machine.

Syntax

uint32 GetPlacementScore(
  [in]  uint32 VmMemory,
  [in]  uint32 VmVirtualCoreCount,
  [in]  uint32 VmCpuReservation,
  [in]  uint32 VmFlags,
  [in]  real64 ReservedNodes,
  [out] uint32 MaxNumOfVMsInCluster,
  [out] uint32 MaxNumOfVMsInNode,
  [out] uint32 PlacementScoreFlags
);

Parameters

VmMemory [in]

The memory size of a virtual machine.

VmVirtualCoreCount [in]

The number of virtual cores for the virtual machine.

VmCpuReservation [in]

The CPU reservation of a virtual machine.

VmFlags [in]

Reserved for future use.

ReservedNodes [in]

The amount of reserved nodes.

MaxNumOfVMsInCluster [out]

The max number of virtual machines of this spec that can be created in the cluster.

MaxNumOfVMsInNode [out]

On success, returns the max number of virtual machines of this spec that can be created the node that has the highest capacity.

PlacementScoreFlags [out]

Flags associated with the placement score.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\MSCluster
MOF
ClusWmiExt.mof
DLL
ClusWMI.dll

See also

MSCluster_ClusterService