You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-fabric/how-to-managed-cluster-autoscale.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ Some things to consider:
213
213
Suppose you set a rule to scale out when average CPU is greater than 50% over five minutes, and to scale in when average CPU is less than 50%. This setting would cause a "flapping" problem when CPU usage is close to the threshold, with scale actions constantly increasing and decreasing the size of the set. Because of this setting, the autoscale service tries to prevent "flapping", which can manifest as not scaling. Therefore, be sure your scale-out and scale-in thresholds are sufficiently different to allow some space in between scaling.
214
214
215
215
* Can you scale in or out a node type?
216
-
Adjust the count of nodes at the node type level and make sure it completes successfully. [How to scale a node type on a managed cluster](./how-to-managed-cluster-modify-node-type.md#scale-a-node-type-manually-with-a-template)
216
+
Adjust the count of nodes at the node type level and make sure it completes successfully. [How to scale a node type on a managed cluster](how-to-managed-cluster-modify-node-type.md#scale-a-node-type)
217
217
218
218
* Check your Microsoft.ServiceFabric/managedclusters/nodetypes, and Microsoft.Insights resources in the Azure Resource Explorer
Copy file name to clipboardExpand all lines: articles/service-fabric/how-to-managed-cluster-configuration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ In addition to selecting the [Service Fabric managed cluster SKU](overview-manag
15
15
* Configuring [managed identity](how-to-managed-identity-managed-cluster-virtual-machine-scale-sets.md) on cluster node types
16
16
* Enabling [OS and data disk encryption](how-to-managed-cluster-enable-disk-encryption.md) on cluster nodes
17
17
* Configure [autoscaling](how-to-managed-cluster-autoscale.md) on a secondary node type
18
-
*[Manually scale a node type](how-to-managed-cluster-modify-node-type.md#scale-a-node-type-manually-with-portal)
18
+
*[Scale a node type](how-to-managed-cluster-modify-node-type.md#scale-a-node-type)
19
19
* Enable [automatic OS image upgrades](how-to-managed-cluster-modify-node-type.md#enable-automatic-os-image-upgrades) on cluster node types
20
-
* Modify the [OS image](how-to-managed-cluster-modify-node-type.md#modify-the-os-image-for-a-node-type-with-portal) used for a node type
21
-
* Configure [placement properties](how-to-managed-cluster-modify-node-type.md#configure-placement-properties-for-a-node-type-with-portal) for a node type
20
+
* Modify the [OS image](how-to-managed-cluster-modify-node-type.md#modify-the-os-sku-for-a-node-type) used for a node type
21
+
* Configure [placement properties](how-to-managed-cluster-modify-node-type.md#configure-placement-properties-for-a-node-type) for a node type
22
22
* Selecting the cluster [managed disk type](how-to-managed-cluster-managed-disk.md) SKU
23
23
* Configuring cluster [upgrade options](how-to-managed-cluster-upgrades.md) for the runtime updates
title: Configure or modify a Service Fabric managed cluster node type
3
3
description: This article walks through how to modify a managed cluster node type
4
4
ms.topic: how-to
5
-
ms.date: 10/25/2021
5
+
ms.date: 12/10/2021
6
6
---
7
7
8
8
# Service Fabric managed cluster node types
@@ -15,11 +15,13 @@ The rest of this document will cover how to adjust various settings from creatin
15
15
> You will not be able to modify the node type while a change is in progress. It is recommended to let any requested change complete before doing another.
16
16
17
17
18
-
## Add or remove a node type with portal
18
+
## Add a node type
19
+
You can add a node type to a Service Fabric managed cluster through Portal, an Azure Resource Manager template, or PowerShell.
19
20
20
-
In this walkthrough, you will learn how to add or remove a node type using portal.
21
+
### Add with portal
22
+
> [!NOTE]
23
+
> You can only add secondary node types using Portal
21
24
22
-
**To add a node type:**
23
25
1) Log in to [Azure portal](https://portal.azure.com/)
24
26
25
27
2) Navigate to your cluster resource Overview page.
@@ -30,29 +32,14 @@ In this walkthrough, you will learn how to add or remove a node type using porta
30
32
31
33
4) Click `Add` at the top, fill in the required information, then click Add at the bottom, that's it!
32
34
35
+
5) Wait for the new node type addition to be completed
33
36
34
-
**To remove a node type:**
35
-
1) Log in to [Azure portal](https://portal.azure.com/)
36
-
37
-
2) Navigate to your cluster resource Overview page.
38
-
![Sample Overview page][overview]
39
-
40
-
3) Select `Node types` under the `Settings` section
41
-
![Node Types view][addremove]
42
-
43
-
4) Select the `Node Type` you want to remove and click `Delete` at the top.
44
-
45
-
> [!NOTE]
46
-
> It is not possible to remove a primary node type if it is the only primary node type in the cluster.
47
-
48
-
49
-
## Add a node type with a template
50
-
51
-
**To add a node type using an ARM Template**
37
+
### Add with an ARM template
52
38
53
39
Add another resource type `Microsoft.ServiceFabric/managedclusters/nodetypes` with the required values and do a cluster deployment for the setting to take effect.
54
40
55
41
* The Service Fabric managed cluster resource apiVersion should be **2021-05-01** or later.
42
+
* Make sure to set `isPrimary` to `true` if you are intending to replace an existing primary node type.
56
43
57
44
```json
58
45
{
@@ -77,8 +64,70 @@ Add another resource type `Microsoft.ServiceFabric/managedclusters/nodetypes` wi
77
64
```
78
65
For an example two node type configuration, see our [sample two node type ARM Template](https://github.com/Azure-Samples/service-fabric-cluster-templates/blob/master/SF-Managed-Standard-SKU-2-NT)
79
66
67
+
### Add with PowerShell
68
+
69
+
To create a new node type, you'll need to define these properties:
70
+
* **Resource Group**: Resource group the cluster is in
71
+
* **Cluster Name**: Name of the managed cluster
72
+
* **Node Type Name**: Name that is unique from any existing node types in the cluster.
73
+
* **Instance Count**: Initial number of nodes of the new node type.
74
+
* **VM Size**: VM SKU for the nodes. If not specified, the default value *Standard_D2* is used.
75
+
76
+
> [!NOTE]
77
+
> If adding a primary node type, the `-Primary` property must be used.
You can remove a Service Fabric managed cluster node type using Portal or PowerShell.
91
+
92
+
> [!NOTE]
93
+
> To remove a primary node type from a Service Fabric managed cluster, you must use PowerShell and there must be more then one primary node type available.
94
+
95
+
### Remove with portal
96
+
1) Log in to [Azure portal](https://portal.azure.com/)
97
+
98
+
2) Navigate to your cluster resource Overview page.
99
+
![Sample Overview page][overview]
100
+
101
+
3) Select `Node types` under the `Settings` section
102
+
![Node Types view][addremove]
103
+
104
+
4) Select the `Node Type` you want to remove and click `Delete` at the top.
105
+
106
+
### Remove with PowerShell
107
+
> [!NOTE]
108
+
> If removing a primary node type for scenarios such as upgrading the SKU it will take multiple hours and progress can be monitored by using SFX. Seed nodes will migrate one node per upgrade domain(UD) walk at a time.
80
109
81
-
## Scale a node type manually with portal
110
+
To remove a node type, you'll need to define these properties:
111
+
* **Resource Group**: Resource group the cluster is in
112
+
* **Cluster Name**: Name of the managed cluster
113
+
* **Node Type Name**: Name that is unique from any existing node types in the cluster.
You can scale a Service Fabric managed cluster node type with portal, ARM template, or PowerShell. You can also [configure autoscale for a secondary node type](how-to-managed-cluster-autoscale.md) if you want a fully automated solution.
126
+
127
+
> [!NOTE]
128
+
> For the Primary node type, you will not be able to go below 3 nodes for a Basic SKU cluster, and 5 nodes for a Standard SKU cluster.
129
+
130
+
### Scale using portal
82
131
83
132
In this walkthrough, you will learn how to modify the node count for a node type using portal.
84
133
@@ -98,9 +147,9 @@ In this walkthrough, you will learn how to modify the node count for a node type
98
147
![Sample showing a node type updating][node-type-updating]
99
148
100
149
101
-
## Scale a node type manually with a template
150
+
### Scale a node type with a template
102
151
103
-
To adjust the node count for a node type using an ARM Template, adjust the `vmInstanceCount` property with the new value and do a cluster deployment for the setting to take effect.
152
+
To adjust the node count for a node type using an ARM Template, adjust the `vmInstanceCount` property with the new value and do a cluster deployment for the setting to take effect. The cluster will begin upgrading automatically you will see the additional nodes when complete.
104
153
105
154
* The Service Fabric managed cluster resource apiVersion should be **2021-05-01** or later.
106
155
@@ -122,6 +171,21 @@ To adjust the node count for a node type using an ARM Template, adjust the `vmIn
122
171
}
123
172
```
124
173
174
+
### Scale a node type with PowerShell
175
+
Change the instance count to increase or decrease the number of nodes on the node type that you would like to scale. You can find node type names in the Azure Resource Manager template (ARM template) from your cluster deployment, or in the Service Fabric Explorer.
The cluster will begin upgrading automatically you will see the additional nodes when complete.
187
+
188
+
125
189
## Enable automatic OS image upgrades
126
190
127
191
You can choose to enable automatic OS image upgrades to the virtual machines running your managed cluster nodes. Although the virtual machine scale set resources are managed on your behalf with Service Fabric managed clusters, it's your choice to enable automatic OS image upgrades for your cluster nodes. As with [classic Service Fabric](service-fabric-best-practices-infrastructure-as-code.md#virtual-machine-os-automatic-upgrade-configuration) clusters, managed cluster nodes are not upgraded by default, in order to prevent unintended disruptions to your cluster.
@@ -164,7 +228,10 @@ If an upgrade fails, Service Fabric will retry after 24 hours, for a maximum of
164
228
165
229
For more on image upgrades, see [Automatic OS image upgrades with Azure virtual machine scale sets](../virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade.md).
166
230
167
-
## Modify the OS image for a node type with portal
231
+
## Modify the OS SKU for a node type
232
+
Service Fabric managed clusters enables you to modify the OS SKU for a node type in place. This is helpful for scenarios such as migrating from Windows 2019 to Windows 2022 or if you want to switch to a Server (Core) SKU vs Server with Desktop Experience SKU.
233
+
234
+
### Modify OS SKU with portal
168
235
169
236
In this walkthrough, you will learn how to modify the OS image for a node type using portal.
170
237
@@ -184,7 +251,7 @@ In this walkthrough, you will learn how to modify the OS image for a node type u
184
251
![Sample showing a node type updating][node-type-updating]
185
252
186
253
187
-
## Modify the OS image for a node type with a template
254
+
###Modify OS SKU with a template
188
255
189
256
To modify the OS image used for a node type using an ARM Template, adjust the `vmImageSku` property with the new value and do a cluster deployment for the setting to take effect. The managed cluster provider will reimage each instance by upgrade domain.
190
257
@@ -208,7 +275,10 @@ To modify the OS image used for a node type using an ARM Template, adjust the `v
208
275
}
209
276
```
210
277
211
-
## Configure placement properties for a node type with portal
278
+
## Configure placement properties for a node type
279
+
[Placement properties](service-fabric-cluster-resource-manager-cluster-description.md#node-properties-and-placement-constraints) are used to ensure that certain workloads run only on certain node types in the cluster. Service Fabric managed clusters support configuring these properties via portal, ARM template, or PowerShell.
280
+
281
+
### Configure placement properties with portal
212
282
213
283
In this walkthrough, you will learn how to modify a placement property for a node type using portal.
214
284
@@ -227,9 +297,8 @@ In this walkthrough, you will learn how to modify a placement property for a nod
227
297
6) The `Provisioning state` will now show a status of `Updating` until complete. When complete, it will show `Succeeded` again.
228
298
![Sample showing a node type updating][node-type-updating]
229
299
230
-
You can now use that [placement property to ensure that certain workloads run only on certain types of nodes in the cluster](./service-fabric-cluster-resource-manager-cluster-description.md#node-properties-and-placement-constraints).
231
300
232
-
## Configure placement properties for a node type with a template
301
+
###Configure placement properties with a template
233
302
234
303
To adjust the placement properties for a node type using an ARM Template, adjust the `placementProperties` property with the new value(s) and do a cluster deployment for the setting to take effect. The below sample shows three values being set for a node type.
235
304
@@ -250,15 +319,24 @@ To adjust the placement properties for a node type using an ARM Template, adjust
250
319
}
251
320
}
252
321
```
253
-
You can now use that [placement property to ensure that certain workloads run only on certain types of nodes in the cluster](./service-fabric-cluster-resource-manager-cluster-description.md#node-properties-and-placement-constraints).
322
+
323
+
### Configure placement properties with PowerShell
324
+
325
+
The following example will update and overwrite any existing placement properties for a given node type.
Service Fabric managed cluster does not support in-place modification of the VM SKU, but is simpler then classic. In order to accomplish this you'll need to do the following:
258
-
*[Create a new node type](how-to-managed-cluster-modify-node-type.md#add-or-remove-a-node-type-with-portal) with the required VM SKU.
337
+
*[Create a new node type via portal, ARM template, or PowerShell](how-to-managed-cluster-modify-node-type.md#add-a-node-type) with the required VM SKU. You'll need to use a template or PowerShell for adding a primary or stateless node type.
259
338
* Migrate your workload over. One way is to use a [placement property to ensure that certain workloads run only on certain types of nodes in the cluster](./service-fabric-cluster-resource-manager-cluster-description.md#node-properties-and-placement-constraints).
260
-
*[Delete old node type](how-to-managed-cluster-modify-node-type.md#add-or-remove-a-node-type-with-portal)
261
-
339
+
*[Delete old node type via portal or PowerShell](how-to-managed-cluster-modify-node-type.md#remove-a-node-type). To remove a primary node type you will have to use PowerShell.
0 commit comments