部署后如何更新服务结构的节点类型 [英] How to update the nodetypes of service fabric after deployment

查看:85
本文介绍了部署后如何更新服务结构的节点类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署后是否有任何方法可以更新服务矩阵集群的节点类型?

Is there any way to update the nodetypes of a service fabric cluster after deployment?

我想动态地向集群添加新的vm缩放集,但是如果我不能在服务结构集群中添加新的节点类型-那么就不可能为这个新的vm缩放集创建新的放置约束.

I want to dynamicly add a new vm scaleset to the cluster, but if I cannot add a new node type in the service fabric cluster - then its not possible to create new placement constrains for this new vm scaleset.

推荐答案

我发现无法使用最新的ARM服务结构提供程序.但是使用较旧的版本是可能的.

I have found no way using the newest ARM service fabric provider. But using an older one, it is possible.

armclient put /subscriptions/8393a037-5d39-462d-a583-09915b4493df/resourceGroups/ServiceFabricTest3/providers/Microsoft.ServiceFabric/clusters/pksservicefabric?api-version=2015-01-01-alpha @test.json

我了解到的一些事情是,下面的test.json文件必须具有

a few things that I learned was, that the below test.json file has to have

  • 已指定其管理端点
  • expectedVmResources应该只指定其主节点.
  • 无法提供实例计数.

这使我相信ARM提供程序还有一些路要走.

This leads me to believe that the ARM provider has some way to go.

{
  "location": "West Europe",
  "properties": {
    "managementEndpoint": "https://pksservicefabric.westeurope.cloudapp.azure.com:19080",
    "certificate": {
      "thumbprint": "4B729ADE19BF2742BB09BB257C6BD8538DBDB1A4",
      "x509StoreName": "My"
    },
    "nodeTypes": [
      {
        "name": "nt1vm",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": true
      },
      {
        "name": "nt2vm",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "nt3vm",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a0",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a1",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a2",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a3",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a4",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a5",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      },
      {
        "name": "algorithm-a6",
        "clientConnectionEndpointPort": 19000,
        "httpGatewayEndpointPort": 19080,
        "applicationPorts": {
          "startPort": 20000,
          "endPort": 30000
        },
        "ephemeralPorts": {
          "startPort": 49152,
          "endPort": 65534
        },
        "isPrimary": false
      }
    ],
    "expectedVmResources": [
      {
        "name": "nt1vm",
        "nodeTypeRef": "nt1vm",
        "vmInstanceCount": 5,
        "isVmss": true
      }
    ]
  }
}

这篇关于部署后如何更新服务结构的节点类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆