Increase PG connection pool to 20
This commit is contained in:
parent
d5cee2cb36
commit
2ee809cf58
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ class PostgreSQLDB:
|
||||||
self.password = config.get("password", None)
|
self.password = config.get("password", None)
|
||||||
self.database = config.get("database", "postgres")
|
self.database = config.get("database", "postgres")
|
||||||
self.workspace = config.get("workspace", "default")
|
self.workspace = config.get("workspace", "default")
|
||||||
self.max = int(config.get("max_connections", 12))
|
self.max = int(config.get("max_connections", 20))
|
||||||
self.increment = 1
|
self.increment = 1
|
||||||
self.pool: Pool | None = None
|
self.pool: Pool | None = None
|
||||||
|
|
||||||
|
|
@ -314,7 +314,7 @@ class ClientManager:
|
||||||
),
|
),
|
||||||
"max_connections": os.environ.get(
|
"max_connections": os.environ.get(
|
||||||
"POSTGRES_MAX_CONNECTIONS",
|
"POSTGRES_MAX_CONNECTIONS",
|
||||||
config.get("postgres", "max_connections", fallback=12),
|
config.get("postgres", "max_connections", fallback=20),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue