Help Center> Distributed Cache Service> FAQs> Redis Usage> Why Am I Seeing a Timeout Error When Reading Data from Redis?
Updated on 2022-08-10 GMT+08:00

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

  1. Increase the timeout based on the error information.
  2. 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.

  3. Increase the value of parameter PingConnectionInterval based on the error information.

Redis Usage FAQs

more