Operation timed out on Managed Redis Database

I occasionally get an operation timed out message when pinging Redis. I’m utilizing DO’s Managed Redis Database. When I was in charge of my own Redis database, I never encountered these errors.


• Operation timed out • Error while reading line from the server.

Laravel Config:

'default' => [
   'scheme' => env('REDIS_SCHEME', 'tls'),
   'host' => env('REDIS_HOST', ''),
   'password' => env('REDIS_PASSWORD', null),
   'port' => env('REDIS_PORT', 6379),
   'database' => env('REDIS_DB', 1),
// 'read_write_timeout' => 0,

I’ve been looking at community Q/A and they say that phpredis should work with DO Redis.

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.

Hello, We are facing the issue. All our resources are good for Redis and the consumption is low. According to DO support we updated the redis_timeout to 0 and still it didn’t work.

This mostly happens where there is a spike in traffic which is exactly what Redis cache should be helping, but its opposite. Is there a rate limit on the connections?

Happens the same to me. Resources seem ok. Load <1, RAM at 60%, low disk usage. cpu < 30%, no rejected connections…

Bobby Iliev
Site Moderator
Site Moderator badge
November 6, 2022

Hey @dragonfire1119,

What I could suggest is making sure that you have enough resources for your managed cluster:

If you have enough resources and you are still seeing those timeout errors, please reach out to our amazing support team who will be more than happy to assist you with your issue! :)


- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.