mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 14:51:04 +00:00
Cluster: use an hardcoded 60 sec timeout in redis-trib connections.
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.
This commit is contained in:
parent
47815d38e0
commit
7c1cbdceb2
@ -87,7 +87,7 @@ class ClusterNode
|
|||||||
print "Connecting to node #{self}: "
|
print "Connecting to node #{self}: "
|
||||||
STDOUT.flush
|
STDOUT.flush
|
||||||
begin
|
begin
|
||||||
@r = Redis.new(:host => @info[:host], :port => @info[:port])
|
@r = Redis.new(:host => @info[:host], :port => @info[:port], :timeout => 60)
|
||||||
@r.ping
|
@r.ping
|
||||||
rescue
|
rescue
|
||||||
xputs "[ERR] Sorry, can't connect to node #{self}"
|
xputs "[ERR] Sorry, can't connect to node #{self}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user