Analyze the costs of elastic resources such as pay-as-you-go and preemptible instances across your cluster. The Auto Scaling Cost Analysis dashboard provides a multi-dimensional view of resource usage and cost distribution to help you evaluate scaling savings and optimize utilization.
Prerequisites
-
The
AliyunEMRManagedCostRoleservice role must be granted to EMR as prompted in the console.When you use the cost analysis feature for the first time, you must use your Alibaba Cloud account to grant this role.
-
A task node group that uses pay-as-you-go or preemptible instances must be created. For more information, see Create a custom auto scaling policy.
Usage notes
-
The cost analysis dashboard displays data with a one-day delay (T+1) because the previous day's billing data is calculated at 06:00 each day.
-
The cost statistics for individual node groups are estimates and may differ from your final bill, which reflects the actual cluster cost.
-
Cost analysis does not support node groups that use a saving plan.
Procedure
-
Go to the Auto Scaling page.
-
Log on to the EMR on ECS console.
-
In the top navigation bar, select a region and resource group based on your requirements.
-
Click the name of the target cluster.
-
On the page that appears, click the Auto Scaling tab.
-
-
Click Auto Scaling Cost Analysis.
This action opens the Auto Scaling Cost Analysis dashboard.
Feature
Description
Actual cost / List price
The cost metric for displayed data. Options:
-
PretaxAmount: The default option. This shows the payable amount for all cloud resources in the cluster.
-
PretaxGrossAmount: This shows the list price for all cloud resources in the cluster.
For more information about payable amounts and list prices, see Billing details.
Node Group
Filters the view to show the allocated cost for a specific node group. By default, data for all node groups is displayed.
NoteThis filter supports only task node groups with pay-as-you-go or preemptible instances. A node group is available in the filter only if it has billing data.
Select Time
The time range for dashboard data. Defaults to the last 7 days. Adjust this to analyze cost and resource trends over a different period.
Cost yesterday
Cost statistics for the elastic resources in the cluster.
Due to the one-day (T+1) delay in processing billing data, weekly cumulative cost is unavailable on Mondays, and monthly cumulative cost is unavailable on the first day of the month.
The percentage change in the cluster's cost compared to the previous day.
Cumulative cost this week (calendar week)
Cumulative cost this month (calendar month)
Day-over-day cost change
Cost trend chart
The cost trend over the selected time range.
Capacity trend chart
The trend of total vCPU cores in elastic nodes. This should correlate with the cost trend. If the two diverge, it may indicate a per-vCPU cost anomaly for that period—check whether more expensive resources were used.
Cost breakdown by node group
A breakdown of costs for each elastic node group.
Estimated cost savings if all nodes are preemptible instances
Estimates potential savings if all elastic nodes in the cluster were replaced with preemptible instances. Use this to optimize your resource mix and billing strategy.
-