Skip to content
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

StackExchange.Redis.RedisTimeoutException #2756

Open
SwatiLiyaBasecone opened this issue Jul 8, 2024 · 4 comments
Open

StackExchange.Redis.RedisTimeoutException #2756

SwatiLiyaBasecone opened this issue Jul 8, 2024 · 4 comments

Comments

@SwatiLiyaBasecone
Copy link

Timeout awaiting response (outbound=0KiB, inbound=2KiB, 5000ms elapsed, timeout is 5000ms), command=SETEX, next: SET session:01J2963J4NNQTFSZYKWG3F83XY, inst: 0, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 641, last-in: 1, cur-in: 0, sync-ops: 337, async-ops: 812, serverEndpoint: xxxxx.redis.cache.windows.net:6380, conn-sec: 14783.12, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: xxxxx(SE.Redis-v2.7.17.27058), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=10,Free=32757,Min=1,Max=32767), POOL: (Threads=10,QueuedItems=5,CompletedItems=70758,Timers=23), v: 2.7.17.27058 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

@NickCraver
Copy link
Collaborator

Do you have any details here? Amount of exceptions? Frequency? Conditions?

@SwatiLiyaBasecone
Copy link
Author

Do you have any details here? Amount of exceptions? Frequency? Conditions?

It during load testing with 50+ users

@rickymediaengine
Copy link

It happens also on our side during heavy load:
StackExchange.Redis.RedisTimeoutException: Timeout performing GET (5000ms), inst: 1, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 4, cur-in: 0, sync-ops: 4064644, async-ops: 0, serverEndpoint: 10.1.35.14:6379, conn-sec: 62754,11, aoc: 0, mc: 1/1/0, mgr: 100 of 100 available, clientName: VM8777(SE.Redis-v2.7.33.41805), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=50,Free=32717,Min=4,Max=32767), v: 2.7.33.41805 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

@KendoSai
Copy link

KendoSai commented Sep 6, 2024

It happens also on our side during heavy load: StackExchange.Redis.RedisTimeoutException: Timeout performing GET (5000ms), inst: 1, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 0, in-pipe: 0, out-pipe: 0, last-in: 4, cur-in: 0, sync-ops: 4064644, async-ops: 0, serverEndpoint: 10.1.35.14:6379, conn-sec: 62754,11, aoc: 0, mc: 1/1/0, mgr: 100 of 100 available, clientName: VM8777(SE.Redis-v2.7.33.41805), IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER: (Busy=50,Free=32717,Min=4,Max=32767), v: 2.7.33.41805 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)

I think you could change to use async methods for getting, setting cache values. Because in the timeout message, there are quite a lot of sync operations sync-ops: 4064644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants