Skip to content

Pool deactivates inactive connections without respect to min size #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
khoben opened this issue Dec 24, 2022 · 0 comments
Closed

Pool deactivates inactive connections without respect to min size #989

khoben opened this issue Dec 24, 2022 · 0 comments

Comments

@khoben
Copy link

khoben commented Dec 24, 2022

  • asyncpg version: 0.27.0
  • PostgreSQL version: 14.6
  • Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
    the issue with a local PostgreSQL install?
    : No
  • Python version: 3.11.1
  • Platform: Windows/Linux
  • Do you use pgbouncer?: No
  • Did you install asyncpg with pip?: Yes
  • If you built asyncpg locally, which version of Cython did you use?: -
  • Can the issue be reproduced under both asyncio and
    uvloop?
    : Yep

Using a pool with max_inactive_connection_lifetime parameter releases connections without respect to min_size.
I expect that the number of active connections should be maintained up to min_size, using the connection refresh mechanism when pool.min_size > pool.size.

@khoben khoben closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant