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

How to use redisai client in redis cluster environment? #99

Open
jaehyeongAN opened this issue Jun 24, 2022 · 0 comments
Open

How to use redisai client in redis cluster environment? #99

jaehyeongAN opened this issue Jun 24, 2022 · 0 comments

Comments

@jaehyeongAN
Copy link

Hi, I'm jaehyeong.
I've been using RedisAI in redis cluster environment (3 nodes) and I have an issue about redisai client.

First, This is my 3 redis cluster environment.

CONTAINER ID   IMAGE                      COMMAND                  CREATED          STATUS          PORTS                                                        NAMES
c1e92b73241e   redislabs/redisai:latest   "docker-entrypoint.s…"   4 hours ago      Up 37 minutes   0.0.0.0:7001->7001/tcp, 6379/tcp, 0.0.0.0:17001->17001/tcp   redis-cluster-test_redis-cluster-1_1
e02becc34028   redislabs/redisai:latest   "docker-entrypoint.s…"   4 hours ago      Up 37 minutes   0.0.0.0:7002->7002/tcp, 6379/tcp, 0.0.0.0:17002->17002/tcp   redis-cluster-test_redis-cluster-2_1
4e50e5f16b06   redislabs/redisai:latest   "docker-entrypoint.s…"   4 hours ago      Up 37 minutes   0.0.0.0:7003->7003/tcp, 6379/tcp, 0.0.0.0:17003->17003/tcp   redis-cluster-test_redis-cluster-3_1

I had checked that redis cluster works fine using redis-cli.
스크린샷 2022-06-23 오후 6 56 18

And I tried to get data through redisai client.

from redisai import Client
client = Client(host='172.21.0.4', port=7001)

client.tensorget('tA')

but, I got this error.
스크린샷 2022-06-23 오후 6 58 09

I think error occured because redisai client is single connection client.
So, How I control redis cluster using redisai client?

Thanks

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

1 participant