我想停止其中一个服务结构群集资源(包含5个节点)的节点,因此我使用了Stop-ServiceFabricNode
。我成功完成了3个节点,第4个节点导致我的PowerShell ISE挂起,我不得不在中途取消它。之后我无法连接到我的服务结构实例。
当我尝试使用Connect-ServiceFabricCluster
时,我收到错误消息:
WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service...
WARNING: Failed to contact Failover Manager Service, Attempting to contact FMM...
False
WARNING: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed becau
se connected host has failed to respond <IP>
Connect-serviceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue.
At line:1 char:1
+ Connect-serviceFabricCluster -ConnectionEndpoint "<resourcename>.w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricException
+ FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster
请告诉我如何启用连接。
答案 0 :(得分:0)
您通过PowerShell与之交谈的REST API将在您关闭的节点上运行。在某些时候他们不再可用:
Stop-ServiceFabricNode cmdlet将停止您指定的节点 通过停止Fabric.exe进程停止NodeName参数 托管在其上的所有系统服务和用户服务副本 Service Fabric节点。
以下选项之一可能有效。希望选项1:
Start-SeviceFabricNode
script。Start-ServiceFabricNode cmdlet启动由指定的节点 已使用停止的NodeName参数 Stop-ServiceFabricNode cmdlet