Why Am I Seeing a Timeout Error When Reading Data from Redis?
Symptom
When you read data from Redis, timeout error "redis server response timeout (3000ms) occurred after 3 retry attempts" is returned.
Troubleshooting
- Increase the timeout based on the error information.
- Check whether the error is returned after an operation is performed on a big key. It is recommended that the key size be no greater than 10 KB.
Redis limits the size of each String value to 512 MB. In actual development, keep the size within 10 KB. Otherwise, the CPU and NIC will be heavily loaded.
Keep the number of Hashes, Lists, Sets, or Zsets within 5000.
Theoretically, the number of elements in each HashSet should be fewer than 2^32.
- Increase the value of parameter PingConnectionInterval based on the error information.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot