Get-ServiceFabricReplicaLoadInformation
傳回 Service Fabric 複本的詳細計量載入資訊。
語法
Get-ServiceFabricReplicaLoadInformation
[-PartitionId] <Guid>
[-ReplicaOrInstanceId] <Int64>
[-TimeoutSec <Int32>]
[<CommonParameters>]
Description
Get-ServiceFabricReplicaLoadInformation Cmdlet 會傳回 Service Fabric 複本的詳細計量載入資訊。 指定複本識別碼或實例識別碼。 此 Cmdlet 會傳回計量清單,其中包含名稱、載入和上次報告時間。 此 Cmdlet 可協助您針對節點上的負載複本問題進行疑難解答。
在 Service Fabric 叢集上執行任何作業之前,請使用 Connect-ServiceFabricCluster Cmdlet 來建立叢集的連線。
範例
範例 1:取得複本的負載
PS C:\> Get-ServiceFabricReplicaLoadInformation -Partition 109428cf-aacd-4459-b28c-00faa0059616 -ReplicaOrInstanceId 130530315812558427
此命令會取得指定分割區中指定複本 (130530315812558427) 的負載 (109428cf-aacd-4459-b28c-00faa0059616)。
參數
-PartitionId
指定 Service Fabric 數據分割的識別碼。
類型: | Guid |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ReplicaOrInstanceId
指定 Service Fabric 服務複本或實例識別碼。 為具狀態服務指定複本標識碼,或為無狀態服務指定實例標識碼。
類型: | Int64 |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-TimeoutSec
指定作業的逾時期間,以秒為單位。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
System.Guid
System.Int64
輸出
System.Object