From d71d433a9bed7eadf4d5a4d77cf02fb6b009d6fe Mon Sep 17 00:00:00 2001 From: Amin Vakil Date: Sat, 23 Aug 2025 16:11:38 +0330 Subject: [PATCH] Revert "increase postgres max_connections above 100 connections (#2740)" This reverts commit 7691addcb631fee42389896cf4eead0794f11a9d. --- .env | 3 --- docker-compose.yml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.env b/.env index ba8cf6267b7..dfe279267f8 100644 --- a/.env +++ b/.env @@ -24,8 +24,5 @@ HEALTHCHECK_FILE_INTERVAL=60s HEALTHCHECK_FILE_TIMEOUT=10s HEALTHCHECK_FILE_RETRIES=3 HEALTHCHECK_FILE_START_PERIOD=600s -# Caution: Raising max connections of postgres increases CPU and RAM usage -# see https://github.com/getsentry/self-hosted/pull/2740 for more information -POSTGRES_MAX_CONNECTIONS=100 # Set SETUP_JS_SDK_ASSETS to 1 to enable the setup of JS SDK assets # SETUP_JS_SDK_ASSETS=1 diff --git a/docker-compose.yml b/docker-compose.yml index 77a4a938e48..7d89d34c394 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -139,7 +139,7 @@ services: # Using default user "postgres" from sentry/sentry.conf.example.py or value of POSTGRES_USER if provided test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"] command: - ["postgres", "-c", "max_connections=${POSTGRES_MAX_CONNECTIONS:-100}"] + ["postgres"] environment: POSTGRES_HOST_AUTH_METHOD: "trust" volumes: