Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | # 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 | |
| 6 | define(`_VERSION', `syscmd(`echo $_VERSION')') |
| 7 | |
| 8 | service: besearch |
| 9 | runtime: python27 |
| 10 | api_version: 1 |
| 11 | threadsafe: no |
| 12 | |
| 13 | ifdef(`PROD', ` |
| 14 | instance_class: F4 |
| 15 | automatic_scaling: |
| 16 | min_idle_instances: 40 |
| 17 | max_pending_latency: 0.2s |
| 18 | ') |
| 19 | |
| 20 | ifdef(`STAGING', ` |
| 21 | instance_class: F4 |
| 22 | automatic_scaling: |
| 23 | min_idle_instances: 5 |
| 24 | max_pending_latency: 0.2s |
| 25 | ') |
| 26 | |
| 27 | ifdef(`DEV', ` |
| 28 | instance_class: F4 |
| 29 | automatic_scaling: |
| 30 | min_idle_instances: 5 |
| 31 | ') |
| 32 | |
| 33 | handlers: |
| 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 | |
| 49 | ifdef(`PROD', ` |
| 50 | inbound_services: |
| 51 | - warmup |
| 52 | ') |
| 53 | ifdef(`STAGING', ` |
| 54 | inbound_services: |
| 55 | - warmup |
| 56 | ') |
| 57 | |
| 58 | libraries: |
| 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 | |
| 68 | env_variables: |
| 69 | VERSION_ID: '_VERSION' |
| 70 | GAE_USE_SOCKETS_HTTPLIB : '' |
| 71 | |
| 72 | vpc_access_connector: |
| 73 | ifdef(`DEV',` |
| 74 | name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector" |
| 75 | ') |
| 76 | ifdef(`STAGING',` |
| 77 | name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector" |
| 78 | ') |
| 79 | ifdef(`PROD', ` |
| 80 | name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector" |
| 81 | ') |
| 82 | |
| 83 | skip_files: |
| 84 | - ^(.*/)?#.*#$ |
| 85 | - ^(.*/)?.*~$ |
| 86 | - ^(.*/)?.*\.py[co]$ |
| 87 | - ^(.*/)?.*/RCS/.*$ |
| 88 | - ^(.*/)?\..*$ |
| 89 | - node_modules/ |
| 90 | - venv/ |