Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | # Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed 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 | service: api |
| 7 | runtime: python27 |
| 8 | api_version: 1 |
| 9 | threadsafe: no |
| 10 | |
| 11 | define(`_VERSION', `syscmd(`echo $_VERSION')') |
| 12 | |
| 13 | ifdef(`PROD', ` |
| 14 | instance_class: F4 |
| 15 | automatic_scaling: |
| 16 | min_idle_instances: 25 |
| 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: /prpc/.* |
| 35 | script: monorailapp.app |
| 36 | secure: always |
| 37 | - url: /_ah/warmup |
| 38 | script: monorailapp.app |
| 39 | login: admin |
| 40 | |
| 41 | inbound_services: |
| 42 | ifdef(`PROD', ` |
| 43 | - warmup |
| 44 | ') |
| 45 | ifdef(`STAGING', ` |
| 46 | - warmup |
| 47 | ') |
| 48 | |
| 49 | libraries: |
| 50 | - name: endpoints |
| 51 | version: 1.0 |
| 52 | - name: grpcio |
| 53 | version: 1.0.0 |
| 54 | - name: MySQLdb |
| 55 | version: "latest" |
| 56 | - name: ssl # needed for google.auth.transport |
| 57 | version: "2.7.11" |
| 58 | |
| 59 | includes: |
| 60 | - gae_ts_mon |
| 61 | |
| 62 | env_variables: |
| 63 | VERSION_ID: '_VERSION' |
| 64 | GAE_USE_SOCKETS_HTTPLIB : '' |
| 65 | |
| 66 | vpc_access_connector: |
| 67 | ifdef(`DEV',` |
| 68 | name: "projects/monorail-dev/locations/us-central1/connectors/redis-connector" |
| 69 | ') |
| 70 | ifdef(`STAGING',` |
| 71 | name: "projects/monorail-staging/locations/us-central1/connectors/redis-connector" |
| 72 | ') |
| 73 | ifdef(`PROD', ` |
| 74 | name: "projects/monorail-prod/locations/us-central1/connectors/redis-connector" |
| 75 | ') |
| 76 | |
| 77 | skip_files: |
| 78 | - ^(.*/)?#.*#$ |
| 79 | - ^(.*/)?.*~$ |
| 80 | - ^(.*/)?.*\.py[co]$ |
| 81 | - ^(.*/)?.*/RCS/.*$ |
| 82 | - ^(.*/)?\..*$ |
| 83 | - node_modules/ |
| 84 | - static/ |
| 85 | - schema/ |
| 86 | - doc/ |
| 87 | - tools/ |
| 88 | - venv/ |