Skip to content

Commit 0b56365

Browse files
devlanceJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Keeping user's costs low when using the hello world (#1228)
A few people have found painfully if they left the sample running with the default settings they incurred an unexpected charge. This keeps costs low for those kicking the tires on App Engine.
1 parent 08bf317 commit 0b56365

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

appengine/flexible/hello_world/app.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ entrypoint: gunicorn -b :$PORT main:app
44

55
runtime_config:
66
python_version: 3
7+
8+
# This sample incurs costs to run on the App Engine flexible environment.
9+
# The settings below are to reduce costs during testing and are not appropriate
10+
# for production use. For more information, see:
11+
# https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml
12+
automatic_scaling:
13+
max_num_instances: 1
14+
resources:
15+
cpu: 1
16+
memory_gb: 0.5
17+
disk_size_gb: 10

0 commit comments

Comments
 (0)