I'm getting "ERR max number of clients reached" for my Redis, how can I avoid this?


You're seeing the error ERR max number of clients reached and running out of connections in your Heroku Redis instance.


There are several things you can do to avoid this, such as using a connection pooler to reduce the number of connections or setting an appropriate connection timeout to close inappropriate idle connections.

The following blog post goes through the above recommendations on connection timeouts and connection pooling, and includes other useful tips:

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support