This topic describes how to create and modify provisioned instances in the Function Compute console.

Prerequisites

Before you begin, make sure that the following operations are complete:

Procedure

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Services and Functions. In the Services pane, click the service that you require.
  4. On the Services and Functions page, click the service that you require. Then, click the Provisioned Resources tab. On the Provisioned Resources tab, click Provision Instances.
    Create provisioned resources
  5. In the Provisioned Instances dialog box, set the parameters and click OK.
    reserved-mode-instances
    Note You cannot create provisioned instances for the LATEST version. You must create a version and an alias before you create provisioned instances. For more information, see Manage aliases.
    Parameter Description
    Service Alias The alias of the service to which the function that you want to use the provisioned instances to execute belongs.
    Function Name The function that you want to use the provisioned instances to execute.
    Reserved Instances The number of provisioned instances to be created.
    Note You can set this parameter based on the number of instances in use, which is displayed in the Number of Instances section in the Provisioned Instances dialog box.
    Configuration Method

    Select a configuration method as needed. You can view the chart that displays the number of instances that are being used to execute the function based on different configuration methods.

    • Simple Configuration: If you can make full use of provisioned instances and the number of provisioned instances does not fluctuate greatly, you can select Simple Configuration.
    • Scaling Configuration: Select an auto scaling type of provisioned instances as needed to make better use of provisioned instances.
      • Scheduled Scaling: You can configure scheduled auto scaling to flexibly configure provisioned instances. You can configure the number of provisioned instances to be automatically adjusted to a specified value at a specified time. This way, the number of provisioned instances can meet the concurrency of your business.
        • Policy Name: Enter a custom policy name.
        • Effective Time: Set the time when the configuration of scheduled auto scaling starts to take effect and the time when the configuration of scheduled auto scaling expires.
        • Provisioned Quantity: Enter the number of provisioned instances as needed.
        • Schedule Expression: Enter the scheduled expression that specifies when to perform scheduling. Two formats are supported. For more information, see the Parameters table in the "Scheduled auto-scaling" section of the Auto-scaling of reserved instances topic.
      • Metric Tracking Scaling: Provisioned instances are scaled in or out every minute based on the concurrency utilization of provisioned instances.
        • Policy Name: Enter a custom scheduled task name.
        • Effective Time: Set the time when the configuration of metric tracking auto scaling starts to take effect and the time when the configuration of metric tracking auto scaling expires.
        • Metric Type: Select the type of the metric to be tracked from the drop-down list.
        • Target Metric Value: Set the expected usage rate. If the usage rate is lower than the value of this parameter, the system scales in provisioned instances. If the usage rate is higher than the value of this parameter, the system scales out provisioned instances.
        • Scaling Range: Set the Min Provisioned Instances and Max Provisioned Instances parameters as needed.
    You can view the created provisioned instances on the Provisioned Resources tab.result-provision-source

Change the number of provisioned instances

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Services and Functions.
  4. In the Services pane, click the service that you require.
  5. Click the Provisioned Resources tab. On the Provisioned Resources tab, find the function that you require.
  6. Click Edit in the Actions column.
  7. In the Provisioned Instances dialog box, change the value of the Reserved Instances parameter and click OK.
    Note To delete provisioned instances, set the Reserved Instances parameter to 0.