azure - 如何一致且成功地将 Azure Service Fabric 应用程序部署到本地群集?

标签 azure azure-service-fabric

我正在本地群集中部署和重新部署 Azure Service Fabric 应用程序。虽然集群的初始部署进展顺利,但重新部署的成功率约为 50%,但存在各种间歇性错误。

Visual Studio 输出窗口中的错误:

  • 无法确定该应用程序是否安装在集群上。

  • 某些事情花费的时间太长,应用程序尚未准备好。

Service Fabric Explorer (SFX) 中的错误:

  • 一个应用程序实例正常,另一个显示错误

    One application instance OK, the other shows an error

  • fabric:/System/DnsService 中出现错误:DnsService UDP 监听器无法启动

    Error in fabric System DnsService

  • fabric:/System/EventStoreService 中出现错误:System.Net.HttpListenerException

    Error in fabric System Event Store Service

如何一致且成功地将应用程序部署到本地集群?

最佳答案

在 Visual Studio 的“属性”窗口中,将应用程序 Debug模式从“刷新”更改为“删除应用程序”

Application Debug Mode Remove Application

我连续部署了我的应用 10 次,没有出现任何错误!

警告:此解决方案的一个缺点是,如果您删除本地集群然后重新部署,Service Fabric Explorer (SFX) 将在几分钟内抛出多个错误,例如获取集群升级进度失败

Get cluster upgrade progress failed

关于azure - 如何一致且成功地将 Azure Service Fabric 应用程序部署到本地群集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53879810/

相关文章:

azure - 删除 Service Fabric 中空闲的有状态服务

azure - Service Fabric 群集状态 "Upgrade service unreachable"

.net - Windows Azure 多重部署

azure - 使用 Azure 事件中心的 Spark Streaming

asp.net - Azure 构建中的 Node.js 错误

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

c# - 在 Service Fabric 上托管 Web API

c# - 在 Service Fabric 应用程序中禁用 TLS 握手客户端证书请求

powershell - 使用 Azure 自动化在 DSC 中正确保护凭据

linq - LINQ to CosmosDB 中数组的交集