Get-ServiceFabricPartitionLoadInformation

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.

Parameters

-PartitionId

Specifies the ID of a Service Fabric partition.

Type:Guid
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-TimeoutSec

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

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

Inputs

System.Guid

Outputs

System.Object