Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a new pgbouncer instance for the global db #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion render.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
- name: pgbouncer-prod-ssl
- name: pgbouncer-prod-ssl-2
type: pserv
plan: pro
env: docker
Expand All @@ -8,3 +8,46 @@ services:
pullRequestPreviewsEnabled: false
envVars:
- fromGroup: pgbouncer-prod-ssl
- name: global-db-pgbouncer-prod-ssl
type: pserv
plan: pro
env: docker
numInstances: 1
autoDeploy: false
pullRequestPreviewsEnabled: false
envVars:
- fromGroup: global-db-pgbouncer-prod-ssl

envVarGroups:
- name: global-db-pgbouncer-prod-ssl
envVars:
- key: ADMIN_USERS
value: waterhead
- key: AUTH_FILE
value: /etc/secrets/userlist.txt
- key: CLIENT_TLS_CA_FILE
value: /etc/secrets/client.ca.crt
- key: CLIENT_TLS_CERT_FILE
value: /etc/secrets/client.tls.crt
- key: CLIENT_TLS_KEY_FILE
value: /etc/secrets/client.tls.key
- key: CLIENT_TLS_SSLMODE
value: require
- key: DEFAULT_POOL_SIZE
value: 379
- key: MAX_CLIENT_CONN
value: 5000
- key: MAX_DB_CONNECTIONS
value: 379
- key: MIN_POOL_SIZE
value: 256
- key: POOL_MODE
value: transaction
- key: PORT
value: 5432
- key: SERVER_RESET_QUERY
value: DISCARD ALL
- key: SERVER_TLS_SSLMODE
value: require
- key: STATS_USERS
value: datadog,opentelemetry_collector