-
Notifications
You must be signed in to change notification settings - Fork 24
/
prod.yaml
34 lines (30 loc) · 1.3 KB
/
prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
runtime: custom
env: flex
service: default
# Note: if we adjust the number of instances or amount of cpu upwards,
# we may have to adjust the number of max connections in our postgres instances.
# See the discussion in #5497 for more context, and see the docs:
# https://cloud.google.com/sql/docs/quotas#postgresql for more.
resources:
cpu: 4
memory_gb: 16
disk_size_gb: 100
automatic_scaling:
min_num_instances: 4
max_num_instances: 10
liveness_check:
check_interval_sec: 5
initial_delay_sec: 30
readiness_check:
app_start_timeout_sec: 360
beta_settings:
cloud_sql_instances: recidiviz-123:us-east1:prod-justice-counts-data, recidiviz-123:us-central1:prod-case-triage-data, recidiviz-123:us-east1:prod-operations-data-0xf04e58, recidiviz-123:us-central1:prod-outliers-data, justice-counts-production:us-central1:prod-justice-counts-data
env_variables:
RECIDIVIZ_ENV: production
RECIDIVIZ_SERVICE: default
ASSET_GENERATION_URL: https://asset-generation-buq47yc7fa-uc.a.run.app
# Per zenhub-tasks#358, our app engine needs egress traffic to be issued on a static IP address:
# Reference doc: https://cloud.google.com/appengine/docs/standard/python/outbound-ip-addresses#static-ip
# for more details.
vpc_access_connector:
name: "projects/recidiviz-123/locations/us-east1/connectors/redis-vpc-connector"