-
Notifications
You must be signed in to change notification settings - Fork 5.7k
HDI add autoscale feature support #6158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
amarzavery
merged 6 commits into
Azure:master
from
gaoxiaoninghit:hdi_add_autoscale_support_autorest
Jun 25, 2019
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a1be505
change cluster json file to support the autoscale feature
01e6826
add x-ms-examples for Autoscale
3b14442
add x-ms-examples for Autoscale
991b04c
fix valid error
dd08127
fix valid error
edd2f70
Trigger notification
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -56,6 +56,9 @@ | |
| }, | ||
| "Create Hadoop cluster with Azure Data Lake Storage Gen 2": { | ||
| "$ref": "./examples/CreateLinuxHadoopAdlsGen2.json" | ||
| }, | ||
| "Create HDInsight cluster with Autoscale configuration": { | ||
| "$ref": "./examples/CreateHDInsightClusterWithAutoscaleConfig.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
|
|
@@ -605,6 +608,90 @@ | |
| } | ||
| } | ||
| }, | ||
| "AutoscaleTimeAndCapacity": { | ||
|
||
| "properties": { | ||
| "time": { | ||
| "type": "string", | ||
| "description": "24-hour time in the form xx:xx" | ||
| }, | ||
| "minInstanceCount": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "The minimum instance count of the cluster" | ||
| }, | ||
| "maxInstanceCount": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "The maximum instance count of the cluster" | ||
| } | ||
| }, | ||
| "description": "Time and capacity request parameters" | ||
| }, | ||
| "AutoscaleSchedule": { | ||
|
||
| "properties": { | ||
| "days": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "enum": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ], | ||
| "x-ms-enum": { | ||
| "name": "DaysOfWeek", | ||
| "modelAsString": false | ||
| } | ||
| }, | ||
| "description": "Days of the week for a schedule-based autoscale rule" | ||
| }, | ||
| "timeAndCapacity": { | ||
| "$ref": "#/definitions/AutoscaleTimeAndCapacity", | ||
| "description": "Time and capacity for a schedule-based autoscale rule" | ||
| } | ||
| }, | ||
| "description": "Parameters for a schedule-based autoscale rule, consisting of an array of days + a time and capacity" | ||
| }, | ||
| "AutoscaleCapacity": { | ||
NelsonDaniel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "minInstanceCount": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "The minimum instance count of the cluster" | ||
| }, | ||
| "maxInstanceCount": { | ||
| "type": "integer", | ||
| "format": "int32", | ||
| "description": "The maximum instance count of the cluster" | ||
| } | ||
| }, | ||
| "description": "The load-based autoscale request parameters" | ||
| }, | ||
| "AutoscaleRecurrence": { | ||
NelsonDaniel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "timeZone": { | ||
| "type": "string", | ||
| "description": "The time zone for the autoscale schedule times" | ||
| }, | ||
| "schedule": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/AutoscaleSchedule" | ||
| }, | ||
| "description": "Array of schedule-based autoscale rules" | ||
| } | ||
| }, | ||
| "description": "Schedule-based autoscale request parameters" | ||
| }, | ||
| "Autoscale": { | ||
NelsonDaniel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "capacity": { | ||
| "$ref": "#/definitions/AutoscaleCapacity", | ||
| "description": "Parameters for load-based autoscale" | ||
| }, | ||
| "recurrence": { | ||
| "$ref": "#/definitions/AutoscaleRecurrence", | ||
| "description": "Parameters for schedule-based autoscale" | ||
| } | ||
| }, | ||
| "description": "The autoscale request parameters" | ||
| }, | ||
| "HardwareProfile": { | ||
| "properties": { | ||
| "vmSize": { | ||
|
|
@@ -710,6 +797,11 @@ | |
| "format": "int32", | ||
| "description": "The instance count of the cluster." | ||
| }, | ||
| "autoscale": { | ||
| "$ref": "#/definitions/Autoscale", | ||
| "x-ms-client-name": "autoscaleConfiguration", | ||
NelsonDaniel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "description": "The autoscale configurations." | ||
| }, | ||
| "hardwareProfile": { | ||
| "$ref": "#/definitions/HardwareProfile", | ||
| "description": "The hardware profile." | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.