Skip to content

Commit

Permalink
redis-trib.rb: MIGRATE hardcoded timeout set to 15 sec.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
antirez committed May 12, 2014
1 parent 5c78f87 commit 939c586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redis-trib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def move_slot(source,target,slot,o={})
keys = source.r.cluster("getkeysinslot",slot,10)
break if keys.length == 0
keys.each{|key|
source.r.client.call(["migrate",target.info[:host],target.info[:port],key,0,1000])
source.r.client.call(["migrate",target.info[:host],target.info[:port],key,0,15000])
print "." if o[:verbose]
STDOUT.flush
}
Expand Down Expand Up @@ -1024,7 +1024,7 @@ def import_cluster_cmd(argv,opt)
slot = key_to_slot(k)
target = slots[slot]
puts "Migrating #{k} to #{target}"
source.client.call(["migrate",target.info[:host],target.info[:port],k,0,1000])
source.client.call(["migrate",target.info[:host],target.info[:port],k,0,15000])
}
end
end
Expand Down

0 comments on commit 939c586

Please sign in to comment.