Service Fabric无状态群集具有5个节点,但应用程序仅具有1个实例 [英] Service Fabric Stateless Cluster has 5 nodes but app only has 1 instance

查看:57
本文介绍了Service Fabric无状态群集具有5个节点,但应用程序仅具有1个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Service Fabric中托管的无状态服务的系统

I have a system that uses stateless services hosted in Service Fabric

它在具有5个节点的本地开发集群中运行

This is running in a local dev cluster with 5 nodes

我的某些服务的InstanceCount设置为-1

Some of my services have InstanceCount set to -1

我希望看到主机可执行文件的多个实例显示在任务管理器中,但我只看到1

I was expecting to see multiple instances of the host executables to show in task manager but I only see 1

这让我觉得只有1个实例

This is making me think there is only 1 instance

我做错什么了吗?

保罗

推荐答案

没有足够的信息来确定此处的实际问题,但是根据您的描述,我可能会怀疑两个可能的原因:

There is not enough information to determine what the actual problem here is, but based on your description I might suspect of two possible reasons:

  1. 激活您的服务时出错:如果SF在资源管理器中显示您的服务有任何错误或警告,则可能是因为它无法启动多个实例该服务在同一节点上,如果您在同一端口上列出两个api \ sites,这是很常见的,在所有节点都安装在同一台计算机上的本地dev集群上,这是很常见的,但是对于SF他们好像是一个不同的节点.

  1. There is an error activating your services: If SF shows in the explorer that your service has any error or warnings, the problem might be because it couldn't start more than one instance of that service on the same node, this is common to happen if you have for example two apis\sites listining on the same port, this is very common to happen on local dev clusters where all the nodes are setup on same machine, but for SF they seems like a different node.

您的服务是

Your services are sharing the same process: On SF, when you run multiple replicas(stateless instances) of same package on same node they will usually share the same process by default, it could be the case of your service being sharing the same process, but is hard to say, as you didn't provide much information on how your services are defined.

如开头所述,这只是一个猜测,因为您没有提供有关服务结构的太多信息,所以我们无法确切说明幕后情况,而这是最可能的原因.

As stated at the beginning, it is just a guess, because you didn't provide much information about your service structure we can't tell exactly what is going on behind the scenes and these are the most probable reasons.

这篇关于Service Fabric无状态群集具有5个节点,但应用程序仅具有1个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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