简体   繁体   English

Google App Engine 弹性价格

[英]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.目前在 App Engine Flexible 上运行的 Rails 应用,从 3 月 1 日到 3 月 10 日接近 15 美元,我觉得基础设施成本有点高。

I set it so that access to the application rarely occurs and the resource of app.yml is minimized.我将它设置为很少发生对应用程序的访问,并且最小化 app.yml 的资源。 Do you have anything to keep in mind?你有什么要注意的吗? Or is the price of App Engine Flex like this?还是App Engine Flex的价格是这样的?

It is the setting value confirmed by the GCP console.是 GCP 控制台确认的设置值。

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 :您可以使用Google Cloud Platform Pricing Calculator或使用App Engine Pricing 中的价格自行计算

  • vCPU per core hour $0.0526 vCPU 每核心小时 $0.0526
  • Memory per GB hour $0.0071每 GB 小时内存 $0.0071

So in your case:所以在你的情况下:

  • 1 vCPU * 0.0526 $ per vCPU = 0.0526 $ per hour 1 个 vCPU * 每个 vCPU 0.0526 $ = 每小时 0.0526 $
  • (0.6 GB + 0.4 GB) * 0.0071 $ per GB = 0.00426 $ per hour (0.6 GB + 0.4 GB) * 每 GB 0.0071 美元 = 每小时 0.00426 美元

Then 0.05686$ per hour for 240 hours is 13.6464$ for one instance over 10 days, which is close to what you paid.那么 240 小时每小时 0.05686$ 是 13.6464$ 一个实例超过 10 天,这接近您支付的费用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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