service-fabric-stateless - 如何重新启动 Service Fabric 应用程序

标签 service-fabric-stateless azure-service-fabric service-fabric-on-premises

我有一个运行无状态 Service Fabric 应用程序的 gMSA 服务帐户。该帐户最近被添加为新安全组的成员。我们没有看到应用程序正在运行,我认为这是因为用户声明是在应用程序启动时加载的。我已经看到要让它在 Windows 服务上工作,我们需要重新启动服务(mmc->服务,右键单击重新启动)。我想在 Service Fabric 中做类似的事情。

我看到了重新启动节点的选项,但这是一种比我想使用的更严厉的方法。这是在生产中,我想确定问题的解决方案。节点上的其他应用程序没有问题,因此我不想将它们关闭。

Service Fabric Deactivate (pause) vs Deactivate (restart)?

提前致谢,
格雷格

最佳答案

您要找的是Restart-ServiceFabricDeployedCodePackage命令。

The Restart-ServiceFabricDeployedCodePackage cmdlet ends the code package process, which restarts all of the user service replicas hosted in that process. This restart simulates code package process failures in the cluster, which tests the failover recovery paths of your service.

You can specify a code package, or you can specify a ReplicaSelector to restart the node and code package combination where the replica is hosted. This simplifies tests on the primary host node by not having to determine which Service Fabric node is the primary node before restarting that node.

关于service-fabric-stateless - 如何重新启动 Service Fabric 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52045916/

相关文章:

azure-service-fabric - 对于具有大量 guest 可执行应用程序的集群,应该在 Service Fabric Placement/Load balance 配置中设置什么阈值?

azure - 将 Windows 作业与 Service Fabric 结合使用

c# - 我们如何对服务结构(无状态服务)进行集成测试?

azure - 为开发生命周期配置 Azure ServiceFabric - 如何参数化主机名?

azure - 如何调用部署在 Service Fabric 集群中的 Web api Controller ?

Azure Service Fabric Actors 与服务的重入

azure-service-fabric - 为什么我的最小 StatefulActorService 可能会抛出 COMException?

c# - Service Fabric 包含其他文件