Quota Limits

Last updated: 2023-09-27 17:13:38

For each user account, the SCF has a certain quota limit.

User Account Quota Limits

Content
Default Quota Limit
Total function code size per region
100GB
Total function concurrency quota per region
128,000 MB(Guangzhou, Shanghai, Beijing, Chengdu, and Hong Kong (China))
64,000 MB(Mumbai, Singapore, Tokyo, Toronto, Silicon Valley, Frankfurt, Shenzhen Finance, and Shanghai Finance)
Number of namespaces per region
5
Total concurrent function quota per namespace
You can purchase function packages to adjust the quota.
Number of functions per namespace
50

Function Quota Limits

Content
Default Quota Limit
Function name length limit
60 characters, the total character length of the namespace name + function name should not exceed 118.
Maximum code size (including bound layers) per function (version) before compression
500MB
Maximum number of same-type triggers per function
10
Maximum environment variable size per function
4KB
Number of layer versions bound to one function version
5

Layer Quota Limits

Content
Default Quota Limit
Number of layers per region
20
Number of versions per layer
200
Note:
SCF currently supports one million MB-level concurrency, which can effectively support scenarios with high concurrency demand such as ecommerce promotions and parallel processing of medical and biological data.
The concurrency quota per region on the SCF platform is shared by all functions by default. You can customize the function concurrency to meet your actual needs. If you want to increase the quotas or add concurrency quota management capabilities at the namespace granularity, you can directly purchase a function package.
In SCF, a COS trigger has limits in two dimensions: SCF and COS, as detailed below:
SCF dimension: one function can be bound to 10 COS triggers at most.
COS dimension: Only one function can be bound to the same event and prefix/suffix rules in a single COS bucket.

Function Runtime Environment Limits

Content
Quota Limit
Allocated memory
Minimum: 64 MB, maximum: 3,072 MB, in increments of 128 MB starting from 128 MB
Temporary cache space; i.e., size of the /tmp directory
512MB
Timeout period
Minimum: 1 second, maximum: 900 seconds
Number of file descriptors
1024
Total processes and threads
1024
Sync request event size
6MB
Sync request response size
6MB
Async request event size
128KB
Note
If the size of a Base64-encoded file is below 6 MB, you can pass the encoded file to SCF through API Gateway. Otherwise, we recommend you upload the file to COS and pass the object address to SCF first. Then, SCF will pull the file from COS to complete the upload.