From da00de668886796503bab9e83c66151f391a0027 Mon Sep 17 00:00:00 2001 From: Markus Lobedann Date: Tue, 21 Apr 2026 03:59:21 +0200 Subject: [PATCH] fix: increase maximum PostgreSQL connections to 200 (#35439) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- docker/.env.example | 2 +- docker/docker-compose.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/.env.example b/docker/.env.example index 8176155698..ec7d572057 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -273,7 +273,7 @@ SQLALCHEMY_POOL_TIMEOUT=30 # Default is 100 # # Reference: https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS -POSTGRES_MAX_CONNECTIONS=100 +POSTGRES_MAX_CONNECTIONS=200 # Sets the amount of shared memory used for postgres's shared buffers. # Default is 128MB diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index a10fdf77c6..aaf099453a 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -70,7 +70,7 @@ x-shared-env: &shared-api-worker-env SQLALCHEMY_POOL_PRE_PING: ${SQLALCHEMY_POOL_PRE_PING:-false} SQLALCHEMY_POOL_USE_LIFO: ${SQLALCHEMY_POOL_USE_LIFO:-false} SQLALCHEMY_POOL_TIMEOUT: ${SQLALCHEMY_POOL_TIMEOUT:-30} - POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100} + POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-200} POSTGRES_SHARED_BUFFERS: ${POSTGRES_SHARED_BUFFERS:-128MB} POSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB} POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}