Skip to content

Can we introduce an option minIdleConnections ? #772

@darkpssngr

Description

@darkpssngr

Issue
I'm using redis-labs. The DNS resolution time for the endpoints they give are very high in regions other than US. Currently my service does not have that much traffic due to which idle connections are getting killed and new connections are spawned everytime a new request comes in. I tried turning off the IdleConnectionFrequencCheck by setting it to zero and using a custom dialer which sends keep-alive. But for some reason these connections get closed after sometime. not sure why? upon inspection of tcp dump we found that the termination is intiated by the client and not the server.

I know this problem needs to be identified and fixed but was also wondering if we could have an option which lets us specify minimum idle connections so that we always have some connections on standby when there are spikes. Or is there any way we can avoid this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close