-
Notifications
You must be signed in to change notification settings - Fork 9
/
app.yaml
executable file
·149 lines (127 loc) · 3.2 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
runtime: python311
entrypoint: gunicorn -k uvicorn.workers.UvicornWorker -b :$PORT main:app --timeout 15 --workers 1 --threads 6
default_expiration: "300d 5h"
#runtime_config:
# python_version: 3.6
handlers:
- url: /manifest.webapp
static_files: manifest/manifest.json
upload: manifest/manifest.json
http_headers:
Content-Type: application/x-web-app-manifest+json
- url: /manifest-noads.webapp
static_files: manifest/manifest-noads.json
upload: manifest/manifest-noads.json
http_headers:
Content-Type: application/x-web-app-manifest+json
- url: /static/*
static_dir: static
http_headers:
Vary: Accept-Encoding
- url: /transient/*
static_dir: transient
http_headers:
Vary: Accept-Encoding
expiration: "0d 1h"
- url: /robots.txt
static_files: transient/robots.txt
upload: transient/robots.txt
- url: /BingSiteAuth.xml
static_files: static/BingSiteAuth.xml
upload: static/BingSiteAuth.xml
- url: /channel.html
static_files: static/channel.html
upload: static/channel.html
- url: /gameon/static/*
static_dir: gameon/static
http_headers:
Vary: Accept-Encoding
- url: /favic(.+)
static_files: static/icons/favic\1
upload: static/icons/favic(.*)
http_headers:
Vary: Accept-Encoding
- url: /apple(.+)
static_files: static/icons/apple\1
upload: static/icons/apple(.*)
http_headers:
Vary: Accept-Encoding
- url: /mstile(.+)
static_files: static/icons/mstile\1
upload: static/icons/mstile(.*)
http_headers:
Vary: Accept-Encoding
- url: /android(.+)
static_files: static/icons/android\1
upload: static/icons/android(.*)
http_headers:
Vary: Accept-Encoding
- url: /ads.txt
static_files: static/ads.txt
upload: static/ads.txt
http_headers:
Vary: Accept-Encoding
expiration: "0d 1h"
- url: /browserconfig.xml
static_files: static/icons/browserconfig.xml
upload: static/icons/browserconfig.xml
http_headers:
Vary: Accept-Encoding
- url: /ads.txt
static_files: static/ads.txt
upload: static/ads.txt
http_headers:
Vary: Accept-Encoding
- url: .*
script: main.app
instance_class: F1
#resources:
## cpu: 2
## memory_gb: 12.5
# cpu: 4
# memory_gb: 20
# disk_size_gb: 20
# 4 16 if you want to be able to do code/full precison
#
#liveness_check:
# path: "/"
# check_interval_sec: 240
# timeout_sec: 220
# failure_threshold: 2
# success_threshold: 2
# initial_delay_sec: 600
#
#readiness_check:
# path: "/liveness_check"
# check_interval_sec: 300
# timeout_sec: 300
# failure_threshold: 6
# success_threshold: 1
# app_start_timeout_sec: 1800
#automatic_scaling:
# max_pending_latency: 7.5s
# automatic_scaling:
# min_idle_instances: 2
# max_pending_latency: 4.5s
# YOLO cost saving autoscaling on gae flex
automatic_scaling:
max_idle_instances: 1
target_cpu_utilization: .8
target_throughput_utilization: .6
# min_pending_latency: 300ms
max_pending_latency: 10000ms
max_concurrent_requests: 80
#automatic_scaling:
# min_num_instances: 1
# max_num_instances: 15
# cool_down_period_sec: 480
# cpu_utilization:
# target_utilization: 0.5
# target_concurrent_requests: 100
env_variables:
CLOUD_STORAGE_BUCKET: $CLOUD_STORAGE_BUCKET
IS_APP_ENGINE: 1
inbound_services:
- warmup
builtins:
- appstats: on