简体   繁体   中英

Google App Engine flexible price

Rails application currently running on App Engine Flexible, It is close to $15 from March 1st to March 10th, I feel that the infrastructure cost is somewhat higher.

I set it so that access to the application rarely occurs and the resource of app.yml is minimized. Do you have anything to keep in mind? Or is the price of App Engine Flex like this?

It is the setting value confirmed by the GCP console.

runtime: ruby
api_version: '1.0'
env: flexible
threadsafe: true
env_variables:
  RAILS_MASTER_KEY: dd89c19c2ee45246d68b8b3765625ce7
automatic_scaling:
  min_num_instances: 1
  max_num_instances: 2
  cpu_utilization:
    target_utilization: 0.5
resources:
  memory_gb: 0.6

You can use Google Cloud Platform Pricing Calculator for that or calculate it yourself using the prices in App Engine Pricing :

  • vCPU per core hour $0.0526
  • Memory per GB hour $0.0071

So in your case:

  • 1 vCPU * 0.0526 $ per vCPU = 0.0526 $ per hour
  • (0.6 GB + 0.4 GB) * 0.0071 $ per GB = 0.00426 $ per hour

Then 0.05686$ per hour for 240 hours is 13.6464$ for one instance over 10 days, which is close to what you paid.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM