.net core 下使用StackExchange的Redis库访问超时解决

.net core 下使用StackExchange的Redis库访问超时解决

目录

问题:并发稍微多的情况下Redis偶尔返回超时

StackExchange的Redis类库,用的较多,但偶尔报的问题非常让人迷惑,访问超时,队列XXX…
问题出在Redis服务器吗?可是其他应用访问都正常啊,难道要把这个类库替换掉?
问题描述如下:

Timeout performing GET keyName, inst: 1, mgr: ExecuteSelect, err: never, queue: 20, qu: 20, qs: 0, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, 
clientName: computerName, IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=4,Free=32763,Min=4,Max=32767), 
Local-CPU: unavailable (Please take a look at this article for some common client-side issues that can cause timeouts: 
https://github.com/StackExchange/StackEx