Share via


Get-ServiceFabricReplicaLoadInformation

Returns detailed metrics load information for a Service Fabric replica.

Syntax

Default (Default)

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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments: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.

Parameter properties

Type:Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-TimeoutSec

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.Guid

System.Int64

Outputs

System.Object