-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HDI add autoscale feature support (#6158)
* change cluster json file to support the autoscale feature * add x-ms-examples for Autoscale * add x-ms-examples for Autoscale * fix valid error * fix valid error * Trigger notification
- Loading branch information
1 parent
c4b606c
commit 047450d
Showing
6 changed files
with
440 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
...nsight/preview/2015-03-01-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"parameters": { | ||
"clusterName": "cluster1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-03-01-preview", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"properties": { | ||
"clusterVersion": "3.6", | ||
"osType": "Linux", | ||
"tier": "Standard", | ||
"clusterDefinition": { | ||
"kind": "hadoop", | ||
"componentVersion": { | ||
"Hadoop": "2.7" | ||
}, | ||
"configurations": { | ||
"gateway": { | ||
"restAuthCredential.isEnabled": true, | ||
"restAuthCredential.username": "admin", | ||
"restAuthCredential.password": "**********" | ||
} | ||
} | ||
}, | ||
"storageProfile": { | ||
"storageaccounts": [ | ||
{ | ||
"name": "mystorage.blob.core.windows.net", | ||
"isDefault": true, | ||
"container": "hdinsight-autoscale-tes-2019-06-18t05-49-16-591z", | ||
"key": "storagekey" | ||
} | ||
] | ||
}, | ||
"computeProfile": { | ||
"roles": [ | ||
{ | ||
"autoscale": { | ||
"capacity": null, | ||
"recurrence": { | ||
"timeZone": "China Standard Time", | ||
"schedule": [ | ||
{ | ||
"days": [ | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday" | ||
], | ||
"timeAndCapacity": { | ||
"time": "09:00", | ||
"minInstanceCount": 3, | ||
"maxInstanceCount": 3 | ||
} | ||
}, | ||
{ | ||
"days": [ | ||
"Monday", | ||
"Tuesday", | ||
"Wednesday", | ||
"Thursday", | ||
"Friday" | ||
], | ||
"timeAndCapacity": { | ||
"time": "18:00", | ||
"minInstanceCount": 6, | ||
"maxInstanceCount": 6 | ||
} | ||
}, | ||
{ | ||
"days": [ | ||
"Saturday", | ||
"Sunday" | ||
], | ||
"timeAndCapacity": { | ||
"time": "09:00", | ||
"minInstanceCount": 2, | ||
"maxInstanceCount": 2 | ||
} | ||
}, | ||
{ | ||
"days": [ | ||
"Saturday", | ||
"Sunday" | ||
], | ||
"timeAndCapacity": { | ||
"time": "18:00", | ||
"minInstanceCount": 4, | ||
"maxInstanceCount": 4 | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"name": "workernode", | ||
"targetInstanceCount": 4, | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D4_V2" | ||
}, | ||
"osProfile": { | ||
"linuxOperatingSystemProfile": { | ||
"username": "sshuser", | ||
"password": "**********" | ||
} | ||
}, | ||
"virtualNetworkProfile": null, | ||
"scriptActions": [], | ||
"dataDisksGroups": null | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.