When you view the total serverless compute units used, the meter is based on the number of serverless compute units that your organization uses to run tasks.
When the serverless runtime environment runs a task, the environment creates a virtual machine with resources based on the number of compute units that the task requests.
The minimum task duration is two minutes. If the task completes in less than two minutes, the serverless runtime environment consumes two minutes of compute units. After two minutes, compute units are consumed by the second.
If you cancel the job, the number of consumed compute units is the greater of the following values:
The time that the job was running before it was canceled
Two minutes
Guidelines for
advanced clusters
To run a mapping in advanced mode, the serverless runtime environment creates an
advanced cluster
that contains one worker node with resources based on the number of serverless compute units that the task requests. If you run another task, the environment reuses idle worker nodes or adds worker nodes to the cluster to reserve additional resources.
Metering begins when the task starts running and ends when the task is complete. Metering doesn't include the time to compile the job or the time to start the cluster.
Metering doesn't take effect if the job fails before the cluster has been created, such as when the job fails to compile, the cluster fails to start, or you cancel the job before the cluster starts.