Skip to main content

Service Configuration

Basic Configuration

Memory Configuration

  • Note: The maximum memory limit of the cloud function runtime
  • Default value: 256MB
  • Optional range: 128MB - 2048MB

Timeout Period

  • Note: The maximum running time of a function. The function will be forcibly terminated upon timeout.
  • Default value: 20 seconds
  • Optional range: 1 second - 900 seconds

||||

Frequency Limit Configuration

Cloud function supports configuring access frequency limits, helping you control the invocation frequency of functions to prevent malicious calls and resource abuse.

  • Frequency Limit Rules: The maximum number of invocations can be set per second, per minute, or per hour.
  • Frequency Limit Policy: Supports rate limiting control based on dimensions such as IP and user ID.
  • Exceeding Limit Handling: When the invocation frequency exceeds the limit, the system will return an error message.
Tip

Properly configuring frequency limit rules can effectively protect your cloud function from malicious attacks while controlling costs. For detailed configuration methods, see: Frequency Limit Feature Configuration Guide.

Provisioned Function Concurrency

Provisioned Concurrency is an advanced feature of cloud function that pre-launches a specified number of function instances, effectively resolving cold startup issues:

Features

  • Elimination of cold startup: Provisioned instances remain operational at all times, allowing requests to be processed immediately upon arrival.
  • Performance improvement: Eliminates instance startup time and significantly improves response speed.
  • Cost optimization: Billed based on the running time of provisioned instances, suitable for high-frequency access scenarios.

Configuration Method

    1. On the cloud function details page, select the "Provisioned Concurrency" tab.
    1. Set the number of provisioned concurrency instances.
    1. Configure the version or alias for provisioned concurrency.
    1. Click "Save" to complete the configuration.
Tip
  • Provisioned Concurrency is suitable for scenarios with stable access volume and high requirements for response time.
  • Provisioned instances are billed continuously. Please configure the quantity appropriately based on actual business needs.