[英]Google Cloud compute engine instances automatically created, not by me
I started using Google Cloud for a webapp project of my own. 我开始将Google Cloud用于自己的webapp项目。 I've been using many of its features such as Standard App Engine for deployment, and its SQL for databases. 我一直在使用它的许多功能,例如用于部署的Standard App Engine和用于数据库的SQL。
In the last week I started using Cloud Storage for uploading and retrieving files. 在上周,我开始使用Cloud Storage上载和检索文件。 The thing is, that after creating a service account for this (as stated in the documentation), 8 VM instances are automatically created, not by me, and even if I delete or stop them, after a while new ones are started. 事实是,为此创建了一个服务帐户(如文档中所述)后,将自动创建8个VM实例,而不是由我创建,即使我删除或停止它们,也要在一段时间后启动。 These are created by the service account required for Cloud Storage for my project. 这些是由我的项目的Cloud Storage所需的服务帐户创建的。 I don't understand what is going on and its making me spend money I shouldn't be paying. 我不知道发生了什么,这让我花了不该支付的钱。
Any help for a solution to this problem would be great. 解决此问题的任何帮助将是巨大的。 Thanks 谢谢
GAE scenario: If you have a standard Google App Engine app, it is auto-scaled in response to processing volume, unless you choose the number of instances manually. GAE方案:如果您有标准的Google App Engine应用程序,则除非您手动选择实例数,否则它会根据处理量自动缩放。 All the configuration is specified by you in the app.yaml
file. 您可以在app.yaml
文件中指定所有配置。 I recommend having a look at a table in this Instance scaling docs description. 我建议您查看此实例扩展文档说明中的表格。 There are three types of scaling: automatic , basic and manual . 缩放比例分为三种: 自动 , 基本和手动 。 What will be of your interest: 您感兴趣的是:
A service with manual scaling use resident instances that continuously run the specified number of instances irrespective of the load level. 具有手动缩放功能的服务使用常驻实例,这些常驻实例将连续运行指定数量的实例,而与负载级别无关。
A service with basic scaling is configured by setting the maximum number of instances in the max_instances parameter of the basic_scaling setting. 通过在basic_scaling设置的max_instances参数中设置最大实例数,可以配置具有基本扩展的服务。 The number of live instances scales with the processing volume. 活动实例的数量与处理量成比例。
Notice also that for manual and basic scaling you have a free daily quota of 8 instance-hours and for automatic scaling 28 instance-hours. 还要注意,对于手动和基本扩展,您有8个实例小时的免费每日配额,对于自动扩展有28个实例小时的每日配额。
Managed instance group scenario: If you're using Compute Engine Managed instance group (not a GAE app), you can set the maximum number of replicas for the autoscaler with the --max-num-replicas
option of the gcloud compute instance-groups managed set-autoscaling
command. 托管实例组方案:如果您使用的是Compute Engine托管实例组(而不是GAE应用程序),则可以使用gcloud compute instance-groups managed set-autoscaling
的--max-num-replicas
选项设置自动定标器的最大副本数。 gcloud compute instance-groups managed set-autoscaling
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.