Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
In this tutorial series we will discuss:
- How to deploy a Service Fabric managed cluster
- How to scale out a Service Fabric managed cluster
- How to add and remove nodes in a Service Fabric managed cluster
- How to deploy an application to a Service Fabric managed cluster
This part of the series covers how to:
- Add a node type to a Service Fabric managed cluster
- Delete a node type from a Service Fabric managed cluster
Предпосылки
- A Service Fabric managed cluster (see Deploy a managed cluster).
- Azure PowerShell 4.7.0 or later (see Install Azure PowerShell).
Add a node type to a Service Fabric managed cluster
You can add a node type to a Service Fabric managed cluster through an Azure Resource Manager template, PowerShell, or CLI. In this tutorial, we will be adding a node type using the Azure PowerShell.
To create a new node type, you'll need to define three properties:
- Имя типа узла — имя, уникальное для всех существующих типов узлов в кластере.
- Instance Count: Initial number of nodes of the new node type.
- Размер виртуальной машины — номер SKU виртуальной машины для узлов. Если значение не задано, по умолчанию используется значение Standard_D2.
Примечание.
If the node type being added is the first or only node type in the cluster, the Primary property must be used.
$resourceGroup = "myResourceGroup"
$clusterName = "mysfcluster"
$nodeTypeName = "nt2"
$vmSize = "Standard_D2_v2"
New-AzServiceFabricManagedNodeType -ResourceGroupName $resourceGroup -ClusterName $clusterName -Name $nodeTypeName -InstanceCount 3 -vmSize $vmSize
Remove a node type from a Service Fabric managed cluster
To remove a node type from a Service Fabric managed cluster, you must use PowerShell or CLI. In this tutorial, we will remove a node type using Azure PowerShell.
Примечание.
It is not possible to remove a primary node type if it is the only primary node type in the cluster.
To remove a node type:
$resourceGroup = "myResourceGroup"
$clusterName = "myCluster"
$nodeTypeName = "nt2"
Remove-AzServiceFabricManagedNodeType -ResourceGroupName $resourceGroup -ClusterName $clusterName -Name $nodeTypeName
Дальнейшие действия
In this section, we added and deleted node types. To learn how to deploy an application to a Service Fabric managed cluster, see: