Ocean Automatic Rightsizing
Create Ocean Rightsizing Rule
Changed onpost/ocean/{oceanId}/rightSizing/rule
Request
- Base URLhttps://api.spotinst.io
- URLhttps://api.spotinst.io/ocean/{oceanId}/rightSizing/rule
- AuthHTTP bearer
Parameters
#/paths/~1ocean~1%7BoceanId%7D~1rightSizing~1rule/get/parameters/0 (unresolved $ref)
#/paths/~1azure~1costs/get/parameters/0 (unresolved $ref)
Request body
Example request
{
"ruleName": "dev-rule",
"restartReplicas": "ALL_MANIFEST",
"recommendationApplicationIntervals": [
{
"repetitionBasis": "WEEKLY",
"weeklyRepetitionBasis": {
"intervalDays": [
"MONDAY",
"WEDNESDAY"
],
"intervalHours": {
"startTime": "12:00",
"endTime": "14:00"
}
}
},
{
"repetitionBasis": "MONTHLY",
"monthlyRepetitionBasis": {
"intervalMonths": [
2,
4,
6
],
"weekOfTheMonth": [
"FIRST",
"LAST"
],
"weeklyRepetitionBasis": {
"intervalDays": [
"MONDAY"
],
"intervalHours": {
"startTime": "03:00",
"endTime": "04:00"
}
}
}
}
],
"recommendationApplicationMinThreshold": {
"cpuPercentage": 0.412,
"memoryPercentage": 0.36
},
"recommendationApplicationBoundaries": {
"cpu": {
"max": 100
},
"memory": {
"min": 1,
"max": 80
}
},
"recommendationApplicationOverheadValues": {
"cpuPercentage": 0.8,
"memoryPercentage": 0.5
},
"recommendationApplicationHPA": {
"allowHPARecommendations": true
},
"autoApplyDefinition": {
"enabled": true,
"namespaces": [
"namespace1",
"namespace2",
"namespace3"
],
"labels": {
"app": "my-app",
"environment": "production"
}
},
"cpuPercentile": 95,
"memoryPercentile": 90
}Changes
- info
added the new
IN_PLACE_OR_RECREATEenum value to the request property/
- info