Idle Redis connection reconnects every five minutes

I’m using a Digital Ocean managed Redis database for a job queue. When the queue isn’t processing a job, I get consistent reconnect event logs every five minutes.

There’s nothing that I see in my code that disconnects and reconnects every five minutes so I’m wondering if this is something Digital Ocean does. Nothing is inherently broken with my application, I’m just curious as to why this happens.

I noticed that Heroku managed Redis does exactly this (at the same time interval too) to avoid running out of connections due to bad clients not disconnecting properly (see

Any verification or documentation would be appreciated.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I have same issue, I am using redis pub/sub and my pub client is getting disconnected every 5 min while my sub client (pub duplicate - same connection options) don’t lose connection. Have you found some answers or do we have to live with it?