如何将Azure Service Fabric应用程序一致且成功地部署到本地群集? [英] How do I deploy my Azure Service Fabric application to the local cluster consistently and successfully?
问题描述
我正在本地群集中部署和重新部署Azure Service Fabric应用程序.虽然最初部署到群集的过程很顺利,但重新部署的成功率约为50%,并且出现各种间歇性错误.
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.
Visual Studio输出窗口中的错误:
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.
Service Fabric资源管理器(SFX)中的错误:
Errors in Service Fabric Explorer (SFX):
-
一个应用程序实例正常,另一个显示错误
One application instance OK, the other shows an error
fabric:/System/DnsService
中的错误:DnsService UDP Listener is unable to start
fabric:/System/EventStoreService
中的错误:System.Net.HttpListenerException
如何将我的应用程序一致且成功地部署到本地集群?
推荐答案
在Visual Studio的属性"窗口中,将应用程序调试模式"从刷新"更改为删除应用程序" .
In Visual Studio's Properties window, change the Application Debug Mode from Refresh to Remove Application.
我已经连续十次部署了我的应用程序,没有错误!
注意事项:此解决方案的一个缺点是,如果您删除本地群集然后重新部署,则Service Fabric Explorer(SFX)将在几分钟内抛出一些错误,例如Get cluster upgrade progress failed
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
这篇关于如何将Azure Service Fabric应用程序一致且成功地部署到本地群集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!