Serverless Containers pricing policy
To calculate the cost of using the service, see the prices in this section.
What goes into the cost of using Serverless Containers
In Serverless Containers, you pay for the number of container invocations, computing resources allocated for the application, downtime of provisioned instances, and outgoing traffic.
Computing resources are billed based on the number of processor cores (vCPUs), the level of core performance, memory allocated for the application, and application running time:
- The number of cores specified when creating a revision is measured in vCPUs and is a positive real number.
- The core performance level specified when creating a revision is measured in %.
- The memory size specified when creating a revision is measured in GB.
- The total container time is measured in hours and is rounded up to a multiple of 100 ms.
Warning
You are only charged for the container invocations that have caused your application to run.
Pricing formula
Monthly cost = $0.025600 × Memory (GB) × Invocation processing time (Hours) + $0.038400 × Number of cores × Invocation processing time (Hours) + $0.128000 × Millions of invocations
The following is offered at no extra charge each month:
- The first 1000000 container invocations.
- The first 10 GBxhour of RAM usage when processing requests.
- The first 5 vCPU×hour of RAM usage when processing requests.
After you spend the free amount of services, you will be charged at the applicable rate. The unused balance of free services is reset at the end of the month.
Examples of cost calculation
Example of calculating the cost of a container with the following parameters:
- Amount of memory specified when creating a revision: 2 GB.
- Number of cores: 20% vCPU.
- Number of container invocations: 3,000,000.
- Execution time of each invocation: 150 ms.
$0.025600 × (2 × (150 / 3,600,000) × 3,000,000 – 10) + $0.038400 × (0.2 × (150 / 3,600,000) × 3,000,000 – 5) + $0.128000 × ((3,000,000 – 1,000,000) / 1,000,000)
Total: $7.168000
Where:
- $0.025600: Price per 1 GB×hour in excess of 10 GB×hour per month.
- 2: Amount of RAM.
- 150 / 3,600,000 converts milliseconds to hours, as RAM usage time is calculated in GB×hour.
- 3,000,000: Number of container invocations.
- 10: RAM usage time free of charge.
- $0.038400: Price per 1 hour of CPU usage in excess of 5 vCPUs × hour per month.
- 0.2: Number of vCPU cores.
- 150 / 3,600,000 converts milliseconds to hours, as CPU usage time is calculated in GB×hour.
- 3,000,000: Number of container invocations.
- 5: CPU usage time free of charge.
- $0.128000: Price per 1 million container invocations in excess of 1 million per month.
- 3,000,000: Number of container invocations.
- 1,000,000: Subtracted because the first million calls are free of charge.
- 1,000,000: Divisor to calculate the number of millions of container invocations.
Example of calculating the cost of a container with the following parameters:
- Amount of memory specified when creating a revision: 2 GB.
- Number of cores: 100% vCPU.
- Number of container invocations: 3,000,000.
- Execution time of each invocation: 150 ms.
$0.025600 × (2 × (150 / 3,600,000) × 3,000,000 – 10) + $0.038400 × (1 × (150 / 3,600,000) × 3,000,000 – 5) + $0.128000 × ((3,000,000 – 1,000,000) / 1,000,000)
Total: $11.008000
Where:
- $0.025600: Price per 1 GB×hour in excess of 10 GB×hour per month.
- 2: Amount of RAM.
- 150 / 3,600,000 converts milliseconds to hours, as RAM usage time is calculated in GB×hour.
- 3,000,000: Number of container invocations.
- 10: RAM usage time free of charge.
- $0.038400: Price per 1 hour of CPU usage in excess of 5 vCPUs × hour per month.
- 1 : Number of vCPU cores.
- 150 / 3,600,000 converts milliseconds to hours, as CPU usage time is calculated in GB×hour.
- 3,000,000: Number of container invocations.
- 5: CPU usage time free of charge.
- $0.128000: Price per 1 million container invocations in excess of 1 million per month.
- 3,000,000: Number of container invocations.
- 1,000,000: Subtracted because the first million calls are free of charge.
- 1,000,000: Divisor to calculate the number of millions of container invocations.
Prices for the Russia region
Warning
Prices for Yandex Cloud resources vary from region to region. For more information about the available regions, see Regions.
The currency that can be used to pay for resources depends on which legal entity the user has entered into agreement with. For more information about account registration, see Registering an account in Yandex Cloud.
Invoking a container
Service | Cost of 1 million invocations, without VAT |
---|---|
Invoking a container, <1 million invocations per month | Free |
Invoking a container, >1 million invocations per month | $0.128000 |
RAM usage time when processing requests
Service | Price per GB×hour, without VAT |
---|---|
RAM usage time, 10 GB×hour or less per month | Free |
RAM usage time, over 10 GB×hour per month | $0.025600 |
CPU usage time when processing requests
Service | Cost per vCPU×hour, without VAT |
---|---|
CPU usage time, 5 vCPU×hour or less per month | Free |
CPU usage time, over 5 vCPU×hour per month | $0.038400 |
Provisioned instances
RAM usage time
Service | Cost per GB×hour, without VAT |
---|---|
RAM usage time during downtime of a provisioned instance | $0.005520 |
RAM usage time when processing queries in a provisioned instance | $0.010560 |
CPU usage time
Service | Cost per vCPU per hour, without VAT |
---|---|
CPU usage time during downtime of a provisioned instance | $0.008240 |
CPU usage time when processing queries in a provisioned instance | $0.015840 |
Outgoing traffic
When using the service, you pay for traffic from Yandex Cloud to the internet. Traffic between internal IP addresses of Yandex Cloud services and incoming internet traffic is free.
The first 100 GB of outgoing traffic are provided free of charge every month.
The minimum billing unit is 1 MB.
Resource category | Cost of 1 GB, without VAT |
---|---|
Outgoing traffic, 100 GB or less per month | Free |
Outgoing traffic, over 100 GB per month | $0.012240 |