Skip to content

Commit

Permalink
chore: Increase the maximum number of PostgreSQL connections for Clair (
Browse files Browse the repository at this point in the history
PROJQUAY-2739) (#582)

Previously, the number of PostgreSQL connections was set to 100 which is the default value. This value is too low and sometimes the pool gets exhausted pretty quickly. This PR will increase the number of max. connections to 1000 for the Clair PostgreSQL deployment which will allow new pods to connect.
  • Loading branch information
ibazulic authored Nov 2, 2021
1 parent ed6354d commit 73bb1c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kustomize/components/clair/postgres.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ spec:
value: postgres
- name: POSTGRESQL_ADMIN_PASSWORD
value: postgres
- name: POSTGRESQL_MAX_CONNECTIONS
value: "1000"
volumeMounts:
- name: postgres-data
mountPath: /var/lib/pgsql/data
Expand Down

0 comments on commit 73bb1c2

Please sign in to comment.