Pay as you go
Pay as you go (PAYG): A pricing model in which the user pays for actual usage of resources or services.
Yandex Cloud uses the PAYG model.
Unlike fixed-fee billing, the PAYG model has you pay for resources as you use them, rather than making pre-payments through periodic charges.
PAYG model advantages
-
Usage flexibility: Pay only for the resources actually used, with no minimum volume commitments.
-
Resource scalability: You can change the volume of resources depending on current needs.
-
Billing transparency: You get usage details for each resource type for precise cost control.
How PAYG works in Yandex Cloud
In Yandex Cloud Billing, the following are recorded:
- Resource runtime.
- Updating properties.
- Actual usage of each resource type.
The PAYG model is used to calculate the cost of certain resources of billable Yandex Cloud services, e.g.:
- Cloud DNS: Fee for hosting public zones and processing DNS queries.
- Monitoring: Fee for writing and reading user metrics.
- Data Transfer: Fee for the volume of transferred data and the transfer's compute resources.
- Yandex Serverless Containers: Fee for the number of queries, execution time, and memory consumed.
Example of cost calculation under PAYG and fixed-fee billing
Let's compare the cost of using resources for periodic data processing under the PAYG billing model and under the fixed-fee model.
Let's assume periodic data processing is required. The processing takes up to 20 hours per month. Uses the following configuration:
- Virtual machine (VM) with 4 × 100% vCPUs and 16 GB of RAM.
- A disk of
100 GB.
Calculation for the PAYG model
Compute resources (vCPUs and RAM) are only billed while the VM is running. When the VM is turned off, the vCPUs and memory are not used, so no charge is incurred for them.
VM cost calculation:
20 × (4 × $0.0101639328 + 16 × $0.0027049176) = $1.678688256
Where:
- 20: Data processing time, in hours.
- 4: Number of 100% vCPUs.
- $0.0101639328: Cost of using 100% vCPU per hour.
- 16: Amount of RAM (GB).
- $0.0027049176: Cost of using 1 GB of RAM per hour.
Disk space is billed continuously. The data on the disk is retained regardless of whether the VM is running. Disk space is billable as long as the disk exists.
Disk usage cost calculation:
720 × 100 × $0.0001877049 = $13.5147528
Where:
- 720: Number of hours in 30 days.
- 100: Disk size in GB.
- $0.0001877049: Cost of using 1 GB of disk per hour.
Total: $15.193441056, cost of using a VM with 4 × 100% vCPUs and 16 GB of RAM for 20 hours, including disk usage.
When the VM is stopped, you pay only for storing data on the disk.
Calculation for the fixed-fee model
With fixed-fee billing, the cost of using the resources will not change if the VM is stopped.
VM cost calculation for fixed-rate billing:
720 × (4 × $0.0101639328 + 16 × $0.0027049176) = $60.432777216
Where:
- 720: Number of hours in 30 days.
- 4: Number of 100% vCPUs.
- $0.0101639328: Cost of using 100% vCPU per hour.
- 16: Amount of RAM (GB).
- $0.0027049176: Cost of using 1 GB of RAM per hour.
Disk usage cost calculation:
720 × 100 × $0.0001877049 = $13.5147528
Where:
- 720: Number of hours in 30 days.
- 100: Disk size in GB.
- $0.0001877049: Cost of using 1 GB of disk per hour.
Total: $73.947530016, cost of using a VM with 4 × 100% vCPU and 16 GB of RAM for 30 days, including disk usage.
Under the PAYG model, the cost of usage is significantly lower.
Cost management
To manage your costs:
- Set up spending notifications.
- Set up spending notifications.