Merge pull request #66 from trentmswanson/master
Datastax provisioning performance improvements
This commit is contained in:
Коммит
b9cf00dfe8
|
@ -78,10 +78,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"variables": {
|
"variables": {
|
||||||
"templateBaseUrl": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/datastax-on-ubuntu/",
|
"templateBaseUrl": "https://raw.githubusercontent.com/trentmswanson/azure-quickstart-templates/master/datastax-on-ubuntu/",
|
||||||
"sharedTemplateUrl": "[concat(variables('templateBaseUrl'), 'shared-resources.json')]",
|
"sharedTemplateUrl": "[concat(variables('templateBaseUrl'), 'shared-resources.json')]",
|
||||||
"clusterNodesTemplateUrl": "[concat(variables('templateBaseUrl'), 'ephemeral-nodes-resources.json')]",
|
"clusterNodesTemplateUrl": "[concat(variables('templateBaseUrl'), 'ephemeral-nodes-resources.json')]",
|
||||||
"opsCenterTemplateUrl": "[concat(variables('templateBaseUrl'), 'opscenter-resources.json')]",
|
"opsCenterTemplateUrl": "[concat(variables('templateBaseUrl'), 'opscenter-resources.json')]",
|
||||||
|
"opsCenterInstallTemplateUrl": "[concat(variables('templateBaseUrl'), 'opscenter-install-resources.json')]",
|
||||||
"opsCenterVmSize": "Standard_A1",
|
"opsCenterVmSize": "Standard_A1",
|
||||||
"networkSettings": {
|
"networkSettings": {
|
||||||
"virtualNetworkName": "[parameters('virtualNetworkName')]",
|
"virtualNetworkName": "[parameters('virtualNetworkName')]",
|
||||||
|
@ -192,9 +193,6 @@
|
||||||
"name": "ops-center-nodes",
|
"name": "ops-center-nodes",
|
||||||
"type": "Microsoft.Resources/deployments",
|
"type": "Microsoft.Resources/deployments",
|
||||||
"apiVersion": "2015-01-01",
|
"apiVersion": "2015-01-01",
|
||||||
"dependsOn": [
|
|
||||||
"[concat('Microsoft.Resources/deployments/', 'cluster-nodes')]"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"mode": "Incremental",
|
"mode": "Incremental",
|
||||||
"templateLink": {
|
"templateLink": {
|
||||||
|
@ -229,6 +227,39 @@
|
||||||
"vmSize": {
|
"vmSize": {
|
||||||
"value": "[variables('opsCenterVmSize')]"
|
"value": "[variables('opsCenterVmSize')]"
|
||||||
},
|
},
|
||||||
|
"osSettings": {
|
||||||
|
"value": "[variables('osSettings')]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ops-center-install-nodes",
|
||||||
|
"type": "Microsoft.Resources/deployments",
|
||||||
|
"apiVersion": "2015-01-01",
|
||||||
|
"dependsOn": [
|
||||||
|
"[concat('Microsoft.Resources/deployments/', 'cluster-nodes')]",
|
||||||
|
"[concat('Microsoft.Resources/deployments/', 'ops-center-nodes')]"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"mode": "Incremental",
|
||||||
|
"templateLink": {
|
||||||
|
"uri": "[variables('opsCenterInstallTemplateUrl')]",
|
||||||
|
"contentVersion": "1.0.0.0"
|
||||||
|
},
|
||||||
|
"parameters": {
|
||||||
|
"adminUsername": {
|
||||||
|
"value": "[parameters('adminUsername')]"
|
||||||
|
},
|
||||||
|
"adminPassword": {
|
||||||
|
"value": "[parameters('adminPassword')]"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"value": "opc"
|
||||||
|
},
|
||||||
|
"region": {
|
||||||
|
"value": "[parameters('region')]"
|
||||||
|
},
|
||||||
"osSettings": {
|
"osSettings": {
|
||||||
"value": "[variables('osSettings')]"
|
"value": "[variables('osSettings')]"
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
|
||||||
|
"contentVersion": "1.0.0.0",
|
||||||
|
"parameters": {
|
||||||
|
"region": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"adminUsername": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"adminPassword": {
|
||||||
|
"type": "securestring"
|
||||||
|
},
|
||||||
|
"namespace": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"osSettings": {
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"opsCenterSettings": {
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"variables": {
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"type": "Microsoft.Compute/virtualMachines/extensions",
|
||||||
|
"name": "[concat(parameters('namespace'), 'vm', '/installopscenter')]",
|
||||||
|
"apiVersion": "2015-05-01-preview",
|
||||||
|
"location": "[parameters('region')]",
|
||||||
|
"properties": {
|
||||||
|
"publisher": "Microsoft.OSTCExtensions",
|
||||||
|
"type": "CustomScriptForLinux",
|
||||||
|
"typeHandlerVersion": "1.2",
|
||||||
|
"settings": {
|
||||||
|
"fileUris": "[parameters('osSettings').scripts]",
|
||||||
|
"commandToExecute": "[concat('bash opscenter.sh -n \"', parameters('opsCenterSettings').clusterName , '\" -u ', parameters('adminUsername'), ' -p ', parameters('adminPassword'), ' -k ' , parameters('opsCenterSettings').adminPassword , ' -ed ', parameters('opsCenterSettings').nodeList)]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputs": {}
|
||||||
|
}
|
|
@ -29,9 +29,6 @@
|
||||||
"staticIp": {
|
"staticIp": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"opsCenterSettings": {
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"dnsName": {
|
"dnsName": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
@ -146,25 +143,6 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "Microsoft.Compute/virtualMachines/extensions",
|
|
||||||
"name": "[concat(parameters('namespace'), 'vm', '/installopscenter')]",
|
|
||||||
"apiVersion": "2015-05-01-preview",
|
|
||||||
"location": "[parameters('region')]",
|
|
||||||
"dependsOn": [
|
|
||||||
"[concat('Microsoft.Compute/virtualMachines/', parameters('namespace'), 'vm')]",
|
|
||||||
"[concat('Microsoft.Network/networkInterfaces/', parameters('namespace'), 'nic')]"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"publisher": "Microsoft.OSTCExtensions",
|
|
||||||
"type": "CustomScriptForLinux",
|
|
||||||
"typeHandlerVersion": "1.2",
|
|
||||||
"settings": {
|
|
||||||
"fileUris": "[parameters('osSettings').scripts]",
|
|
||||||
"commandToExecute": "[concat('bash opscenter.sh -n \"', parameters('opsCenterSettings').clusterName , '\" -u ', parameters('adminUsername'), ' -p ', parameters('adminPassword'), ' -k ' , parameters('opsCenterSettings').adminPassword , ' -ed ', parameters('opsCenterSettings').nodeList)]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputs": {}
|
"outputs": {}
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
"createOption": "Empty"
|
"createOption": "Empty"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "datadisk7",
|
"name": "datadisk8",
|
||||||
"diskSizeGB": "[parameters('machineSettings').diskSize]",
|
"diskSizeGB": "[parameters('machineSettings').diskSize]",
|
||||||
"lun": 7,
|
"lun": 7,
|
||||||
"vhd": {
|
"vhd": {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче