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
RedisConnectionException in High Concurrence #355
Comments
How many cluster master-nodes do you use? |
Only one in my ECS, But i use the redis service in aliyun, refer to its document, there are about 3 master nodes。 I wonder this is caused by redis itself or limited by redission? |
=。= I thought that you are from USA and surprised that you are still awake at this time=。= |
no, I'm from Russia :) |
You can play with Redisson timeout settings like |
And which Redisson version do you use? |
how many cores do you have in Redisson client machine? Because 1000 threads is too much for single 8 cores CPU, for example. |
I use 2.2.3 and 16 cores in client machine. e... if i set poolsize to 500, it means there are most 500 threads will be invoked to do connect? or you have any Mechanism to do schedule when clients invoke beyond working threads? |
so sorry to ask you so much question. i find that if i set pool size to 300 and retryattemp to 1, there are 0 failed connection. and if i set pool size to 30 and retry attempt to 10, i also work. may be the later one is better solution? |
please upgrade your version to 2.2.4 because of connection leak issue. |
No, Redisson uses |
Have you tried 2.2.4 version? |
Yes I have upgrade to 2.2.4 , And i set connection pool to 300 and retryattempt to 10. I use webbench : webbench -c 300 -t 20 http://localhost:10086/Social/Share/getRecommendShareList?requestData={"user_token":"qnZ5awrOszYd1iFb3iLF9DJN2kCJ2B02FgzmX3a2F8gVM83D","pageNum":0,"pageSize":20} . |
I think this issue similar to my issue #338 in High Concurrence. |
@wxyyxc1992 have you tried to increase |
@wxyyxc1992 and that exception do you get now, |
Yes |
Maybe a bottleneck. You can use
|
get it , thank you very much |
@wxyyxc1992 any news? |
I use redis as required data store, but in high concurrence, there are almost 50% connection failed. I want to know whether to optimize my redis server(use cluster) or my client? Is there any great suggestion? infinity retry until success? And My test code are list after:
RedissonFactory redissonFactory = new RedissonFactory();
I use 1000 threads, and find that if i set the connection pool size to 500, the successful proportion achieves maximum。
The text was updated successfully, but these errors were encountered: