Skip to content

Commit

Permalink
reduce overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-gf committed Dec 18, 2024
1 parent 8d7c585 commit d621ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion backend/v2/core/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d621ee3

Please sign in to comment.