Erti-Chris Eelmaa
Erti-Chris Eelmaa

Reputation: 26298

AppEngine instance hours

Is it possible to run app engine for free? Whatever I have tried, it seems to be not possible, I am also confused how they calculate the CPU hours.

For example, I am using Flex environment with maximum number of instances; 1, and CPU; 1.

I understand that appengine flex offers 28 hours free/a day. I have very simple nodejs admin panel, it is used few times a day, and I pay 30£ for it which is nonsense. How do they calculate the hours? How can I consume more than 24 hours/a day anyway? By using multiple vCPU's? Why is my code using multiple vCPU's when nobody is using it.

I've tired loads of different configurations but haven't gotten anywhere. I've checked that only one instance is every running. FOr reference here is my app 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

the pricing (around 8£ for 8 days)

enter image description here

Upvotes: 1

Views: 619

Answers (2)

Erti-Chris Eelmaa
Erti-Chris Eelmaa

Reputation: 26298

I managed to stitch together the correct config from all the given answers to get free appengine instance.

Here it is:

# 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

Upvotes: 0

BrettJ
BrettJ

Reputation: 6851

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 in its free tier.

Upvotes: 2

Related Questions