几周前,我在 App Engine 上的应用刚刚开始将空闲实例的数量增加到不合理的数量,即使流量接近于零。这当然会影响我飞涨的账单。
我的应用程序是一个简单的 Node.js 应用程序,提供连接到我的 CloudSQL 数据库的 GraphQL API。
为什么要启动所有这些空闲实例?
我的 app.yaml:
runtime: nodejs12
service: default
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
automatic_scaling:
max_idle_instances: 1
监控截图: