Get-ServiceFabricReplicaLoadInformation

Returns detailed metrics load information for a Service Fabric replica.

Syntax

Get-ServiceFabricReplicaLoadInformation
   [-PartitionId] <Guid>
   [-ReplicaOrInstanceId] <Int64>
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricReplicaLoadInformation cmdlet returns detailed metrics load information for a Service Fabric replica. Specify a replica ID or instance ID. This cmdlet returns a list of metrics that includes the name, load, and last reported time. This cmdlet can help you troubleshoot load replica issues on a node.

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 load of a replica

PS C:\> Get-ServiceFabricReplicaLoadInformation -Partition 109428cf-aacd-4459-b28c-00faa0059616 -ReplicaOrInstanceId 130530315812558427

This command gets the load of the specified replica (130530315812558427) in the specified partition (109428cf-aacd-4459-b28c-00faa0059616).

Parameters

-PartitionId

Specifies the ID of a Service Fabric partition.

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

-ReplicaOrInstanceId

Specifies a Service Fabric service replica or instance ID. Specify a replica ID for a stateful service or an instance ID for a stateless service.

Type:Int64
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

System.Int64

Outputs

System.Object