ServiceFabric极简文档-2 部署环境搭建-配置文件

类型:ClusterConfig.Unsecure.MultiMachine

说明:至少3台机子

{
    "name": "SampleCluster",
    "clusterConfigurationVersion": "1.0.0",
    "apiVersion": "04-2017",
    "nodes": [
      {
        "nodeName": "one",
        "iPAddress": "10.0.0.217",
        "nodeTypeRef": "NodeType0",
        "faultDomain": "fd:/dc1/r0",
        "upgradeDomain": "UD0"
      },
      {
        "nodeName": "one1",
        "iPAddress": "10.0.0.219",
        "nodeTypeRef": "NodeType0",
        "faultDomain": "fd:/dc1/r1",
        "upgradeDomain": "UD1"
      },
      {
        "nodeName": "two",
        "iPAddress": "10.0.0.216",
        "nodeTypeRef": "NodeType0",
        "faultDomain": "fd:/dc2/r2",
        "upgradeDomain": "UD2"
      }
    ],
    "properties": {
        "diagnosticsStore": 
        {
            "metadata":  "Please replace the diagnostics file share with an actual file share accessible from all cluster machines.",
            "dataDeletionAgeInDays": "7",
            "storeType": "FileShare",
            "connectionstring": "C:\ProgramData\SF\DiagnosticsStore"
        },
        "nodeTypes": [
          {
            "name": "NodeType0",
            "clientConnectionEndpointPort": "19000",
            "clusterConnectionEndpointPort": "19001",
            "leaseDriverEndpointPort": "19002",
            "serviceConnectionEndpointPort": "19003",
            "httpGatewayEndpointPort": "19080",
            "reverseProxyEndpointPort": "19081",
            "applicationPorts": {
                "startPort": "20001",
                "endPort": "20031"
            },
            "isPrimary": true
          }
      ],
      "fabricSettings": [
        {
          "name": "Setup",
          "parameters": [
            {
                "name": "FabricDataRoot",
                "value": "C:\ProgramData\SF"
            },
            {
                "name": "FabricLogRoot",
                "value": "C:\ProgramData\SF\Log"
            }
          ]
        }
      ]
    }
}
原文地址:https://www.cnblogs.com/CharlesZHENG/p/8625768.html