github.com/friedemannf/reviewdog@v0.14.0/doghouse/appengine/app.yaml (about) 1 # reviewdog app config: https://github.com/settings/apps/reviewdog 2 3 # https://cloud.google.com/appengine/docs/standard/go/config/appref 4 runtime: go115 5 6 # https://cloud.google.com/appengine/docs/standard/go/warmup-requests/configuring 7 inbound_services: 8 - warmup 9 10 includes: 11 - handlers.yaml 12 - secret/secret.yaml # set GITHUB_WEBHOOK_SECRET env var 13 14 # Configure automatic scaling setting to reduce the running cost of the 15 # reviewdog server (doghouse server). 16 # The server should be mostly network I/O bound as it basically just calling 17 # GitHub APIs, so it should be safe to increase the scaling condition while 18 # preserving the performance. 19 # 20 # reviewdog CLI typically call multiple requests at the same time, so the 21 # default max_concurrent_requests (=10) seems to be too small and it can be a 22 # reason why AppEngine starts multiple instances for the reviewdog server. 23 # 24 # We can also limit the # of instances explicitly by max_instances and 25 # max_idle_instances, but this config doesn't use them just in case. 26 # 27 # https://cloud.google.com/appengine/docs/standard/go/config/appref#scaling_elements 28 automatic_scaling: 29 max_concurrent_requests: 80 30 target_cpu_utilization: 0.95 31 target_throughput_utilization: 0.95 32 33 # Most requests is not (directly) user facing requests but reviewdog CLI 34 # sends requests in CI. It should not be so bad that waiting order of seconds 35 # considering CI start up and running analyzers should take more time. 36 min_pending_latency: 1000ms # default is 30ms 37 max_pending_latency: automatic 38 39 min_instances: 0 40 min_idle_instances: 0