forked from k1m190r/evangeler2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yaml
More file actions
58 lines (51 loc) · 1.69 KB
/
app.yaml
File metadata and controls
58 lines (51 loc) · 1.69 KB
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
runtime: python311
entrypoint: GOOGLE_APPLICATION_CREDENTIALS=secrets/google-credentials.json NLTK_DATA=gaedata gunicorn -k uvicorn.workers.UvicornWorker -b :$PORT main:app --timeout 60 --workers 1 --threads 6
default_expiration: "300d 5h"
handlers:
- url: /static/*
static_dir: static
http_headers:
Vary: Accept-Encoding
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
http_headers:
Vary: Accept-Encoding
expiration: "0d 1h"
- url: /manifest.webapp
static_files: manifest/manifest.json
upload: manifest/manifest.json
http_headers:
Content-Type: application/x-web-app-manifest+json
- url: /sitemap_index.xml
static_files: static/sitemap_index.xml
upload: static/sitemap_index.xml
http_headers:
Content-Type: text/xml
# favicon
- url: /favicon.ico
static_files: static/img/favicon.ico
upload: static/img/favicon.ico
http_headers:
Vary: Accept-Encoding
Cache-Control: public, max-age=604800, immutable
- url: /.well-known/apple-developer-merchantid-domain-association
static_files: static/apple-developer-merchantid-domain-association
upload: static/apple-developer-merchantid-domain-association
http_headers:
Vary: Accept-Encoding
Cache-Control: public, max-age=604800, immutable
- url: .*
script: main.app
instance_class: F1
#yolo/slow autoscailing
automatic_scaling:
min_pending_latency: 5s # 5 is the min
max_pending_latency: 15s # 15 is the max
target_cpu_utilization: 0.9 # save cost by not having too many instances
max_concurrent_requests: 50 # 50 is high but dont want to scale so aggressively to avoid cost
# automatic_scaling:
# min_idle_instances: 2
# max_pending_latency: 4.5s
inbound_services:
- warmup