The cost optimization check scans your ACK cluster for idle cloud resources and workloads with missing resource configurations. After the check, act on flagged items directly from the results page or go to the corresponding service console.
What gets checked
Idle resources
The check inspects four resource types for idle conditions:
| Resource | Flagged when |
|---|---|
| Elastic Compute Service (ECS) instance | Has a cluster label but does not belong to the cluster |
| Elastic Block Storage (EBS) device | Not attached to any node in the cluster; the node it is attached to is idle; or attached to cluster resource tags but not to any resource object in the cluster |
| Classic Load Balancer (CLB) instance | In the Stopped state; no backend server is associated; the total weight of all associated backend servers is 0; no listener is configured; or all listeners are in the Stopped state |
| Elastic IP address (EIP) | The associated node is idle; the associated Server Load Balancer (SLB) instance is idle; or not associated with any resources |
Workloads with missing resource configurations
Kubernetes schedules pods based on resource requests. Without CPU and memory requests, the scheduler cannot guarantee resource availability, which can lead to pod evictions under node pressure and inefficient cluster utilization.
The check flags workloads that are missing either of the following:
-
CPU request or limit
-
Memory request or limit
Prerequisites
Before you begin, make sure you have:
-
An ACK managed cluster or ACK dedicated cluster. To create one, see Create an ACK managed cluster or Create an ACK dedicated cluster (discontinued)
Run a check
Running a cost optimization check initiates a cluster inspection. You can also view the results on the Cluster Inspections page.
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
Click the name of the target cluster. In the left-side pane, choose Cost Suite > Cost Optimization.
-
On the Cost Optimization page, click the Cost Optimization Check tab, then click Check.
View and act on results
On the Cost Optimization Check tab, the results of the most recent check appear automatically.
Idle Resource Optimization results — In the Actions column, click Handle next to a flagged resource. The corresponding service console opens so you can manage the idle resource.
Improper Workload Resource Configuration Optimization results — In the Actions column, click Recommended Resource Configuration next to a workload. The Resource Profiling page opens with usage analysis and recommended CPU and memory values. Upgrade or downgrade the workload specifications based on the analysis. For details, see Resource profiling.
To review previous check runs, click Historical Checks on the Cost Optimization Check page to view historical check results and take actions based on the results.