All Products
Search
Document Center

Function Compute:Limits

Last Updated:Sep 25, 2023

This topic describes the limits on resources in Function Compute.

Important

This topic helps new users to prevent uncontrollable costs caused by incorrect configurations or code errors, such as cyclical invocations and infinite loops, in case they do not have a clear understanding of the function principles. If you want to increase the limits to meet your business requirements and you fully understand the function principles, join the DingTalk group 11721331 to contact the technical support.

If the provisioned mode is not properly used under the resource limits, extra costs may abruptly increase. For more information, see Instance modes.

Resource limits for services

ItemUpper limit
Functions per service50
Triggers per function10

Resource limits for function execution

ItemUpper limit (elastic instances)Upper limit (GPU-accelerated instances)
Temporary disk space10 GB10 GB
File descriptor100000100000
Total processes and threads10241024
Memory applied for a function32 GB32 GB
Function execution duration86400s86400s
Execution duration for an Initializer hook300s300s
Request payload size of a synchronous invocation32 MB32 MB
Request payload size of an asynchronous invocation128 KB128 KB
Code package size (ZIP or JAR file)500 MBN/A
Source code size10 GBN/A
Bandwidth1 Gbit/s to 5 Gbit/s1 Gbit/s to 5 Gbit/s
Size of a log32 KB32 KB

Layer limits

ItemUpper limit (elastic instances)Upper limit (GPU-accelerated instances)
Layer size500 MB500 MB
Number of layer versions100100
Number of layers for a single function55
Total size of layers for a single function2 GB2 GB

Resource limits for an account per region

ItemUpper limit
Total size of deployment packages that can be uploaded100 GB
On-demand instances300
Note If you need more on-demand instances, join the DingTalk group 11721331 to contact the technical support.
Number of requests that can be concurrently processed by an instance1~200

Limits on accessing other Alibaba Cloud services or resources

If the Function Compute service in your region is allowed to access resources in a virtual private cloud (VPC), the following network limits exist when a function accesses other Alibaba Cloud services or resources.

  • You cannot use the internal IP address of an Elastic Compute Service (ECS) instance in the classic network to access the resources, such as web services and file systems, on the ECS instance. You must use the public IP address to access the resources or migrate the resources to a VPC.
  • You cannot use the internal IP address in the classic network to access an ApsaraDB RDS instance. You must use the public IP address to access an ApsaraDB RDS instance or migrate the ApsaraDB RDS instance to a VPC.
  • You cannot access an Alibaba Cloud service by using its internal endpoints. You must use a VPC endpoint or a public endpoint that is provided by the Alibaba Cloud service.