可以跨分区和/或群集复制服务结构状态吗?

时间:2017-02-28 18:39:31

标签: azure azure-service-fabric

可以使用Service Fabric分区来主动管理应用程序状态子集的地理位置吗?我想确保仅在特定区域内部署给定分区。

3 个答案:

答案 0 :(得分:0)

如果您使用的是基于Azure的群集,它会使用存储帐户存储虚拟机的磁盘,其中包含Service Fabric状态。

可以将存储帐户配置为以一个(LRS)或两个(GRS)Azure Regions冗余存储数据。

您可以控制创建存储帐户的位置,以便确定数据的存储位置。

答案 1 :(得分:0)

If you're using Service Fabric to maintain application state, then you can not duplicate that state across multiple Service Fabric Clusters. This applies to hosting multiple Azure Service Fabric Clusters both on-premises as well as in the same or multiple Azure Regions.

It is my understanding that the state within a Service Fabric Partition is not shared or sharable between multiple partitions.

答案 2 :(得分:0)

如果您拥有跨多个Azure区域的Azure Service Fabric群集(大多数人不会),那么您可以通过placement policies约束或优化特定命名服务实例的位置。

选项包括:

  1. 无效域名
  2. 必填域
  3. 首选域名
  4. 禁止复制包装
  5. 示例摘录:

    ServicePlacementInvalidDomainPolicyDescription invalidDomain = new ServicePlacementInvalidDomainPolicyDescription();
    invalidDomain.DomainName = "fd:/DCEast"; //regulations prohibit this workload here
    serviceDescription.PlacementPolicies.Add(invalidDomain);
    

    抓住您最喜欢的反射器并查看源自ServicePlacementPolicyDescription

    的内容
相关问题