【发布时间】:2016-03-08 20:48:56
【问题描述】:
部署后有什么方法可以更新 Service Fabric 集群的节点类型?
我想向集群动态添加新的 vm 规模集,但如果我无法在服务结构集群中添加新的节点类型 - 则无法为这个新的 vm 规模集创建新的放置约束。
【问题讨论】:
部署后有什么方法可以更新 Service Fabric 集群的节点类型?
我想向集群动态添加新的 vm 规模集,但如果我无法在服务结构集群中添加新的节点类型 - 则无法为这个新的 vm 规模集创建新的放置约束。
【问题讨论】:
我发现无法使用最新的 ARM 服务结构提供程序。但是使用旧的,这是可能的。
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 文件必须有
这让我相信 ARM 提供商还有一段路要走。
{
"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
}
]
}
}
【讨论】: