You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just make a burst of requests to test my redis with cached decorator of aiocache library and i just set the timeout to be too short to get timeout when performing too many requests. so after this load test, i'm just getting timeout error for every single request on connecting to redis.
but it sounds that aioredis fixed this issue by patching the asyncio.Lock. But i'm having this issue still. so maybe i'm missing something.
And then i start load testing with ab: ab -n 10000 -c 1000 http://127.0.0.1:8080/
but after this load test, even a single curl is getting timeout error: curl localhost:8080
As i traced down this issue a little, i found out that after load test, in the ConnecionsPool class of aioredis, the state of connections of the pool is not correct, as there is 2 used connection in _used field of pool instance and there is no free connection at all in _pool(which is a deque).
So i was wondering if you could help me out or if let me know if it's a bug or what.
Thanks
The text was updated successfully, but these errors were encountered:
I'm having the same problem as in this issue that you mentioned:
aio-libs-abandoned/aioredis-py#231
and i also saw this issue too:
#196
I just make a burst of requests to test my redis with
cached
decorator ofaiocache
library and i just set the timeout to be too short to get timeout when performing too many requests. so after this load test, i'm just getting timeout error for every single request on connecting to redis.but it sounds that aioredis fixed this issue by patching the
asyncio.Lock
. But i'm having this issue still. so maybe i'm missing something.Here is the code to reproduce this:
And then i start load testing with
ab
:ab -n 10000 -c 1000 http://127.0.0.1:8080/
but after this load test, even a single curl is getting timeout error:
curl localhost:8080
As i traced down this issue a little, i found out that after load test, in the
ConnecionsPool
class ofaioredis
, the state of connections of the pool is not correct, as there is 2 used connection in_used
field of pool instance and there is no free connection at all in_pool
(which is a deque).So i was wondering if you could help me out or if let me know if it's a bug or what.
Thanks
The text was updated successfully, but these errors were encountered: