How can I reduce the cost of my website's vm-instance in GCP?

I have my business website running as a vm-instance in compute engine of GCP. I get charged over 20 dollars a month. Please, any idea on what I can do to reduce the monthly cost of the vm-instance?

2 Likes

I’m not a specialist in GCP, but maybe this could help you out.

https://cloud.google.com/solutions/web-hosting

2 Likes

Thank you Jan-Carlos.

The link was really helpful. I was able the see the estimated price of Wordpress hosting on GCP.

It is as I feared, I am being billed about double the estimated price as show in the link you shared.

Please see screen shots below. I am in urgent need to reducing my monthly billing. It’s basically double.

Here’s a screen shot of pricing as said by google

This second screenshot of my monthly billing. Today is 4th July and you can see how high it is already…

Please I need help! :sad_but_relieved_face:

2 Likes

Maybe this helps too: https://cloud.google.com/compute/docs/instances/signing-up-committed-use-discounts

1 Like

You can try to check the cost table before do anything.

GCP => Billing => Your billing => Cost table

You may be surprised.

Best, Alex.

1 Like

Hi @Alex_Ivanov Thanks. I looked at the cost table, That’s a screenshot below. It shows me over 20 dollars. Please what does this mean?

1 Like

Hi @Alex_Ivanov Thanks. I looked at the cost table, That’s a screenshot below. It shows me over 20 dollars. Please what does this mean?

Then I have a question also.

Does the machine type, SSD OR standard persistent disc, have an effect on the price? If yes what’s the difference in price? My VM machine type is SSD

1 Like

Hmm… I don’t see the service description field.

1 Like

Oh @Alex_Ivanov sorry.

Here it is please. Thank you!

1 Like

100% of the cost it is in the compute engine service.

Try to click in this button to see better infos about compute engine costs:

1 Like

The machine type [1] and disk configuration [2] do affect billing. In the pricing screenshot that you shared earlier, the cost that’s shown is for 1 shared vCPU, 2 GB memory, and a 10GB standard persistent disk.

While launching the VM from marketplace or later after the VM was created, did you change the VM to a larger machine type? If yes, you can size it down [3] to the required configuration. Also, if your website doesn’t need to run 24/7, you can consider stopping [4] the VM during the days/hours when you don’t expect traffic to the website. Also, review the options to optimize the cost of your persistent disks [5].

[1] https://cloud.google.com/compute/vm-instance-pricing

[2] https://cloud.google.com/compute/disks-image-pricing#disk

[3] https://cloud.google.com/architecture/framework/cost-optimization/compute#choose_appropriate_machine_types

[4] https://cloud.google.com/architecture/framework/cost-optimization/compute#adjust_capacity_to_match_demand

[5] https://cloud.google.com/architecture/framework/cost-optimization/storage#pd

I hope this helps.

3 Likes