🔧 (settings/base.py): increase max_overflow from 10 to 20 to allow more connections beyond the pool size

This commit is contained in:
cristhianzl 2024-06-03 18:24:19 -03:00
commit 1940b8947d

View file

@ -70,7 +70,7 @@ class Settings(BaseSettings):
"""Database URL for Langflow. If not provided, Langflow will use a SQLite database.""" """Database URL for Langflow. If not provided, Langflow will use a SQLite database."""
pool_size: int = 10 pool_size: int = 10
"""The number of connections to keep open in the connection pool. If not provided, the default is 10.""" """The number of connections to keep open in the connection pool. If not provided, the default is 10."""
max_overflow: int = 10 max_overflow: int = 20
"""The number of connections to allow that can be opened beyond the pool size. If not provided, the default is 10.""" """The number of connections to allow that can be opened beyond the pool size. If not provided, the default is 10."""
cache_type: str = "async" cache_type: str = "async"
remove_api_keys: bool = False remove_api_keys: bool = False