All Products
Search
Document Center

E-MapReduce:Auto Scaling Cost Analysis

Last Updated:Jul 17, 2026

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 AliyunEMRManagedCostRole service 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

  1. Go to the Auto Scaling page.

    1. Log on to the EMR on ECS console.

    2. In the top navigation bar, select a region and resource group based on your requirements.

    3. Click the name of the target cluster.

    4. On the page that appears, click the Auto Scaling tab.

  2. 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.

    Note

    This 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.

FAQ

Why is no data displayed on the cost analysis dashboard?

  • Ensure the AliyunEMRManagedCostRole RAM role is granted.

  • Cost data appears starting from 06:00 on the day after the role is granted. The Day-over-day cost change appears only after two consecutive days of cost data are collected.

Why are the weekly or monthly cumulative costs lower than my actual charges?

The system begins calculating costs for elastic resources only after the role is granted, so the statistics do not include costs incurred before that time.