azure-service-fabric - 服务结构从部署-> 自动缩放-> 就绪需要多长时间?

标签 azure-service-fabric

从下面的输出中可以看出,集群仍处于“部署”模式,等待“自动缩放”->“就绪”状态启动。但是查看节点,它们一直以 nodestatus = 1 运行20分钟。

是否有可能深入了解是什么触发了从部署到自动缩放->就绪的步骤?

时间与节点机器的大小相关吗?

C:\Users\pks>armclient get /subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4?api-version=2016-03-01
{
  "type": "Microsoft.ServiceFabric/clusters",
  "location": "West Europe",
  "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4",
  "name": "citestcluster4",
  "tags": {
    "hidden-resourceType": "Service Fabric",
    "hidden-clusterName": "citestcluster4"
  },
  "etag": "W/\"636020077930324002\"",
  "properties": {
    "provisioningState": "Succeeded",
    "clusterId": "909e26fe-3d44-4bf9-942d-dea6d37b0b2c",
    "clusterCodeVersion": "5.1.150.9590",
    "clusterState": "Deploying",
    "managementEndpoint": "https://citestcluster4.westeurope.cloudapp.azure.com:19080",
    "clusterEndpoint": "https://westeurope.servicefabric.azure.com/runtime/clusters/909e26fe-3d44-4bf9-942d-dea6d37b0b2c",
    "certificate": {
      "thumbprint": "4BE52A76D3E63B159F8475B56B40D29D20584FF5",
      "x509StoreName": "My"
    },
    "clientCertificateThumbprints": [],
    "clientCertificateCommonNames": [],
    "fabricSettings": [
      {
        "name": "Security",
        "parameters": [
          {
            "name": "ClusterProtectionLevel",
            "value": "EncryptAndSign"
          }
        ]
      }
    ],
    "diagnosticsStorageAccountConfig": {
      "storageAccountName": "h7vokscadqdiy2",
      "protectedAccountKeyName": "StorageAccountKey1",
      "blobEndpoint": "https://h7vokscadqdiy2.blob.core.windows.net/",
      "queueEndpoint": "https://h7vokscadqdiy2.queue.core.windows.net/",
      "tableEndpoint": "https://h7vokscadqdiy2.table.core.windows.net/"
    },
    "vmImage": "Windows",
    "reliabilityLevel": "Silver",
    "nodeTypes": [
      {
        "name": "nt1vm",
        "placementProperties": {
          "isPrimary": "true",
          "vmNodeTypeSize": "Standard_A0"
        },
        "capacities": {
          "memory": "100"
        },
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": true,
        "vmInstanceCount": 5,
        "durabilityLevel": "Bronze"
      }
    ]
  }
}
C:\Users\pks>armclient get /subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/nodes?api-version=2016-03-01
{
  "value": [
    {
      "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/Nodes/_nt1vm_2",
      "properties": {
        "Name": "_nt1vm_2",
        "IpAddressOrFQDN": "10.0.0.6",
        "Type": "nt1vm",
        "CodeVersion": "5.1.150.9590",
        "ConfigVersion": "1",
        "NodeStatus": 1,
        "NodeUpTimeInSeconds": "1276",
        "HealthState": 1,
        "IsSeedNode": true,
        "UpgradeDomain": "2",
        "FaultDomain": "fd:/2",
        "Id": {
          "Id": "2153dcef983f79f6d056f74e724abf00"
        },
        "InstanceId": "131108866624879337",
        "NodeDeactivationInfo": {
          "NodeDeactivationIntent": 0,
          "NodeDeactivationStatus": 0,
          "NodeDeactivationTask": [],
          "PendingSafetyChecks": []
        }
      }
    },
    {
      "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/Nodes/_nt1vm_0",
      "properties": {
        "Name": "_nt1vm_0",
        "IpAddressOrFQDN": "10.0.0.4",
        "Type": "nt1vm",
        "CodeVersion": "5.1.150.9590",
        "ConfigVersion": "1",
        "NodeStatus": 1,
        "NodeUpTimeInSeconds": "1275",
        "HealthState": 1,
        "IsSeedNode": true,
        "UpgradeDomain": "0",
        "FaultDomain": "fd:/0",
        "Id": {
          "Id": "310a2a579b75d9847ba5a43d6b365d7c"
        },
        "InstanceId": "131108866767599090",
        "NodeDeactivationInfo": {
          "NodeDeactivationIntent": 0,
          "NodeDeactivationStatus": 0,
          "NodeDeactivationTask": [],
          "PendingSafetyChecks": []
        }
      }
    },
    {
      "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/Nodes/_nt1vm_3",
      "properties": {
        "Name": "_nt1vm_3",
        "IpAddressOrFQDN": "10.0.0.7",
        "Type": "nt1vm",
        "CodeVersion": "5.1.150.9590",
        "ConfigVersion": "1",
        "NodeStatus": 1,
        "NodeUpTimeInSeconds": "1275",
        "HealthState": 1,
        "IsSeedNode": true,
        "UpgradeDomain": "3",
        "FaultDomain": "fd:/3",
        "Id": {
          "Id": "899b5afa0a70e1af4a620eda67d0260f"
        },
        "InstanceId": "131108866347571432",
        "NodeDeactivationInfo": {
          "NodeDeactivationIntent": 0,
          "NodeDeactivationStatus": 0,
          "NodeDeactivationTask": [],
          "PendingSafetyChecks": []
        }
      }
    },
    {
      "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/Nodes/_nt1vm_4",
      "properties": {
        "Name": "_nt1vm_4",
        "IpAddressOrFQDN": "10.0.0.8",
        "Type": "nt1vm",
        "CodeVersion": "5.1.150.9590",
        "ConfigVersion": "1",
        "NodeStatus": 1,
        "NodeUpTimeInSeconds": "1268",
        "HealthState": 1,
        "IsSeedNode": true,
        "UpgradeDomain": "4",
        "FaultDomain": "fd:/4",
        "Id": {
          "Id": "bde184b3d9f49b2af32e8037eb951483"
        },
        "InstanceId": "131108867572806882",
        "NodeDeactivationInfo": {
          "NodeDeactivationIntent": 0,
          "NodeDeactivationStatus": 0,
          "NodeDeactivationTask": [],
          "PendingSafetyChecks": []
        }
      }
    },
    {
      "id": "/subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourcegroups/ci-sf-tests4/providers/Microsoft.ServiceFabric/clusters/citestcluster4/Nodes/_nt1vm_1",
      "properties": {
        "Name": "_nt1vm_1",
        "IpAddressOrFQDN": "10.0.0.5",
        "Type": "nt1vm",
        "CodeVersion": "5.1.150.9590",
        "ConfigVersion": "1",
        "NodeStatus": 1,
        "NodeUpTimeInSeconds": "976",
        "HealthState": 1,
        "IsSeedNode": true,
        "UpgradeDomain": "1",
        "FaultDomain": "fd:/1",
        "Id": {
          "Id": "de98611a5345b01b365ee8e6d67bfcad"
        },
        "InstanceId": "131108870541748899",
        "NodeDeactivationInfo": {
          "NodeDeactivationIntent": 0,
          "NodeDeactivationStatus": 0,
          "NodeDeactivationTask": [],
          "PendingSafetyChecks": []
        }
      }
    }
  ]
}

最佳答案

您的集群是否太小? Standard_A0(这是我认为我读到的)不是那么大,可能只是需要很长时间。

关于azure-service-fabric - 服务结构从部署-> 自动缩放-> 就绪需要多长时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37918890/

相关文章:

c# - 调用 Azure Service Fabric 中服务的特定实例

azure - 用于图像上传的 Service Fabric 方法

c# - 如何增加特定端点的超时?

azure - Service Fabric - 跟踪语句不记录

azure - 可靠的有状态服务与事件中心

azure-service-fabric - 服务结构状态 : Upgrade service unreachable

Azure Service Fabric 资源管理器中的 Java Web 应用程序部署

c# - 如何对 Service Fabric 应用程序进行版本控制和分离?

git - $(NugetPackageRoot) 宏在 VS2019 中自动更改为 *.sfproj 文件中的 "..\packages\....",在推送到 Git 之前不断要求撤消更改

c# - 为了解决 GA 问题而构建可靠的服务与 Actor