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/service-fabric-cluster-fabric-settings.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ ms.date: 07/25/2018
18
18
ms.author: aljo
19
19
20
20
---
21
-
# Customize Service Fabric cluster settings and Fabric Upgrade policy
22
-
This document tells you how to customize the various fabric settings and the fabric upgrade policy for your Service Fabric cluster. You can customize them through the [Azure portal](https://portal.azure.com) or using an Azure Resource Manager template.
21
+
# Customize Service Fabric cluster settings
22
+
This article describes how to customize the various fabric settings for your Service Fabric cluster. For clusters hosted in Azure, you can customize settings through the [Azure portal](https://portal.azure.com) or by using an Azure Resource Manager template. For standalone clusters, you customize settings by updating the ClusterConfig.json file and performing a configuration upgrade on your cluster.
23
23
24
24
>[!NOTE]
25
25
> Not all settings are available in the portal. In case a setting listed below is not available via the portal customize it using an Azure Resource Manager template.
@@ -32,14 +32,41 @@ This document tells you how to customize the various fabric settings and the fab
32
32
-**NotAllowed** – These settings cannot be modified. Changing these settings requires that the cluster be destroyed and a new cluster created.
33
33
34
34
## Customize cluster settings using Resource Manager templates
35
-
The steps below illustrate how to add a new setting *MaxDiskQuotaInMB* to the *Diagnostics* section.
35
+
The steps below show how to add a new setting *MaxDiskQuotaInMB* to the *Diagnostics* section using Azure Resource Explorer.
36
36
37
37
1. Go to https://resources.azure.com
38
38
2. Navigate to your subscription by expanding **subscriptions** -> **\<Your Subscription>** -> **resourceGroups** -> **\<Your Resource Group>** -> **providers** -> **Microsoft.ServiceFabric** -> **clusters** -> **\<Your Cluster Name>**
39
39
3. In the top right corner, select **Read/Write.**
40
40
4. Select **Edit** and update the `fabricSettings` JSON element and add a new element:
41
41
42
+
```json
43
+
{
44
+
"name": "Diagnostics",
45
+
"parameters": [
46
+
{
47
+
"name": "MaxDiskQuotaInMB",
48
+
"value": "65536"
49
+
}
50
+
]
51
+
}
42
52
```
53
+
54
+
You can also customize cluster settings in one of the following ways with Azure Resource Manager:
55
+
56
+
- Use the [Azure portal](https://docs.microsoft.com/azure/azure-resource-manager/resource-manager-export-template) to export and update the Resource Manger template.
57
+
- Use [PowerShell](https://docs.microsoft.com/azure/azure-resource-manager/resource-manager-export-template-powershell) to export and update the Resource Manager template.
58
+
- Use the [Azure CLI](https://docs.microsoft.com/azure/azure-resource-manager/resource-manager-export-template-cli) to export and update the Resource Manager template.
59
+
- Use the Azure RM PowerShell [Set-AzureRmServiceFabricSetting](https://docs.microsoft.com/powershell/module/azurerm.servicefabric/Set-AzureRmServiceFabricSetting) and [Remove-AzureRmServiceFabricSetting](https://docs.microsoft.com/powershell/module/azurerm.servicefabric/Remove-AzureRmServiceFabricSetting) commands to modify the setting directly.
60
+
- Use the Azure CLI [az sf cluster setting](https://docs.microsoft.com/cli/azure/sf/cluster/setting) commands to modify the setting directly.
61
+
62
+
## Customize cluster settings for standalone clusters
63
+
Standalone clusters are configured through the ClusterConfig.json file. To learn more, see [Configuration settings for a standalone Windows cluster](./service-fabric-cluster-manifest.md).
64
+
65
+
You can add, update, or remove settings in the `fabricSettings` section under the [Cluster properties](./service-fabric-cluster-manifest.md#cluster-properties) section in ClusterConfig.json.
66
+
67
+
For example, the following JSON adds a new setting *MaxDiskQuotaInMB* to the *Diagnostics* section under the `fabricSettings` element:
68
+
69
+
```json
43
70
{
44
71
"name": "Diagnostics",
45
72
"parameters": [
@@ -51,6 +78,9 @@ The steps below illustrate how to add a new setting *MaxDiskQuotaInMB* to the *D
51
78
}
52
79
```
53
80
81
+
After you've modified the settings in your ClusterConfig.json file, follow the directions in [Upgrade the cluster configuration](./service-fabric-cluster-upgrade-windows-server.md#upgrade-the-cluster-configuration) to apply the settings to your cluster.
82
+
83
+
54
84
The following is a list of Fabric settings that you can customize, organized by section.
0 commit comments