diff --git a/backend/app/settings.py b/backend/app/settings.py index 6ee56eea37..eb2fe7bc99 100644 --- a/backend/app/settings.py +++ b/backend/app/settings.py @@ -91,7 +91,7 @@ class ProdConfig(Config): os.getenv("SQLALCHEMY_CONNECTION_POOL_SIZE", 10) ) SQLALCHEMY_CONNECTION_POOL_MAX_OVERFLOW = int( - os.getenv("SQLALCHEMY_CONNECTION_POOL_MAX_OVERFLOW", 100) + os.getenv("SQLALCHEMY_CONNECTION_POOL_MAX_OVERFLOW", 0) ) SQLALCHEMY_DATABASE_URI = os.getenv("DB_URI") SQLALCHEMY_ENGINE_OPTIONS = { diff --git a/backend/v2/core/dependencies.py b/backend/v2/core/dependencies.py index bb75678685..d45a2cbc9e 100644 --- a/backend/v2/core/dependencies.py +++ b/backend/v2/core/dependencies.py @@ -38,7 +38,7 @@ class DatabaseSettings(OctantSettings): db_uri: str = Field(..., alias="db_uri") pg_pool_size: int = Field(10, alias="sqlalchemy_connection_pool_size") - pg_max_overflow: int = Field(30, alias="sqlalchemy_connection_pool_max_overflow") + pg_max_overflow: int = Field(0, alias="sqlalchemy_connection_pool_max_overflow") pg_pool_timeout: int = 60 pg_pool_recycle: int = 30 * 60 # 30 minutes pg_pool_pre_ping: bool = True