tencent cloud

Feedback

Quota Limits

Last updated: 2022-05-20 18:49:23

    SCF has certain quota limits for each user account.

    User Account Quota Limits

    Content Default Quota Limit
    Total function code size per region 100 GB
    Total concurrent function 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 a function package to adjust the quota.
    Number of functions per namespace 50

    Function Quota Limits

    Content Default Quota Limit
    Maximum code size (including bound layers) per function (version) before compression 500 MB
    Maximum number of same-type triggers per function 10
    Maximum environment variable size per function 4 KB
    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 ten COS triggers at most.
    • COS dimension: The same event and prefix/suffix rule of one function can trigger up to three functions, and one COS bucket can be bound to ten rules at most.

    Function Runtime Environment Limits

    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.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support