mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 13:08:34 +03:00
adjusts limits for deployment performance
This commit is contained in:
@@ -21,6 +21,8 @@ def make_engine(database_url: str):
|
||||
pool_size=15, # Increase pool size
|
||||
max_overflow=20, # Allow more temporary connections
|
||||
pool_recycle=1800, # Recycle connections every 30 minutes
|
||||
pool_pre_ping=True, # Detect and replace stale connections
|
||||
pool_timeout=30, # Timeout waiting for a connection from pool
|
||||
)
|
||||
|
||||
@event.listens_for(engine, "connect")
|
||||
|
||||
Reference in New Issue
Block a user