All Products
Search
Document Center

Function Compute:ProvisionConfig

Last Updated:Jul 30, 2026

Parameter

Type

Description

Example

object

The function provisioned configuration.

alwaysAllocateCPU

boolean

Specifies whether to always allocate CPU to function instances.

true

alwaysAllocateGPU

boolean

Specifies whether to always allocate GPU to function instances.

true

current

integer

The actual number of resources.

1

currentError

string

The error message when provisioned instance creation fails.

image not found

functionArn

string

The resource descriptor of the function.

acs:fc:cn-shanghai:124:functions/myFunction/prod

scheduledActions

array

The scheduled scaling policy configurations.

ScheduledAction

The scheduled scaling policy.

target

integer

The current target number of resources. If a metric-based scaling policy or scheduled scaling policy exists, this value is the number of resources calculated by the policy. Otherwise, it is the default number of provisioned instances.

Note

What is the difference between target and defaultTarget?
Assume that the number of provisioned instances is configured as 1, and then a scheduled scaling policy is added to set the number of provisioned instances to 5 during a specific time period.

  • During the active period of the scheduled scaling policy, target and defaultTarget are 5 and 1, respectively.

  • During the inactive period of the scheduled scaling policy, both target and defaultTarget are 1.

5

targetTrackingPolicies

array

The metric-based scaling policy configurations.

TargetTrackingPolicy

The metric-based scaling policy.

defaultTarget

integer

The default number of resources when all metric-based scaling policies and scheduled scaling policies are inactive.

5