Skip to content

Commit

Permalink
Merge pull request Azure#3986 from markusheiliger/markusheiliger/sf-p…
Browse files Browse the repository at this point in the history
…ersistedStateDrive

added support to select the drive to use for data persistence on SF cluster nodes
  • Loading branch information
bmoore-msft authored Oct 11, 2017
2 parents c3b4737 + 429ee5e commit f6c1bd0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 11 additions & 0 deletions service-fabric-cluster-ubuntu-5-node-1-nodetype/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@
"metadata": {
"description": "Instance count for node type"
}
},
"nodeDataDrive": {
"type": "string",
"defaultValue": "Temp",
"allowedValues": [
"OS", "Temp"
],
"metadata": {
"description": "The drive to use to store data on a cluster node."
}
}
},
"variables": {
Expand Down Expand Up @@ -388,6 +398,7 @@
"settings": {
"clusterEndpoint": "[reference(parameters('clusterDnsName')).clusterEndpoint]",
"nodeTypeRef": "[variables('vmNodeType0Name')]",
"dataPath": "[concat(if(equals(parameters('nodeDataDrive'), 'OS'), '', '/mnt'), '/sfroot')]",
"durabilityLevel": "Bronze",
"certificate": {
"thumbprint": "[parameters('certificateThumbprint')]",
Expand Down
12 changes: 11 additions & 1 deletion service-fabric-secure-cluster-5-node-1-nodetype/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
"metadata": {
"description": "Instance count for node type"
}
},
"nodeDataDrive": {
"type": "string",
"defaultValue": "Temp",
"allowedValues": [
"OS", "Temp"
],
"metadata": {
"description": "The drive to use to store data on a cluster node."
}
}
},
"variables": {
Expand Down Expand Up @@ -413,7 +423,7 @@
"settings": {
"clusterEndpoint": "[reference(parameters('clusterName')).clusterEndpoint]",
"nodeTypeRef": "[variables('vmNodeType0Name')]",
"dataPath": "D:\\\\SvcFab",
"dataPath": "[concat(if(equals(parameters('nodeDataDrive'), 'OS'), 'C', 'D'), ':\\\\SvcFab')]",
"durabilityLevel": "Bronze",
"nicPrefixOverride": "[variables('subnet0Prefix')]",
"certificate": {
Expand Down

0 comments on commit f6c1bd0

Please sign in to comment.