Google App Engine 弹性价格
Google App Engine flexible price
Rails 个应用目前 运行 在 App Engine 上灵活,
3月1号到3月10号接近$15,感觉基建成本有点高
我设置它以便很少发生对应用程序的访问并且最小化app.yml的资源。
你有什么要记住的吗?
还是App Engine Flex的价格是这样的?
是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
您可以使用 Google Cloud Platform Pricing Calculator for that or calculate it yourself using the prices in App Engine Pricing:
- vCPU 每核心小时 0.0526 美元
- 每 GB 小时的内存 0.0071 USD
所以在你的情况下:
- 1 个 vCPU * 每个 vCPU 0.0526 美元 = 每小时 0.0526 美元
- (0.6 GB + 0.4 GB)* 每 GB 0.0071 美元 = 每小时 0.00426 美元
那么 240 小时每小时 0.05686 美元就是 10 天内一个实例的 13.6464 美元,这接近您支付的费用。
Rails 个应用目前 运行 在 App Engine 上灵活, 3月1号到3月10号接近$15,感觉基建成本有点高
我设置它以便很少发生对应用程序的访问并且最小化app.yml的资源。 你有什么要记住的吗? 还是App Engine Flex的价格是这样的?
是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
您可以使用 Google Cloud Platform Pricing Calculator for that or calculate it yourself using the prices in App Engine Pricing:
- vCPU 每核心小时 0.0526 美元
- 每 GB 小时的内存 0.0071 USD
所以在你的情况下:
- 1 个 vCPU * 每个 vCPU 0.0526 美元 = 每小时 0.0526 美元
- (0.6 GB + 0.4 GB)* 每 GB 0.0071 美元 = 每小时 0.00426 美元
那么 240 小时每小时 0.05686 美元就是 10 天内一个实例的 13.6464 美元,这接近您支付的费用。