All Products
Search
Document Center

Function Compute (2.0):How do I ensure the normal responding of a function to a large number of invocations?

Last Updated:Dec 22, 2023

You can use the instance concurrency feature and provisioned instances to ensure that a function can normally respond to a large number of concurrent function invocations.

Background

For example, if you configure an Object Storage Service (OSS) trigger for a function in Function Compute, the function is triggered when objects are uploaded to OSS. Normal responding of the function must be guaranteed when a large number of objects are uploaded to OSS at the same time.

Solutions

To ensure that the function can respond normally, you must increase the number of requests that Function Compute can concurrently process. Configure the following items:

  • Enable the instance concurrency feature. For more information, see Configure instance concurrency.

  • Configure provisioned instances. For more information, see Configure provisioned instances and auto scaling rules. If you want to apply for more on-demand instances, join the DingTalk group 11721331 for technical support. The following table lists the default instance scaling speeds in different regions.

    Region

    Limits on burstable instances

    Limits on instance growth rate

    China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), and China (Shenzhen)

    300

    300 per minute

    Other

    100

    100 per minute