即使完成所有建议,StackExchange.Redis.RedisTimeoutException

时间:2018-10-18 15:45:08

标签: stackexchange.redis

我遇到以下提到的错误

我当前的设置是:

opt.SyncTimeout = 100000
opt.AllowAdmin = True
opt.KeepAlive = 300000
<processModel autoConfig="false" minIoThreads="200" minWorkerThreads="200" />
An unhandled exception of type 'StackExchange.Redis.RedisTimeoutException' occurred in StackExchange.Redis.dll
Additional information: Timeout performing KEYS, inst: 0, mgr: ExecuteSelect, err: never, queue: 2, qu: 2, qs: 0, qc: 0, wr: 0, wq: 1, in: 0, ar: 0, clientName: DESKTOP-4PP7624, serverEndpoint: Unspecified/localhost:6379, IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=5,Free=4090,Min=4,Max=4095) (Please take a look at this article for some common client-side issues that can cause timeouts: http://stackexchange.github.io/StackExchange.Redis/Timeouts)

1 个答案:

答案 0 :(得分:0)

看来您的minIoThreads和minWorkerThreads不能根据您的错误日志工作。

此外,Keys是一个非常昂贵的通话-它是O(n)。也许尝试增加同步超时时间?