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.
Errors:
• Operation timed out • Error while reading line from the server.
Laravel Config:
'default' => [
'scheme' => env('REDIS_SCHEME', 'tls'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'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.
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!
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.
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.
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…
Hey @dragonfire1119,
What I could suggest is making sure that you have enough resources for your managed cluster:
https://docs.digitalocean.com/products/databases/mongodb/how-to/monitor-clusters/
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! :)
Best,
- Bobby.