Microservices 节点计数5出错时servicefabric无柄服务实例计数6

Microservices 节点计数5出错时servicefabric无柄服务实例计数6,microservices,azure-service-fabric,service-fabric-stateless,Microservices,Azure Service Fabric,Service Fabric Stateless,我们有一个默认实例数为6的简单无状态服务,部署到本地五节点服务结构集群,在创建第6个实例时出错如下。没有为服务端点提供端口,端口是动态的,没有冲突 System.CRM ServiceReplicaUnplacedHealth_Secondary_9a78cf1e-252f-4b29-9d0c-10947e92928b Tue, 03 Dec 2019 12:31:37 GMT 0.00:01:05.0 132198498979714109 true false Th

我们有一个默认实例数为6的简单无状态服务,部署到本地五节点服务结构集群,在创建第6个实例时出错如下。没有为服务端点提供端口,端口是动态的,没有冲突

    System.CRM  ServiceReplicaUnplacedHealth_Secondary_9a78cf1e-252f-4b29-9d0c-10947e92928b Tue, 03 Dec 2019 12:31:37 GMT   0.00:01:05.0    132198498979714109  true    false
The Cluster Resource Manager was unable to find a placement for one or more of the Service's Replicas:
Secondary replica could not be placed due to the following constraints and properties:  
TargetReplicaSetSize: 6
Placement Constraint: N/A
Parent Service: N/A

Constraint Elimination Sequence:
Down nodes count 0, Deactivated nodes count 0, Deactivating nodes count 0
Existing Secondary Replicas eliminated 5 possible node(s) for placement -- 0/5 node(s) remain.

Nodes Eliminated By Constraints:

Existing Secondary Replicas -- Nodes with Partition's Existing Secondary Replicas/Instances:
--
FaultDomain:fd:/4 NodeName:_Node_4 NodeType:NodeType4 NodeTypeName:NodeType4 UpgradeDomain:4 Deactivation Intent/Status: None/None
FaultDomain:fd:/3 NodeName:_Node_3 NodeType:NodeType3 NodeTypeName:NodeType3 UpgradeDomain:3 Deactivation Intent/Status: None/None
FaultDomain:fd:/2 NodeName:_Node_2 NodeType:NodeType2 NodeTypeName:NodeType2 UpgradeDomain:2 Deactivation Intent/Status: None/None
FaultDomain:fd:/1 NodeName:_Node_1 NodeType:NodeType1 NodeTypeName:NodeType1 UpgradeDomain:1 Deactivation Intent/Status: None/None
FaultDomain:fd:/0 NodeName:_Node_0 NodeType:NodeType0 NodeTypeName:NodeType0 UpgradeDomain:0 Deactivation Intent/Status: None/None

不确定为什么第6个实例创建失败时,并没有端口,应用程序部署在kestrel主机上的可靠服务


我们如何防止这个错误发生,并创建第6个实例?非常感谢您的帮助

您不能,至少在不修改集群放置约束的情况下不能,这可能会导致许多新问题。目前,服务结构不允许在同一节点中有同一服务的多个实例


关于这个问题还有一个悬而未决的问题,我建议您通读一遍,以获得更好的理解。

感谢您分享这一点,因此目前不可能在单个分区单个节点上创建多个实例。解决方法是为每个实例创建一个分区,但这偏离了完全无状态实例的概念。