-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR solves #2551, a problem solving scenario is as follows: 1) JedisCluster jc = new JedisCluster(vip); // now `vip -> ip1` 2) change `vip -> ip2` 3) renewClusterSlots just use getShuffledNodesPool, that is `ip1` 4) connect to `ip1`, and will never connect to `ip2` The new strategy is as follows: 1. First, if jedis(meet JedisRedirectionException) is available, use jedis renew. 2. Then, we use startNodes to try, as long as startNodes is available, whether it is vip, domain, or physical ip, it will succeed. 3. Finally, we go back to the ShuffledNodesPool and try the remaining physical nodes.
- Loading branch information
1 parent
8476aaf
commit 7ba0667
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters