Cluster Right-Sizing Recommendation API
Cluster Right-Sizing Recommendation API
GEThttp://<your-kubecost-address>/model/savings
Kubecost's Cluster Right-Sizing Recommendation API can monitor the resource utilization of your clusters and offer cost-effective right-sizing solutions.
| Name | Required | Type | Description |
|---|---|---|---|
| window | false | string | Duration of time over which to query. Accepts multiple different formats of time (see this Using the window parameter section for more info). |
| targetUtilization | false | float in the range (0, 1) | Target CPU/RAM utilization which parallels environment profiles. For reference, Development should equal .80, Production should equal .65, and High Availability should equal .5. Also supports custom values within the range. |
|
minNodeCount |
false |
int |
Minimum node count to be recommended which parallels environment profiles. For reference, Development should equal |
|
allowSharedCore |
false |
boolean |
Whether you want to allow shared core node types to be included in your recommendation. Accepts |
|
architecture |
false |
string |
Accepts |
| Code | Description | Example |
|---|---|---|
| 200 | OK |
|
Examples
Receive right-sizing recommendations taking into account cluster activity for the past two weeks, and ideal CPU and RAM utilization for a high availability environment.
http://<your-kubecost-address>/savings/clusterSizingETL?range=2w&targetUtilization=.5&minNodeCount=3&allowSharedCore=false&architecture=x86
Receive recommendations taking into account AWS cluster activity for the past five days, ideal CPU and RAM utilization for a production environment, and allowing shared cores.
http://<your-kubecost-address>/savings/clusterSizingETL?range=5d&targetUtilization=.65&minNodeCount=2&allowSharedCore=true&architecture=ARM
Adopting cluster right-sizing recommendations
The Cluster Right-Sizing Recommendation API is not able to directly implement its recommendations. To adopt right-sizing recommendations for your cluster(s), view this section of our Cluster Right-Sizing doc.