简体   繁体   中英

Connection issue after some idle time with StackExchange.Redis

I'm experiencing an issue with StackExchange.Redis: after some idle time (some hours), the whole provider is unable to connect to Redis again throwing the so-called exception It was not possible to connect to the redis server(s); to create a disconnected multiplexer [...] It was not possible to connect to the redis server(s); to create a disconnected multiplexer [...] .

Everything goes fine again if I recycle the IIS application pool, and after another idle time, the issue happens again. This is why I guess it's not a problem with the Redis instance but with StackExchange.Redis, because I'm not restarting the Redis service but the IIS application pool.

Is there any guidance on how to manage the Redis multiplexer in addition to ensuring that there's a single multiplexer instance per application domain?

In my case, I've solved this setting AbortOnConnectFail to false . This seems to fix the issue for now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM