SCF has certain quota limits for each user account.
The quota limits for each user account are as follows:
Item | Default Quota Limit |
---|---|
Maximum number of functions per namespace per region | 50 |
Total function concurrency quota per region | 128,000 MB |
Maximum number of triggers per function | 10 |
Maximum number of same-type triggers per function | 10 |
Maximum code size (including bound layers) per function (version) | 500 MB |
Total function code size per region | 100 GB |
Maximum environment variable size per function | 4 KB |
Note:
- SCF currently supports 10,000-level concurrency, which can effectively support scenarios with high concurrency demand such as ecommerce promotions and parallel processing of medical and biological data.
- The total function concurrency quota per region on the SCF platform is 128,000 MB, which is shared by all functions by default. You can customize the concurrency for specific functions to meet your actual needs. To request an increase in the quota, please submit a ticket to apply.
The limits for the function runtime environment are as follows:
Item | 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 |
512 MB |
Timeout period | Minimum: 1 second, maximum: 900 seconds |
Number of file descriptors | 1,024 |
Total processes and threads | 1,024 |
Sync request event size | 6 MB |
Sync request response size | 6 MB |
Async request event size | 128 KB |
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.
Currently, the limits that can be increased include:
To increase the limits, please submit a ticket and state the items you want to increase and to what quantities you want to increase them to.
Was this page helpful?