]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Grow the pool size one connection at time
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 11 Mar 2021 20:11:48 +0000 (21:11 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Mar 2021 04:07:25 +0000 (05:07 +0100)
commit675468b2e22932e1171332ba4464738178c6937f
treeecb2878b950c14d5558cd383f072f4e2244d6082
parent8b0baf496127e8b2efae92a9d7d56cc1f484a86b
Grow the pool size one connection at time

Not doing so saturates the worker processes which may not be able to do
other maintenance, including returning connections to the pool. It also
helps to limit the amount of growth in a sudden spike.
o
psycopg3/psycopg3/pool/async_pool.py
psycopg3/psycopg3/pool/base.py
psycopg3/psycopg3/pool/pool.py
tests/pool/test_pool.py
tests/pool/test_pool_async.py