将Azure Service Fabric服务映射到特定节点类型 [英] Mapping Azure Service Fabric services to a certain node type

查看:57
本文介绍了将Azure Service Fabric服务映射到特定节点类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

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