blob: c620c0df4bbd4730fcc86db284850fd34739d888 [file] [log] [blame]
Dean Michael Berris03198092020-01-09 06:03:361service: upload-processing
Dean Michael Berris03198092020-01-09 06:03:362
Jeff Yoonb5a77842024-09-05 19:59:433runtime: python39
Alex Sunf448d5b2024-01-27 21:19:264# The default workers number is 1, increase it to improve throughput.
5entrypoint: gunicorn -b:$PORT dashboard.dispatcher:APP --workers 8 --worker-class gthread --threads 10 --timeout 300
Funing Wangb8ad9172023-01-30 18:47:456app_engine_apis: true
Alex Sunf448d5b2024-01-27 21:19:267# 3072MB Memory, 2.4GHz CPU limit, support auto scaling, support 8 workers.
Alex Sundc879db2023-02-24 02:13:358instance_class: F4_1G
Dean Michael Berris03198092020-01-09 06:03:369
10automatic_scaling:
Dean Michael Berrisba2b5672020-12-09 11:53:0611 max_instances: 1800
Dean Michael Berrisba2b5672020-12-09 11:53:0612 min_instances: 24
Alex Sunf448d5b2024-01-27 21:19:2613 # Define max_idle_instance to reduce the number of billed instance.
14 max_idle_instances: 30
15 # 8 worker * 10 threads = 80 concurrent requests.
16 max_concurrent_requests: 80
17 # Auto scaling will be triggered when reach 90% of the max concurrent.
18 target_throughput_utilization: 0.90
19 target_cpu_utilization: 0.90
20 max_pending_latency: automatic
Dean Michael Berris03198092020-01-09 06:03:3621
Dean Michael Berris03198092020-01-09 06:03:3622env_variables:
23 GAE_USE_SOCKETS_HTTPLIB: 'true'
24
Dean Michael Berris03198092020-01-09 06:03:3625handlers:
Dean Michael Berris03198092020-01-09 06:03:3626- url: /.*
27 script: dashboard.dispatcher.APP
28 secure: always