“分区低于目标副本或实例计数";将服务结构应用程序部署到公共服务结构群集后出现错误 [英] "Partition is below target replica or instance count" error after deploying service fabric application to public service fabric cluster

查看:84
本文介绍了“分区低于目标副本或实例计数";将服务结构应用程序部署到公共服务结构群集后出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个服务结构无状态可靠服务,其中使用OWIN托管了Web API.当我将应用程序部署到本地群集时,它运行良好,可以调用API.

I have created a service fabric stateless reliable service, in which i used OWIN to host a web API. When I deployed the application to the Local cluster, it worked fine and i could call the API.

当我将应用程序部署到公共群集时,部署成功完成,但是当我使用Service Fabric资源管理器检查群集时,

When i deployed the application to the public cluster, The deployment completed successfully but when i inspected the cluster using Service fabric explorer,

副本在一段时间内似乎处于正在构建"状态, 然后它移到警告"状态,最后,结构浏览器中的整个树变成红色,并且该分区下没有其他副本. 并将健康状况显示为错误". 显示错误分区低于目标副本或实例数".

the the replicas seemed to be in "In Build" status for sometime, then it moved to "Warning" State and finally the entire tree in the fabric explorer went red and there are no more replicas present under the partition. And showed the health status as Error. Showing the error "Partition is below target replica or instance count".

我还使用允许的端口来创建OWIN Web服务器.

Also I used the allowed port for creating the OWIN web server.

当我在本地集群中部署应用程序时,不会发生这种情况. 公共集群的Service Fabric资源管理器屏幕截图本地集群的Service Fabric资源管理器屏幕截图

This doesn't happen when i deploy the application in local cluster. Service Fabric Explorer Screenshot for public cluster , Service Fabric Explorer Screenshot for Local Cluster

推荐答案

在大多数情况下,此错误实际上只是表示我们无法启动您的服务".如果服务中未处理的异常阻止了它的启动,则可以在Service Fabric资源管理器中向下钻取到服务实例或副本,以在多次尝试后启动失败时查看堆栈跟踪.

Most of the time this error really just means "we couldn't get your service started." If an unhandled exception in your service is preventing it from starting, you can drill down to your service instance or replica in the Service Fabric Explorer to see a stack trace when it fails to start after multiple attempts.

顺便说一句,我建议使用更新的基于Web的Service Fabric资源管理器.只需将网络浏览器指向群集上的端口19080:例如, http://mycluster.eastus.cloudapp.azure.com:19080/Explorer/index.htm .

BTW, I would recommend using the newer web-based Service Fabric Explorer. Just point a web browser to port 19080 on your cluster: e.g., http://mycluster.eastus.cloudapp.azure.com:19080/Explorer/index.htm.

这篇关于“分区低于目标副本或实例计数";将服务结构应用程序部署到公共服务结构群集后出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆