a | b/app.yaml | ||
---|---|---|---|
1 | runtime: python |
||
2 | env: flex |
||
3 | runtime_config: |
||
4 | python_version: 3 |
||
5 | entrypoint: gunicorn -b :$PORT -w 2 -k uvicorn.workers.UvicornWorker fast_api:app --timeout 120 |
||
6 | |||
7 | resources: |
||
8 | memory_gb: 12 |
||
9 | cpu: 2 |
||
10 | disk_size_gb: 20 |
||
11 | |||
12 | automatic_scaling: |
||
13 | min_num_instances: 1 |
||
14 | max_num_instances: 4 |
||
15 | |||
16 | readiness_check: |
||
17 | app_start_timeout_sec: 6000 |