- 29 Oct, 2014 2 commits
-
-
Matt Stancliff authored
-
Matt Stancliff authored
IP format is now any of: - 127.0.0.1:6379 - ::1:6379
-
- 26 Sep, 2014 1 commit
-
-
antirez authored
-
- 21 Jul, 2014 1 commit
-
-
antirez authored
-
- 18 Jul, 2014 1 commit
-
-
antirez authored
The introduction of --from --to --slots --yes options allow to reshard from cli in an automated way from scripts. The code is ugly and needs refactoring as soon as we get it in RC / stable release.
-
- 21 May, 2014 3 commits
- 12 May, 2014 3 commits
-
-
antirez authored
This way there is no need for the conflict resolution algo to be used in order to start with a cluster where each node has a different configEpoch.
-
antirez authored
-
antirez authored
Will be configurable / adaptive at some point but let's start with a saner value compared to 1 sec which is not a good idea for big data structures stored into a single key.
-
- 10 May, 2014 1 commit
-
-
antirez authored
-
- 09 May, 2014 1 commit
-
-
antirez authored
-
- 25 Mar, 2014 1 commit
-
-
antirez authored
redis-trib used to allocate slots not considering fractions of nodes when computing the slots_per_node amount. So the fractional part was carried over till the end of the allocation, where the last node received a few more slots than any other (or a lot more if the cluster was composed of many nodes). The computation was changed to allocate slots more evenly when they are not exactly divisible for the number of masters we have.
-
- 24 Mar, 2014 2 commits
-
-
Matt Stancliff authored
This got removed in 2e5c394f during a new feature addition. The prior commit had "break if masters.length == masters_count" but we are guaranteed to aready have that condition met since otherwise we would haven't gotten this far. Without this break statement, it's possible some masters may be forgotten and have zero replicas while other masters have more than their requested number of replicas. Thanks to carlos for pointing out this regression at: https://groups.google.com/forum/#!topic/redis-db/_WVVqDw5B7c
-
Matt Stancliff authored
This bug was introduced in 2e5c394f during a refactor. It took me a while to understand what was going on with the code, so I've refactored it further by: - Replacing boolean values with meaningful symbols - Replacing 'i' with a meaningful variable name - Adding the proper abort check - Factoring out now duplicated conditionals - Adding optional verbose logging (we're inside *four* different looping constructs, so it takes a while to figure out where all the moving parts are) - Updating comment for the section This fixes a problem when the number of master instances equaled the number of replica instances. Before, when there were equal numbers of both, nodes_count would go to zero, but the while loop would spin in i < @replicas because i would never be updated (because the nodes_list of each ip was length == 0, which triggered an endless loop of next -> i = 0 -> 0 < 1? -> true -> next -> i = 0 ...) Thanks to carlo who found this problem at: https://groups.google.com/forum/#!topic/redis-db/_WVVqDw5B7c
-
- 11 Mar, 2014 3 commits
-
-
antirez authored
See issue #1593. Thanks to @badboy for suggesting the direct client.call fix.
-
antirez authored
Example: ./redis-trib.rb call 192.168.1.11:7000 config get cluster-node-timeout
-
antirez authored
Example: if the user will try to configure a cluster with 9 nodes, asking for 1 slave for master, redis-trib will configure a 4 masters cluster with 1 slave each as usually, but this time will assign the spare node as a slave of one of the masters.
-
- 11 Feb, 2014 1 commit
-
-
antirez authored
-
- 10 Feb, 2014 6 commits
- 24 Jan, 2014 1 commit
-
-
antirez authored
-
- 17 Jan, 2014 5 commits
- 16 Jan, 2014 2 commits
- 17 Dec, 2013 1 commit
-
-
antirez authored
Later this should be configurable from the command line but at least now we use something more appropriate for our use case compared to the redis-rb default timeout.
-
- 07 Nov, 2013 1 commit
-
-
antirez authored
-
- 05 Nov, 2013 1 commit
-
-
antirez authored
-
- 11 Oct, 2013 1 commit
-
-
antirez authored
-
- 25 Sep, 2013 2 commits