-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from ynput/database-connection-optimizations
Database connection optimizations
- Loading branch information
Showing
4 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,18 @@ class AyonConfig(BaseModel): | |
example="postgres://user:[email protected]:5432/ayon", | ||
) | ||
|
||
postgres_pool_size: int = Field( | ||
64, | ||
description="Postgres connection pool size", | ||
example=64, | ||
) | ||
|
||
postgres_pool_timeout: int = Field( | ||
20, | ||
description="Postgres connection pool timeout", | ||
example=20, | ||
) | ||
|
||
session_ttl: int = Field( | ||
default=24 * 3600, | ||
description="Session lifetime in seconds", | ||
|
@@ -172,7 +184,7 @@ class AyonConfig(BaseModel): | |
|
||
http_timeout: int = Field( | ||
default=120, | ||
description="Timeout for HTTP requests the server uses " | ||
description="The default timeout for HTTP requests the server uses " | ||
"to connect to external services", | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters