MoXplod
MoXplod

Reputation: 3852

StackExchange.Redis.RedisTimeoutException - due to qs how have people solved it?

I have some large payloads going into redis (upto 40 kb).

StackExchange.Redis.RedisTimeoutException: Timeout performing SETEX cachekeyID (5000ms), inst: 1, qs: 11, in: 2837, serverEndpoint: servername:6380, mgr: 10 of 10 available, clientName: 419c1daaa93f, IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=39,Free=32728,Min=1,Max=32767), v: 2.0.519.65453 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

How have you fixed this? By chunking the keys as suggested or by opening multiple ConnectionMultiplexers and handling the pool yourself, both are not straightforward tasks if you want to do this behind an interface which is a generic solution that is transparent to a caller?

Upvotes: 0

Views: 2067

Answers (1)

Babasaheb Dhodad
Babasaheb Dhodad

Reputation: 90

Sometime back I have faced same issue redis timeout. below changes solved my problem.

  1. Use Linux server for Redis instead of windows server
  2. Use command flag while Get and Set operation, while Get operation use
    CommandFlags.PreferSlave and while Set use CommandFlags.FireAndForget.
  3. Change processModel as per application server configuration more
  4. Disable redis persistence more description here

Upvotes: 0

Related Questions