AppEngine 实例小时数
AppEngine instance hours
是否可以免费 运行 应用引擎?无论我尝试过什么,似乎都不可能,我也很困惑他们如何计算 CPU 小时。
例如,我正在使用最大实例数的 Flex 环境; 1,和 CPU; 1.
我知道 appengine flex 提供 28 小时 free/a 天。我有一个非常简单的 nodejs 管理面板,它每天使用几次,我为此支付了 30 英镑,这是胡说八道。他们如何计算小时数?我怎么能消耗超过 24 hours/a 天呢?通过使用多个 vCPU's?为什么我的代码使用多个 vCPU,而没有人使用它。
我已经厌倦了各种不同的配置,但一无所获。我检查过每个 运行ning 只有一个实例。供参考,这是我的应用程序 yaml:
# Used to configure Google App Engine
# See https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
# .gitignore contains the entry server/app.yaml so when this file is copied it isn't comitted to source control
runtime: nodejs
env: flex
skip_files:
- ^(.*/)?.*/node_modules/.*$
automatic_scaling:
max_num_instances: 1
resources:
cpu: 1
instance_class: F1
threadsafe: false
定价(8 天约 8 英镑)
App Engine flexible environment does not offer a free tier. App Engine standard environment does offer a free tier. See if the Node.js standard environment works for your application. If not, consider switching to Compute Engine, which has an f1-micro
instance 在其免费套餐中。
我设法从所有给定的答案中拼接出正确的配置,以获得免费的应用引擎实例。
这里是:
# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START gae_quickstart_yaml]
runtime: nodejs10
# [END gae_quickstart_yaml]
automatic_scaling:
min_instances: 0
max_instances: 1
是否可以免费 运行 应用引擎?无论我尝试过什么,似乎都不可能,我也很困惑他们如何计算 CPU 小时。
例如,我正在使用最大实例数的 Flex 环境; 1,和 CPU; 1.
我知道 appengine flex 提供 28 小时 free/a 天。我有一个非常简单的 nodejs 管理面板,它每天使用几次,我为此支付了 30 英镑,这是胡说八道。他们如何计算小时数?我怎么能消耗超过 24 hours/a 天呢?通过使用多个 vCPU's?为什么我的代码使用多个 vCPU,而没有人使用它。
我已经厌倦了各种不同的配置,但一无所获。我检查过每个 运行ning 只有一个实例。供参考,这是我的应用程序 yaml:
# Used to configure Google App Engine
# See https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml
# .gitignore contains the entry server/app.yaml so when this file is copied it isn't comitted to source control
runtime: nodejs
env: flex
skip_files:
- ^(.*/)?.*/node_modules/.*$
automatic_scaling:
max_num_instances: 1
resources:
cpu: 1
instance_class: F1
threadsafe: false
定价(8 天约 8 英镑)
App Engine flexible environment does not offer a free tier. App Engine standard environment does offer a free tier. See if the Node.js standard environment works for your application. If not, consider switching to Compute Engine, which has an f1-micro
instance 在其免费套餐中。
我设法从所有给定的答案中拼接出正确的配置,以获得免费的应用引擎实例。
这里是:
# Copyright 2017, Google, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# [START gae_quickstart_yaml]
runtime: nodejs10
# [END gae_quickstart_yaml]
automatic_scaling:
min_instances: 0
max_instances: 1