Skip to content

Commit

Permalink
change cluster json file to support the autoscale feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoning Gao committed Jun 12, 2019
1 parent 917b67e commit a1be505
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,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": {
"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": {
"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": {
"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": {
Expand Down Expand Up @@ -710,6 +794,11 @@
"format": "int32",
"description": "The instance count of the cluster."
},
"autoscale": {
"$ref": "#/definitions/Autoscale",
"x-ms-client-name": "autoscaleConfiguration",
"description": "The autoscale configurations."
},
"hardwareProfile": {
"$ref": "#/definitions/HardwareProfile",
"description": "The hardware profile."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
}
},
"200": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,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": {
"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": {
"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": {
"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": {
Expand Down Expand Up @@ -710,6 +794,11 @@
"format": "int32",
"description": "The instance count of the cluster."
},
"autoscale": {
"$ref": "#/definitions/Autoscale",
"x-ms-client-name": "autoscaleConfiguration",
"description": "The autoscale configurations."
},
"hardwareProfile": {
"$ref": "#/definitions/HardwareProfile",
"description": "The hardware profile."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
}
},
"200": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
}
}
}
}

0 comments on commit a1be505

Please sign in to comment.