Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use sshtunnel. dont conn redis cluster #16

Open
haidong5210 opened this issue Jun 25, 2021 · 1 comment
Open

use sshtunnel. dont conn redis cluster #16

haidong5210 opened this issue Jun 25, 2021 · 1 comment

Comments

@haidong5210
Copy link

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

@gh549427987
Copy link

me too, and now can you find the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants