-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the root cause of this RedisTimeoutException? #1226
Comments
Facing the same issue since we've upgraded to version 2.0.601 from 1.2.6. |
We have upgraded from version I've investigated them and they seem to happen after ~15 simultaneous calls of E.g. The average response for calls is still ~ 1ms-2ms so 50 ms seems excessive. |
have you found any solution? |
In our case, |
@tnachshon how large is "a large value" in your case? We have the same issue, currently using 2.0.519 (downgraded from 2.0.601). We use Redis primarly as a cache store for output cache and those objects can be around 200kb-300kb. |
I don't think it is key/command related. I have a sample console application example on It fails for just simply SetWithExpiry for a int string. One thing I do notice that it seems the |
Updates, for my case and demo code in #1327 The reason was the issue discussed on https://stackexchange.github.io/StackExchange.Redis/Timeouts.html That the busy thread count is more than min count. Adjusted the min thread account helps my case. |
We are performing multiple operations(GET/SET) in parallel on a Redis server and we are hitting timeout issues. StackExchange.Redis.RedisTimeoutException: Timeout performing GET (5000ms), next: GET KEYXXXXXX, inst: 0, qu: 0, qs: 10, aw: False, rs: ReadAsync, ws: Idle, in: 0, serverEndpoint: endpoint.windows.net:6380, mc: 1/1/0, mgr: 10 of 10 available, clientName: SYSTEMNAME, IOCP: (Busy=0,Free=1000,Min=12,Max=1000), WORKER: (Busy=10,Free=32757,Min=12,Max=32767), v: 2.1.58.34321 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts) |
@Sandeep321 was you able to figure out the root cause? |
There are many timeout threads (there are many environmental and in-app causes for this), so going to close this out to tidy up/consolidate. For anyone finding this: please use the latest version of the library. Adding information to the timeout message to help advise on what's happening is something we've done a lot and current timeout messages will provide additional info like thread pool stats (e.g. how many items in queue) on .NET 5.0+ builds. If you're still having a timeout problem please feel free to open an issue here, but many of the existing causes (that aren't environmental - which most are) all have better logging so we have help advise in these cases. Those newer error messages would help greatly in our ability to provide any help. |
Hi,
We use a single Redis Server instance (v 4.0.9) as a cache layer for our services.
There are 5 service instances.
Each of these clients is regularly logging timeout exceptions:
I read the article at https://stackexchange.github.io/StackExchange.Redis/Timeouts, but I can not determine the cause of this error.
Could someone give me any advice?
The text was updated successfully, but these errors were encountered: