diff --git a/backend/v2/core/dependencies.py b/backend/v2/core/dependencies.py index ea9dbc514..4c238dcf0 100644 --- a/backend/v2/core/dependencies.py +++ b/backend/v2/core/dependencies.py @@ -33,13 +33,13 @@ def get_w3( class DatabaseSettings(OctantSettings): """ - Values below are the defaults for the database with max_connetions = 100 and backend pods = 3. + Values below are the defaults for the pod which can serve up to 100 connections. """ db_uri: str = Field(..., alias="db_uri") - pg_pool_size: int = Field(20, alias="sqlalchemy_connection_pool_size") - pg_max_overflow: int = Field(13, alias="sqlalchemy_connection_pool_max_overflow") + pg_pool_size: int = Field(67, alias="sqlalchemy_connection_pool_size") + pg_max_overflow: int = Field(33, 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