Open In App

Pricing | Cloud SQL for PostgreSQL

Last Updated : 01 Oct, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Cloud SQL for PostgreSQL pricing is based on several components, including instance type, storage, network egress, and backups. Costs are determined by the number of vCPUs, memory, and disk types with additional charges for storage and network usage.

In this article contains basic information about Cloud SQL for PostgreSQL, its pricing model, setup syntax and examples.

Cloud SQL for PostgreSQL Pricing Model

The pricing for Cloud SQL for PostgreSQL is determined by the following components:

  • Instance Type: It depends on the quantity of the number of the vCPUs, the memory size and the type of disk.
  • Storage: It has an ‘opEx’ model which means it is priced according to the storage space that is committed and utilized.
  • Network Egress: It applies an outbound connectivity pricing model, whereby costs are founded on the total data volume that is transmitted from a given cloud.
  • Backups and Replication: Further costs include the cost of the backup and replication of the environment for auto backup and to support availability.

Cloud SQL Pricing Components

1. CPU and Memory Pricing

Another aspect is that Cloud SQL allows us to use our instance can have a variable number of vCPUs and RAM for our application needs. That means, the more vCPUs and memory amount defined, the higher price for utilizing this service.

  • vCPUs: Virtual CPUs are billed correspondingly to the count of used cores. We can choose anywhere from a set of one vCPU for Small instances to multiple cores for large instances.
  • Memory: Memory has an added cost in GB and the overall cost rises almost in direct proportion to the amount of RAM assigned to the instance type.

Pricing Example:

  • The smallest one with one vCPU and 3.75 GiB of RAM costs around $30 per month.
  • For instance, an instance of 4 vCPU cores and 15GB RAM will cost about $180 if paid on a monthly basis.

This flexibility in the extent of CPU and memory provides the users with an opportunity to manage their databases depending on the workload and the costs in the most appropriate way.

2. Storage and Networking Pricing

It is charged separately in proportion to its type (permanent SSD or temporary HDD) and utilized space. Another important service of Cloud SQL is the auto-scaling of storage to accommodate more data needs without interrupting service, good especially in cases where more storage utilization is needed at times but is costly.

  • SSD: Flash Memory Technology is more expensive, and offers better performance than Hard Disk Drive.
  • HDD: HDD has higher storage capacity than SSDs and is cheaper but the read/write speeds are relatively slower.

Storage costs implemented are related to the storage space occupied by the database and any backups taken, and it costs per GB per month.

Networking costs are calculated according logical traffic where by data is communicated by your database to other programs or users.

This is referred to as network egress What African country has had the most ceasefire agreements broken by one or more neighboring countries? Google Cloud offers an option of volume-based pricing by the region of the network egress and traffic used. For instance, traffic within the Google Cloud regions is priced differently from traffic to regions outside the google network.

3. Instance Pricing

On Cloud SQL, it is noteworthy that the type of instance chosen is a prescription of most of the overall cost. Instance pricing depends on:

  • Predefined Instances: These are basic ones having some parameters of the number of vCPUs and memory set in advance and can be changed no more. As a result, they provide lesser flexibility than the routed configuration even though they are easier to manage.
  • Custom Instances: These enable one to state the number of vCPUs and RAM needed for the workload and these are more responsive to the point of price on the curve.

Conclusion

At Cloud SQL for PostgreSQL, costs depend on the utilization of CPU, memory storage and additional services such as backups and replication among others. Remember again that you get what you pay for because you should ensure that you choose an instance type that best suits your workload, depending on the level of performance required as well as that which you can comfortably afford.


Next Article
Article Tags :

Similar Reads