How can I tell how much it costs to run a low traffic WordPress site on GCP

0 votes
Started a GCP free trial, migrated two WordPress sites with almost zero traffic to test the service. Here's what I'm running for each of the two sites:

VM: g1-small (1 vCPU, 1.7 GB memory) 10gb SSD Package: bitnami-wordpress-5-2-4-1-linux-debian-9-x86-64

After about 1-2 months it seems to show that $46 has been deducted from the $300 free trial credit. Is this accurate / typical? Am I looking at paying $20+ per month to process perhaps 100 hits to the site from myself, plus any normal bot crawling that happens? This is roughly 10 times more expensive than a shared hosting multi domain account available from other web hosts.

Overall, how can I tell how much it will actually cost, when it looks to me that GCP reports about $2 of resource consumption per month, a $2 credit, and somehow a $254 balance from $300? Also GCP says average monthly cost is 17 cents on one of the billing pages, which is different from the $2 and the $46 figures. I can't find any entry that would explain all the other resources that were paid/credited.
Mar 30, 2022 in GCP by Rahul
• 3,380 points
336 views

1 answer to this question.

0 votes

Running a 2x g1-small (1 vCPU, 1.7 GB memory) 10 GB SSD package 24*7 should have deducted around -$26 from your free trial. MySQL will cost you a minimum of of $7.67 per month. If you use 2 MySQL instances it'll be $15. So  $26 Compute +$15 DB +$5 for other DNS costs rounds up to $46.

You will get big discounts for committed use of these services.

  • Optimize your costs- Plan your usage using cost calculator https://cloud.google.com/products/calculator/. Compute and relational storage are the most cost prohibitive factors here. Cloud run will reduce your costs significantly. The below link shows how to set it up.

https://medium.com/acadevmy/how-to-install-a-wordpress-site-on-google-cloud-run-828bdc0d0e96

  • Scalability- When your user base grows you might want to use:
    • CDN helps with network costs 
    • Save images in cloud storage to bring down costs.
answered Apr 6, 2022 by Korak
• 5,820 points

Related Questions In GCP

0 votes
1 answer

How to allow outbound traffic on a custom port in gcp?

To allow outbound traffic through a custom ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,230 points
4,371 views
0 votes
1 answer

How can i grant access to a GCP project for a large scale multiple users at once?

gcloud auth to service accounts is allowed. ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 59,230 points
1,121 views
0 votes
1 answer

How do I transfer files to a windows instance on GCP?

You could probably use Windows RDP client for ...READ MORE

answered Nov 8, 2019 in GCP by Sirajul
• 59,230 points
2,489 views
0 votes
0 answers

Is it possible to run android x86 on a GCP VM? [closed]

Mar 2, 2022 in GCP by Rahul
• 2,080 points
316 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,230 points
1,061 views
0 votes
1 answer

Why do I need to use a security solution like Centrify on GCP?

The main benefit is that access can ...READ MORE

answered Mar 17, 2022 in GCP by Korak
• 5,820 points
291 views
0 votes
1 answer

How do I setup a network peering connection from multiple GCP projects to the same MongoDB cluster

If you have a project and want ...READ MORE

answered Apr 11, 2022 in GCP by Korak
• 5,820 points
1,045 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP