将Azure Service Fabric服务映射到特定节点类型 [英] Mapping Azure Service Fabric services to a certain node type
问题描述
在Service Fabric应用程序VS模板中轻松创建服务(如果是可靠的参与者,则可以是参与者)是轻松的.在Azure门户中定义节点类型也很容易.但是,如何将服务/角色映射为在特定节点类型上运行?
Creating services (or actors in the case of Reliable Actors) in the Service Fabric application VS template is effortless. Defining node types in the Azure portal is also easy. But how do you map a service/actor to run on a specific node type?
推荐答案
您可以使用展示位置约束来做到这一点.
You can do that using placement constraints.
More information on that can be found in the "Placement constraints and node properties" section of this article.
In short, you'd need to set placement properties on your cluster and then set placement constraints on the service using StatefulServiceDescription.PlacementConstraints.
这篇关于将Azure Service Fabric服务映射到特定节点类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!