blob: 9a628710b50ad264a218aa28264170d98019589d [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is govered by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6define(`_VERSION', `syscmd(`echo $_VERSION')')
7
8service: besearch
9runtime: python27
10api_version: 1
11threadsafe: no
12
13ifdef(`PROD', `
14instance_class: F4
15automatic_scaling:
16 min_idle_instances: 40
17 max_pending_latency: 0.2s
18')
19
20ifdef(`STAGING', `
21instance_class: F4
22automatic_scaling:
23 min_idle_instances: 5
24 max_pending_latency: 0.2s
25')
26
27ifdef(`DEV', `
28instance_class: F4
29automatic_scaling:
30 min_idle_instances: 5
31')
32
33handlers:
34- url: /_ah/warmup
35 script: monorailapp.app
36 login: admin
37
38- url: /_backend/.*
39 script: monorailapp.app
40
41- url: /_ah/start
42 script: monorailapp.app
43 login: admin
44
45- url: /_ah/stop
46 script: monorailapp.app
47 login: admin
48
49ifdef(`PROD', `
50inbound_services:
51- warmup
52')
53ifdef(`STAGING', `
54inbound_services:
55- warmup
56')
57
58libraries:
59- name: endpoints
60 version: 1.0
61- name: grpcio
62 version: 1.0.0
63- name: MySQLdb
64 version: "latest"
65- name: ssl
66 version: latest
67
68env_variables:
69 VERSION_ID: '_VERSION'
70 GAE_USE_SOCKETS_HTTPLIB : ''
71
72vpc_access_connector:
73ifdef(`DEV',`
74 name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector"
75')
76ifdef(`STAGING',`
77 name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector"
78')
79ifdef(`PROD', `
80 name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector"
81')
82
83skip_files:
84- ^(.*/)?#.*#$
85- ^(.*/)?.*~$
86- ^(.*/)?.*\.py[co]$
87- ^(.*/)?.*/RCS/.*$
88- ^(.*/)?\..*$
89- node_modules/
90- venv/