Skip to content

Connection pool garbage collection of idle connections #3430

Open
@jmspereira

Description

@jmspereira

Version: What redis-py and what redis version is the issue happening on?
redis-py 5.2.0 with redis 7.2.4

Platform: What platform / version?
Python 3.10.12 on Ubuntu 22.04

Description:

Hey everyone,

I have an application that uses a Redis connection created from a connection from a connection pool. The pool works as expected, but there is a point during the lifetime of my application where a connection is not used for some time (i.e., it stays in the pool as an available connection). There is some configuration that I am not finding to discard unused connections after some time? Or do I have to manually close those connections?

Best regards,
Jorge

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions