Stackexchange.Redis timeouts & socketfailures

依然范特西╮ 提交于 2019-12-03 21:17:21

Timeouts are typically caused by one of a few things. Here are some examples

  1. Client or server CPU hitting 100%
  2. Poorly configured ThreadPool settings, combined with bursts of traffic
  3. Clients sending expensive commands to the server.
  4. Maxing out your network Bandwidth (on client or on server)

Tips for Client side issues: https://gist.github.com/JonCole/db0e90bedeb3fc4823c2

Tips for server side issues: https://gist.github.com/JonCole/9225f783a40564c9879d

I would recommend upgrading to a newer version of the StackExchange.Redis also. Version 1.1.603 has some more detailed diagnostic info in the timeout error message that may help you identify some of common client-side the things I listed above.

As for Socket failures, a couple of common causes for connection drops between the client and server that I have seen are:

  1. Scaling the client - I have seen brief client side connectivity issues when scaling client apps in Azure.
  2. When Redis is patched, there will be some connection blips. Azure Redis patching is explained here: https://gist.github.com/JonCole/317fe03805d5802e31cfa37e646e419d
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!