summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-05-12 10:22:04 +0200
committerantirez <antirez@gmail.com>2014-05-12 15:56:17 +0200
commitbdfa26fb510aa9225e06d188fe1806bd9a7e9f96 (patch)
tree09f2e2fd8e4ca54c07ff102ae2533f3cf3f7e757
parent0a707babb1a884a15fe22da49a48e2798713f71f (diff)
downloadredis-bdfa26fb510aa9225e06d188fe1806bd9a7e9f96.tar.gz
redis-trib.rb: MIGRATE hardcoded timeout set to 15 sec.
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.
-rwxr-xr-xsrc/redis-trib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 81e0d8f55..b6f6aba39 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -724,7 +724,7 @@ class RedisTrib
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
}
@@ -1024,7 +1024,7 @@ class RedisTrib
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