From 8dd4b08e2dc47ac2aa0ecd044a3730536d78c731 Mon Sep 17 00:00:00 2001 From: Ivan Bazulic Date: Tue, 2 Nov 2021 12:52:33 +0000 Subject: [PATCH] chore: Increase the maximum number of PostgreSQL connections for Clair (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. --- kustomize/components/clair/postgres.deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kustomize/components/clair/postgres.deployment.yaml b/kustomize/components/clair/postgres.deployment.yaml index 171cc8866..dc42665c6 100644 --- a/kustomize/components/clair/postgres.deployment.yaml +++ b/kustomize/components/clair/postgres.deployment.yaml @@ -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