.net - Redis with StackExchange.Redis client timing out randomly -


i have local copy of redis installed on windows 10 machine using msopentech build use during development. i'm trying emulate occasional timeout experience our azure redis instance. sample error i'm getting is:

additional information: timeout performing 9f1cbfc9-07c3-4209-a7c4-07034d550766, inst: 0, mgr: executeselect, err: never, queue: 0, qu: 0, qs: 0, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, clientname: deployment29(504).api_in_0, iocp: (busy=1,free=999,min=8,max=1000), worker: (busy=4,free=32763,min=8,max=32767), local-cpu: 100% (please take @ article common client-side issues can cause timeouts: https://github.com/stackexchange/stackexchange.redis/tree/master/docs/timeouts.md)

my connection redis looks so:

    private static readonly lazy<connectionmultiplexer> lazyconnection = new lazy<connectionmultiplexer>(() =>     {         var redisconfig = configurationoptions.parse(resources.getvaluefromconfig(redis_cache_conn_string));         redisconfig.synctimeout = 3000;          return connectionmultiplexer.connect(redisconfig);     });      // per microsoft (http://msdn.microsoft.com/en-us/library/windowsazure/jj131262),     // initializing once , reusing it.     private static connectionmultiplexer _datacachefactory     {                 {             return lazyconnection.value;         }     } 

my connection string looks connecting azure:

<add key="rediscacheconnstring" value="xxxx.windows.net:xxxx,password=xxxxxxx=,ssl=true,abortconnect=false"/> 

and when connecting local msopentech instance:

<add key="rediscacheconnstring" value="localhost:6379,abortconnect=false"/> 

additionally i've added minlothreads of 50 app.config.

when doing info cpu there doesn't seem processor intensive requests. confirmed on our azure redis instance there doesn't appear negative performance indicators.

# cpu used_cpu_sys:12.36 used_cpu_user:1.17 used_cpu_sys_children:0.00 used_cpu_user_children:0.00 

i should note there chatty front-end can fire off 10 ajax requests @ time - hit redis, suspect issue. want bottom of why timeouts occurring.


Comments