Why isn't it possible to change placement constraints in an upgrade?

后端 未结 2 808
误落风尘
误落风尘 2021-01-13 02:15

I have a stateless ASP.NET Core (RC1) service running in my Azure Service Fabric cluster. It has the following manifest:



        
2条回答
  •  佛祖请我去吃肉
    2021-01-13 02:49

    There's actually a fairly easy way to do this without having to write a bunch of code to manually define the application on the fabric cluster.

    While you can declare the placement constraints in the service manifest, you can also declare them in the application manifest. Anything declared in the application manifest will override what's in the service manifest. And with the setting in the application manifest, you can then use parameters to alter the values based on the parameter file you want to a specific deployment.

    I've just written up a blog post that discusses this approach in greater detail. I hope you find it useful. :)

提交回复
热议问题