All Products
Search
Document Center

E-MapReduce:Pay-as-you-go

Last Updated:Dec 12, 2025

Pay-as-you-go is a billing method where you pay for resources after you use them. You do not need to purchase resources in advance. You are billed based on the actual resource usage of your workspace.

Notes

EMR Serverless Spark resources use the pay-as-you-go billing method. During peak hours, resource preemption may occur, and the timely availability of these resources is not guaranteed.

Pay-as-you-go details

Attribute

Description

Scenarios

Pay-as-you-go is ideal for the following business scenarios:

  • Business usage that changes frequently.

  • Resource usage that is temporary or has sudden bursts.

Billing rules

Your bill for a one-hour cycle is the cost of resources consumed for computation. The cost is calculated by converting the total resources used in the cycle into CU-hours and then multiplying by the hourly unit price for the region.

Compute resource cost: CU usage within 1 hour × Hourly unit price for the region.

Within a single hour, if the ratio of CPU cores to memory (in GB) consumed by the workspace is between 1:2 (inclusive) and 1:3 (exclusive), you receive a 20% discount when the usage is converted to CUs.

For example, a Spark job has the following resource configuration.

spark.driver.cores 1
spark.driver.memory 1g
spark.driver.memoryOverhead 1g

spark.executor.cores 1
spark.executor.memory 1g
spark.executor.memoryOverhead 1g
spark.executor.instances 2

The job uses 3 cores and 6 GB of memory per minute. Over one hour, this amounts to 180 core-minutes and 360 GB-minutes. Based on the formula max(180/1, 360/4), the usage is converted to 180 CU-minutes. Because the CPU-to-memory ratio is 1:2, a 20% discount is applied.

180 CU-minutes × 0.8 = 144 CU-minutes. This is equivalent to 2.4 CU-hours. Therefore, the total cost for one hour is 2.4 CU-hours × Hourly unit price for the region. For the unit prices in different regions, see Unit prices by region.

Important
  • The preceding formula calculates the cost for a single EMR Serverless Spark workspace. If you have multiple workspaces in your account, the total cost for all workspaces is calculated at settlement.

  • Billing starts when the container runtime begins. The initialization for the Spark driver and executors occurs after the container starts. Therefore, the CU duration calculated from the runtime shown in the Spark UI may differ from the actual billed CU duration. Your final bill is the authoritative source for charges.

Billing cycle

Costs are calculated on the hour, every hour (UTC+8). A new billing cycle begins after each calculation. At the end of each billing cycle, the system generates a bill and deducts the fee from your account.

There may be a delay between actual resource consumption and the data appearing on your bill.

Unit prices by region

The following tables list the prices for workspaces in different regions.

Important

For official pricing, see the product purchase page.

  • China

    Region

    Unit price (USD/CU-hour)

    China (Beijing)

    China (Shanghai)

    China (Hangzhou)

    China (Shenzhen)

    0.050302

    China (Hong Kong)

    0.074048

  • Other countries and regions

    Region

    Unit price (USD/CU-hour)

    Indonesia (Jakarta)

    0.067106

    Germany (Frankfurt)

    0.064792

    Singapore

    0.067106

    US (Virginia)

    0.053801

    US (Silicon Valley)

    0.053801

    Japan (Tokyo)

    0.069420

    Mexico

    0.051220