Search code examples
redisstackexchange.redisnode-redisredis-server

StackExcange.Redis.RedisTimeoutException


We are experiencing timeouts in our application using Redis. Already investigated but without success. See the timeout error below:

StackExchange.Redis.RedisTimeoutException: Timeout performing GET 
USERORGANIZATIONS_D96510A4-A9A2-4DAA-84A9-BB77363DD3EA, inst: 9, mgr: 
ProcessReadQueue, err: never, queue: 24, qu: 0, qs: 24, qc: 0, wr: 1, wq: 1,
in: 65536, ar: 1, clientName: RD00155D008B42, serverEndpoint: 
Unspecified/xxxxxxx.redis.cache.windows.net:xxxx, keyHashSlot: 9735, IOCP: 
(Busy=0,Free=1000,Min=4,Max=1000), WORKER: 
(Busy=27,Free=32740,Min=200,Max=32767) (Please take a look at this article 
for some common client-side issues that can cause timeouts: 
http://stackexchange.github.io/StackExchange.Redis/Timeouts)

If need some more information, just ask me that I'll try to provide. Thanks in advance.


Solution

  • The “in: 65536” value in the timeout is very high.  This value indicates how much data is sitting in the client’s socket kernel buffer.  This indicates that the data has arrived at the local machine but has not been read by the application layer yet.  This typically happens when 1) thread pool settings need to be adjusted or 2) when client CPU is running high.  Here are some articles I suggest you read:  

    Diagnosing Redis errors on the client side

    Azure Redis Best Practices