Get-​Service​Fabric​Partition​Load​Information

Gets the load reports for a Service Fabric partition.

Syntax

Get-ServiceFabricPartitionLoadInformation
   [-PartitionId] <Guid>
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricPartitionLoadInformation cmdlet gets the load reports for a Service Fabric partition.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Get the reported load for a service partition

PS C:\> $ToDoPartition01 = Get-ServiceFabricPartition -ServiceName fabric:/myapp/persistenttodolist/svc1
PS C:\> Get-ServiceFabricPartitionLoadInformation -PartitionId $ToDoPartition01.PartitionId

The first command uses the Get-ServiceFabricPartition cmdlet to get the service partition object for the named service, and then stores the object in the $ToDoPartition01 variable.

The second command specifies the PartitionId property of the object stored in $ToDoPartition01 to get the reported load of the partition.

Required Parameters

-PartitionId

Specifies the ID of a Service Fabric partition.

Type:Guid
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.Guid

This cmdlet accepts the ID of a Service Fabric partition.

Outputs

System.Object

This cmdlet returns a System.Fabric.Query.PartitionLoadInformation object for a Service Fabric partition.