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?
Asked
Active
Viewed 5,619 times
1 Answers
7
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).
-
Here's the official documentation on PlacementConstraints, I found this helpful: https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-resource-manager-cluster-description#node-properties-and-placement-constraints – UnionP Feb 22 '18 at 04:57
-
FYI - unfortunately the above doesn't work for Placement Policies (e.g. to constrain by fault domains - e.g. data center). For this, as far as I can tell, you must use code/scripting – Adriaan de Beer Oct 17 '18 at 04:53