This topic describes the limits on resources in Function Compute.
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 are familiar with the function principles and you want to increase the resource limits, submit a ticket.
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
|Functions per service||50|
|Triggers per function||10|
Resource limits for function execution
|Item||Upper limit (elastic instances)||Upper limit (GPU-accelerated instances)|
|Temporary disk space (/tmp)||10 GB||10 GB|
|Total processes and threads||1024||1024|
|Memory applied for a function||16 GB||32 GB|
|Function execution duration||86400s||86400s|
|Execution duration for an Initializer hook||300s||300s|
|Request payload size of a synchronous invocation||16 MB||16 MB|
|Request payload size of an asynchronous invocation||128 KB||128 KB|
|Code package size (ZIP or JAR file)||500 MB||N/A|
|Source code size||10 GB||N/A|
|Bandwidth||1 Gbit/s to 5 Gbit/s||1 Gbit/s to 5 Gbit/s|
|Size of a log||32 KB||32 KB|
Resource limits for an account per region
|Total size of deployment packages that can be uploaded||100 GB|
Note If you need more on-demand instances, Submit a ticket.
|Number of requests that can be concurrently processed by an instance||1~100|
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.