All Products
Search
Document Center

Function Compute:ProvisionConfig

Last Updated:Dec 19, 2025
ParameterTypeDescriptionExample
object

public

scheduledActionsarray

public

ScheduledAction

Specifies whether to always allocate GPU resources to function instances.

currentErrorstring

public

image not found
defaultTargetlong

public

5
currentlong

public

1
alwaysAllocateCPUboolean

The target number of provisioned instances at the current time. If a metric-based or scheduled auto scaling policy is in effect, the value of this parameter is the number of provisioned instances as calculated by the policy. Otherwise, the value is the default number of provisioned instances when all auto scaling policies become invalid.

Note Comparison between this parameter and defaultTarget
Assume that after the number of provisioned instances is set to 1, a scheduled auto scaling policy is added, and this auto scaling policy increases the number of provisioned instances during a specified time period to 5.
  • During the time period when the scheduled policy takes effect, the value of the target parameter is 5, while the value of the defaultTarget parameter is 1.

  • When the scheduled policy is ineffective, both the target value and defaultTarget value are 1.

true