From 534f986dcd539d4077e2625fc9f720e6edfd2fbd Mon Sep 17 00:00:00 2001 From: jenkins Date: Sun, 8 Nov 2026 16:20:53 -0600 Subject: [PATCH] gitea: bound shared database connection pool --- services/gitea/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/gitea/deployment.yaml b/services/gitea/deployment.yaml index e16445be..0db40628 100644 --- a/services/gitea/deployment.yaml +++ b/services/gitea/deployment.yaml @@ -277,6 +277,14 @@ spec: value: "gitea" - name: DB_USER value: "gitea" + # Leave capacity in the shared 100-connection Postgres instance. + # Git fetches failed during shared connection exhaustion. + - name: GITEA__database__MAX_OPEN_CONNS + value: "12" + - name: GITEA__database__MAX_IDLE_CONNS + value: "2" + - name: GITEA__database__CONN_MAX_LIFETIME + value: "5m" - name: START_SSH_SERVER value: "true" - name: SSH_PORT