Hello Fellow Noobers!
This is a quick high-level tutorial to go over the pricing of VMs and some things for consideration.
GCE has A LOT of services to offer and each service has a fee (this is expected). I will cover the pricing structure for the VM created so far in this tutorial series. But first, here is the link to the online pricing calculator (https://cloud.google.com/products/calculator/).
Using the online calculator is not difficult but, to me, it’s a bit like shopping at IKEA. ie. if you buy a bed at IKEA then don’t forget to buy the slats for the mattress to rest on! With GCE’s pricing calculator, you need to include the VM, the disk and network traffic.
To add a VM and/or Disk to your monthly estimate follow these steps:
One other thing worth noting is that network traffic coming in to your VM (Ingress) is not charged. It’s only the outbound (Egress) traffic that is billed.
Finally, no network usage is billed while you are using the FREE trial. So if you have a web site or app running, while using the FREE trial, be sure to check the network usage of the VM using the console to monitor the monthly usage.
This is a quick high-level tutorial to go over the pricing of VMs and some things for consideration.
GCE has A LOT of services to offer and each service has a fee (this is expected). I will cover the pricing structure for the VM created so far in this tutorial series. But first, here is the link to the online pricing calculator (https://cloud.google.com/products/calculator/).
Using the online calculator is not difficult but, to me, it’s a bit like shopping at IKEA. ie. if you buy a bed at IKEA then don’t forget to buy the slats for the mattress to rest on! With GCE’s pricing calculator, you need to include the VM, the disk and network traffic.
To add a VM and/or Disk to your monthly estimate follow these steps:
- Are you using the right calculator?
Look at the top and make sure that the ‘COMPUTE ENGINE’ icon is selected (as shown in the below image)
- Next, fill in the form and include the Number Of Instances, the Instance Type and the Datacenter Location (as shown in the image below)
- When that is filled in you can click the big blue button that is just underneath the form labelled ‘ADD TO ESTIMATE’
- You should now see to the right of your browser screen the monthly Estimate for your VM (as shown in the image below). However, we’re not quite finished. Notice that the estimated price here is less than the estimated price when creating the same VM in your GCP console. The reason for this is that we still need to add the boot disk (remember, it’s like shopping at IKEA!)
- OK, in the same calculator (COMPUTE ENGINE) scroll down a bit until you see the next section labelled ‘Persistent Disk’.
The default disk size for a newly created VM is 10GB. This is also the default size used for the VM that was created earlier in the tutorial series. Keep it the same and put ‘10’ into the field labelled ‘Persistent disk storage’ and then click the big blue button under this form.
Why ‘Persistent disk storage’ and not ‘SSD Persistent disk storage’? Good question!
The answer is that when a VM is created the boot disk is, by default, a ‘Persistent’ disk. This means that the disk is using standard hard drives just like the ones that you may already be using in your computer.
If you want to use the SSD disk instead then that’s ok. The price will increase but it is not too much more for a 10GB disk.
- Now the estimated price, on the right of your browser, should be the same as the estimate price when you create the same VM in your GCP console.
- There’s just one part left to add and that is the estimated cost for network traffic. Unfortunately, this usually requires a working crystal ball.
Network traffic pricing varies and is dependent on whether the traffic is coming into the server (Ingress) or going out of the server (Egress). It also depends on where the traffic is coming ‘from’ and going ‘to’ (regions and zones). I have a technical term that I use to describe the pricing structure - ‘A dog’s breakfast!’. It would be a lot simpler if it were just a fixed price but, it’s not and we have to work with what we have
If you already know what your network traffic for a month is going to be and which zones/regions are using the network traffic then you are well positioned to fill in the pricing form.
- To add network pricing estimates we need to be using the correct calculator. Make sure that the calculator selected is ‘NETWORKING’ (as shown in the image below)
- Fill in the form with the estimates from your crystal ball for each region.
As a ‘rule’ I use the below values as a guide. If I know in advance how much traffic I can expect for a region then I’ll adjust it accordingly. ie. if I know that most of my traffic will be in the US and I also know that I can expect the traffic to be close to 10GB per month then I’ll adjust the values to match.
In the screenshot below, I’ve circled the 3 values that I use as a guide.
- When you are done filling in the form click on the big blue button under the form labelled ‘ADD TO ESTIMATE’. The estimate on the right side of the screen should now include the network traffic.
- As can be seen the monthly estimate has increased by a massive amount! Just kidding. US$0.25 a month is not going to break too many budgets.
The 3GB network traffic estimate I use covers my expected network usage for a web site that I host on another platform. ie. For the web site I host, I do not use GCE because I did not know about GCE at the time I created the web site. The same 3GB is a very generous amount for my own personal web site.
- Lastly, here is the link to the pricing structure for network traffic
https://cloud.google.com/compute/pricing#network
One other thing worth noting is that network traffic coming in to your VM (Ingress) is not charged. It’s only the outbound (Egress) traffic that is billed.
Finally, no network usage is billed while you are using the FREE trial. So if you have a web site or app running, while using the FREE trial, be sure to check the network usage of the VM using the console to monitor the monthly usage.