StackExchang.Redis 不稳定

多次连接Redis,常常取不到值,错误如下:

 1.Timeout performing HGET

 2.No connection is available to service this operation

通过Github Issues查到解决方案: 

 1.https://github.com/StackExchange/StackExchange.Redis/issues/12

 2.http://stackoverflow.com/questions/22930856/stackexchange-redis-timeout-and-no-connection-is-available-to-service-this-oper

 

解决方案有3个:

 1.根据你服务器的网络环境适当设置Timeout属性

 2.注释Redis自动保存

    save 900 1 save 300 10 save 60 10000

 3.多节点 例如配置4个node,4*8=32个链接,远远超过200req/s

 

posted @ 2016-09-22 12:48  《船长》  阅读(2444)  评论(0编辑  收藏  举报