• antirez's avatar
    Cluster: redis-trib cluster allocation more even across nodes. · 68378639
    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.
    68378639
redis-trib.rb 36.1 KB