maxAttempts in Jedis Cluster constructor #2624
Unanswered
ashishkeshu
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Due to slot migration and many other reasons, (master) node for specific slot may be unavailable at a certain moment. JediCluster is configured to retry a command in those moments may have a better chance to be executed. This configuration is controlled by maxAttempts parameter. If you don't want to retry at all, just set |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am using below constructor to create jedis cluster.
new JedisCluster(jedisClusterNode, connTimeout, soTimeout, maxAttempts, username, password, "", jedisPoolConfig, false);
what is the purpose of maxAttempts here in this constructor, in which scenario it is useful to set and what is optimized value for this.
Thanks,
Ashish
Beta Was this translation helpful? Give feedback.
All reactions