-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
onboard new apiversion 2023-11-01-preview
- Loading branch information
Wei Dong
committed
Jan 9, 2024
1 parent
d736c01
commit 735cc59
Showing
35 changed files
with
7,849 additions
and
1 deletion.
There are no files selected for viewing
335 changes: 335 additions & 0 deletions
335
....HDInsight/HDInsightOnAks/preview/2023-11-01-preview/examples/CreateAutoscaleCluster.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,335 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "10e32bab-26da-4cc4-a441-52b318f824e6", | ||
"resourceGroupName": "hiloResourcegroup", | ||
"api-version": "2023-11-01-preview", | ||
"clusterPoolName": "clusterpool1", | ||
"clusterName": "cluster1", | ||
"HDInsightCluster": { | ||
"location": "West US 2", | ||
"properties": { | ||
"clusterType": "trino", | ||
"computeProfile": { | ||
"nodes": [ | ||
{ | ||
"type": "worker", | ||
"vmSize": "Standard_D3_v2", | ||
"count": 4 | ||
} | ||
] | ||
}, | ||
"clusterProfile": { | ||
"clusterVersion": "1.0.1", | ||
"ossVersion": "2.4.1", | ||
"identityProfile": { | ||
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", | ||
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", | ||
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" | ||
}, | ||
"authorizationProfile": { | ||
"userIds": [ | ||
"testuser1", | ||
"testuser2" | ||
] | ||
}, | ||
"trinoProfile": {}, | ||
"sshProfile": { | ||
"count": 2 | ||
}, | ||
"autoscaleProfile": { | ||
"enabled": true, | ||
"autoscaleType": "ScheduleBased", | ||
"gracefulDecommissionTimeout": 3600, | ||
"scheduleBasedConfig": { | ||
"defaultCount": 10, | ||
"timeZone": "Cen. Australia Standard Time", | ||
"schedules": [ | ||
{ | ||
"days": [ | ||
"Monday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 20 | ||
}, | ||
{ | ||
"days": [ | ||
"Sunday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 25 | ||
} | ||
] | ||
}, | ||
"loadBasedConfig": { | ||
"minNodes": 10, | ||
"maxNodes": 20, | ||
"pollInterval": 60, | ||
"cooldownPeriod": 300, | ||
"scalingRules": [ | ||
{ | ||
"actionType": "scaleup", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "greaterThan", | ||
"threshold": 90 | ||
} | ||
}, | ||
{ | ||
"actionType": "scaledown", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "lessThan", | ||
"threshold": 20 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", | ||
"name": "cluster1", | ||
"type": "Microsoft.HDInsight/clusterPools/clusters", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"clusterType": "trino", | ||
"deploymentId": "45cd32aead6e4a91b079a0cdbfac8c36", | ||
"computeProfile": { | ||
"nodes": [ | ||
{ | ||
"type": "worker", | ||
"vmSize": "Standard_D3_v2", | ||
"count": 4 | ||
} | ||
] | ||
}, | ||
"clusterProfile": { | ||
"clusterVersion": "1.0.1", | ||
"ossVersion": "2.4.1", | ||
"components": [ | ||
{ | ||
"name": "Hive", | ||
"version": "2.4.1" | ||
} | ||
], | ||
"identityProfile": { | ||
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", | ||
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", | ||
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" | ||
}, | ||
"authorizationProfile": { | ||
"userIds": [ | ||
"testuser1", | ||
"testuser2" | ||
] | ||
}, | ||
"connectivityProfile": { | ||
"web": { | ||
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" | ||
}, | ||
"ssh": [ | ||
{ | ||
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" | ||
}, | ||
{ | ||
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" | ||
} | ||
] | ||
}, | ||
"trinoProfile": {}, | ||
"sshProfile": { | ||
"count": 2, | ||
"podPrefix": "sshnode" | ||
}, | ||
"autoscaleProfile": { | ||
"enabled": true, | ||
"autoscaleType": "ScheduleBased", | ||
"gracefulDecommissionTimeout": 3600, | ||
"scheduleBasedConfig": { | ||
"defaultCount": 10, | ||
"timeZone": "Cen. Australia Standard Time", | ||
"schedules": [ | ||
{ | ||
"days": [ | ||
"Monday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 20 | ||
}, | ||
{ | ||
"days": [ | ||
"Sunday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 25 | ||
} | ||
] | ||
}, | ||
"loadBasedConfig": { | ||
"minNodes": 10, | ||
"maxNodes": 20, | ||
"pollInterval": 60, | ||
"cooldownPeriod": 300, | ||
"scalingRules": [ | ||
{ | ||
"actionType": "scaleup", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "greaterThan", | ||
"threshold": 90 | ||
} | ||
}, | ||
{ | ||
"actionType": "scaledown", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "lessThan", | ||
"threshold": 20 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z" | ||
}, | ||
"location": "West US 2" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.HDInsight/clusterPools/clusterpool1/clusters/cluster1", | ||
"name": "cluster1", | ||
"type": "Microsoft.HDInsight/clusterPools/clusters", | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"clusterType": "trino", | ||
"computeProfile": { | ||
"nodes": [ | ||
{ | ||
"type": "worker", | ||
"vmSize": "Standard_D3_v2", | ||
"count": 4 | ||
} | ||
] | ||
}, | ||
"clusterProfile": { | ||
"clusterVersion": "1.0.1", | ||
"ossVersion": "2.4.1", | ||
"identityProfile": { | ||
"msiResourceId": "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-msi", | ||
"msiClientId": "de91f1d8-767f-460a-ac11-3cf103f74b34", | ||
"msiObjectId": "40491351-c240-4042-91e0-f644a1d2b441" | ||
}, | ||
"authorizationProfile": { | ||
"userIds": [ | ||
"testuser1", | ||
"testuser2" | ||
] | ||
}, | ||
"connectivityProfile": { | ||
"web": { | ||
"fqdn": "cluster1.clusterpool1.westus2.projecthilo.net" | ||
}, | ||
"ssh": [ | ||
{ | ||
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-0" | ||
}, | ||
{ | ||
"endpoint": "cluster1.clusterpool1.westus2.projecthilo.net/ssh/host/sshnode-1" | ||
} | ||
] | ||
}, | ||
"trinoProfile": {}, | ||
"sshProfile": { | ||
"count": 2, | ||
"podPrefix": "sshnode" | ||
}, | ||
"autoscaleProfile": { | ||
"enabled": true, | ||
"autoscaleType": "ScheduleBased", | ||
"gracefulDecommissionTimeout": 3600, | ||
"scheduleBasedConfig": { | ||
"defaultCount": 10, | ||
"timeZone": "Cen. Australia Standard Time", | ||
"schedules": [ | ||
{ | ||
"days": [ | ||
"Monday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 20 | ||
}, | ||
{ | ||
"days": [ | ||
"Sunday" | ||
], | ||
"startTime": "00:00", | ||
"endTime": "12:00", | ||
"count": 25 | ||
} | ||
] | ||
}, | ||
"loadBasedConfig": { | ||
"minNodes": 10, | ||
"maxNodes": 20, | ||
"pollInterval": 60, | ||
"cooldownPeriod": 300, | ||
"scalingRules": [ | ||
{ | ||
"actionType": "scaleup", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "greaterThan", | ||
"threshold": 90 | ||
} | ||
}, | ||
{ | ||
"actionType": "scaledown", | ||
"evaluationCount": 3, | ||
"scalingMetric": "cpu", | ||
"comparisonRule": { | ||
"operator": "lessThan", | ||
"threshold": 20 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "User", | ||
"createdAt": "2020-02-03T01:01:01.1075056Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2020-02-04T02:03:01.1974346Z" | ||
}, | ||
"location": "West US 2" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.