How do I deploy my Azure Service Fabric application to the local cluster consistently and successfully?

纵然是瞬间 提交于 2019-12-11 07:57:32

问题


I am deploying and redeploying Azure Service Fabric applications in a local cluster. While initial deployment to the cluster went smoothly, redeployment results in about a 50% success rate with various intermittent errors.

Errors in the output window of Visual Studio:

  • Unable to determine whether the application is installed on the cluster or not.

  • Something is taking too long, the application is still not ready.

Errors in Service Fabric Explorer (SFX):

  • One application instance OK, the other shows an error

  • Error in fabric:/System/DnsService: DnsService UDP Listener is unable to start

  • Error in fabric:/System/EventStoreService: System.Net.HttpListenerException

How do I deploy my application to the local cluster consistently and successfully?


回答1:


In Visual Studio's Properties window, change the Application Debug Mode from Refresh to Remove Application.

I deployed my app 10 times in a row with no errors!

Caveat: The one disadvantage to this solution is that if you remove your local cluster and then redeploy, Service Fabric Explorer (SFX) will throw several errors for a few minutes such as Get cluster upgrade progress failed



来源:https://stackoverflow.com/questions/53879810/how-do-i-deploy-my-azure-service-fabric-application-to-the-local-cluster-consist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!