如何配置服务结构放置约束? [英] How do I configure Service Fabric Placement Constraints?

查看:62
本文介绍了如何配置服务结构放置约束?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够根据不同的节点类型(即FrontEnd,BackEnd)配置放置约束.我可以针对每个环境执行此操作,以便在我的测试/本地集群中没有约束,但是在我的生产环境中有约束吗?

I want to be able to configure placement constraints based on different node types (i.e. FrontEnd, BackEnd). Can I do this per-environment, so that in my test/local cluster there are no constraints, but on my production environments there is?

推荐答案

是的,可以!官方文档描述了一种通过代码执行此操作的方法,但您也可以直接使用服务清单文件来执行此操作,以获取默认的&每个环境的配置.您可以在博客文章中进行操作请遵循(在此答案中找到它).

Yes, you can! The official docs describe a way to do this via code, but you can also do so with the service manifest files directly to get default & per-environment configuration. There is a blog post you can follow (found it in this answer).

这篇关于如何配置服务结构放置约束?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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