CU sizing reference

Updated at:

ES Serverless offers two application types: general-purpose and log analysis. The two application types have different computing power and unit prices due to their different technical architectures and intended scenarios. Billing for both is based on consumed compute units (CUs) for read/write operations and storage. One CU is roughly equivalent to the computing power of 1 core and 4 GB of memory. Unlike with self-managed machines, you avoid utilization overhead and can achieve 100% consumption of your provisioned CUs. You can estimate your usage based on your business data or refer to the examples in this document.

How CU limits work

Minimum and maximum CU limits serve different purposes for the two application types.

General-purpose:

Minimum limit: Determines the initial resource allocation and minimum cost for your application. A special 2-CU offer is available, providing an ideal starting point for new applications.

Maximum limit: Defines the maximum burst traffic the application can handle. This setting does not affect your bill, as you are only charged for the CUs you consume.

Log analysis:

Minimum limit: Determines the minimum cost for your application. By default, the minimum limit for query CUs is 5 CUs/hour, and the minimum for write CUs is 0 CUs/hour.

Maximum limit: With no default maximum limit, the application can scale on demand.

Setting CU limits

You do not need to configure limits for log analysis applications. The following guidance applies to general-purpose applications.

1. Quick estimate

If your current service is self-managed on ECS instances or on-premises servers, you can estimate your required CU quota by multiplying the total number of cores by the average CPU utilization. For example, if your service uses six 4-core machines running at 30% utilization, the estimated CU quota for a general-purpose application would be 4 × 6 × 30% = 7.2 CUs. We recommend setting a minimum limit of 2 CUs and a maximum limit between 8 and 10 CUs. You can set a high maximum limit, as it does not affect your bill.

2. Determine the minimum CU limit

When you create an application, set both the minimum and maximum CU limits to 2 CUs. Use this configuration to simulate your typical daily workload (non-peak traffic) to establish a baseline. If requests fail due to throttling, you will see an error message similar to this:

limited by {limiter_name}(xxxxxx_xxxxxxx) threshold:[{throttle_value}]

Consider the following actions:

  • Check if you can distribute the requests more evenly over time. For example, instead of sending a burst of traffic that peaks at 200 write QPS, adjust your client to maintain a steadier rate of 100 QPS.

  • If the throttling threshold does not increase after you raise the minimum CU limit, or if you observe in the console that total CU consumption is below the minimum limit when throttling occurs, submit a ticket for assistance.

  • Some throttling thresholds are fixed for configurations below 6 CUs. To rule this out, try setting the limit to 8 CUs to re-evaluate the baseline.

  • If you cannot adjust request concurrency and must avoid throttling, continue to increase the minimum CU limit.

Note

Ensure that your client-side application includes a request retry mechanism.

3. Determine the maximum CU limit

Set the minimum and maximum CU limits to the same value to simulate your peak workload. If no throttling occurs under this stable, high-traffic condition, this value is likely a suitable maximum limit.

If you encounter frequent throttling errors like the following:

limited by {limiter_name}(xxxxxx_xxxxxxx) threshold:[{throttle_value}]

Consider the following actions:

  • If you can control the traffic source, we recommend smoothing out traffic spikes. For example, during a bulk import, instead of sending a traffic burst that peaks at 10,000 QPS for one minute, spread the load over five minutes to maintain a lower, more consistent rate of 2,000 QPS.

  • If the requests are not latency-sensitive, your client-side application should implement an exponential backoff strategy to retry requests with increasing delays.

  • If you observe in the console that total compute unit consumption is less than half of the minimum CU limit when significant throttling occurs, submit a ticket for assistance.

  • If none of the above actions resolve the issue, increase the CU limit further.

  • The maximum CU limit does not affect your bill, so it is good practice to set a high value to accommodate future traffic growth.

4. Burst traffic

ES Serverless elastic applications continuously monitor key metrics such as resource utilization (including CPU, memory, and network) and response latency. When these metrics exceed optimal levels, the system proportionally provisions additional capacity to handle current and anticipated demand, while maintaining a buffer for unexpected spikes. However, this scaling process is not instantaneous. A sudden, massive workload increase can outpace the system's ability to provision new capacity. Additionally, the cluster requires time to scale up to the maximum CU limit.

  • If you can predict the timing of daily traffic spikes and find that the automatic scaling latency does not meet your real-time requirements, you can submit a ticket to request scheduled scaling. This feature allows you to pre-provision capacity for specific time periods.

  • If your application experiences unpredictable spikes and cannot tolerate throttling or retries, you should set the minimum CU limit high enough to handle the peak load without throttling.

5. Other related limits

During testing, you may encounter other types of throttling messages. Some of these limits are not affected by the CU quota. You can request adjustments for these limits directly in the console. For more information, see Application Quotas and Service Limits.

Modify CU limits

  1. Navigate to the App Management page in the console and click Quota Management. For instructions on how to access the console, see Serverless Quick Start.

  2. Search for the quota you want to modify and click Modify Quota.

  3. On the Modify Quota page, enter the Modification Content, Reason for Application, and Contact Information, then click OK.