Skip to content

Commit a0902e1

Browse files
authored
Merge pull request #152 from emiliebiscuits/feat/max_db_connections
feat(pgbouncer): max_db_connections
2 parents 6794fd1 + 2314bb3 commit a0902e1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

charts/pgbouncer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: pgbouncer
3-
version: "0.7.1"
3+
version: "0.8.0"
44
description: A Helm chart for Pgbouncer
55
type: application
66
home: https://github.com/pmint93/helm-charts

charts/pgbouncer/templates/_pgbouncer.ini.tpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ reserve_pool_size = {{ .Values.connectionLimits.reserve_pool_size }}
233233
reserve_pool_timeout = {{ .Values.connectionLimits.reserve_pool_timeout }}
234234

235235
;; Maximum number of server connections for a database
236-
;max_db_connections = 0
237-
236+
{{- if .Values.connectionLimits.max_db_connections }}
237+
max_db_connections = {{ .Values.connectionLimits.max_db_connections }}
238+
{{- end }}
238239
;; Maximum number of server connections for a user
239240
;max_user_connections = 0
240241

charts/pgbouncer/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ users: []
1212
# # max_user_connections: 100
1313

1414
connectionLimits:
15+
# max_db_connections: 200
1516
max_client_conn: 200
1617
default_pool_size: 20
1718
min_pool_size: 15

0 commit comments

Comments
 (0)