redis-rb-cluster icon indicating copy to clipboard operation
redis-rb-cluster copied to clipboard

use sshtunnel. dont conn redis cluster

Open haidong5210 opened this issue 4 years ago • 1 comments

from sshtunnel import SSHTunnelForwarder import rediscluster

REDIS_HOST = 'xxxxxx' tunnel = SSHTunnelForwarder(('127.0.0.1', 22), ssh_username='ubuntu', remote_bind_address=(REDIS_HOST, 6379)) tunnel.start()

startup_nodes = [ {"host": '127.0.0.1', "port": tunnel.local_bind_port} ]

split_redis_con = rediscluster.RedisCluster( startup_nodes=startup_nodes, decode_responses=True, skip_full_coverage_check=True )

use sshtunnel. dont conn redis cluster

haidong5210 avatar Jun 25 '21 09:06 haidong5210

me too, and now can you find the solution?

gh549427987 avatar Apr 09 '22 16:04 gh549427987