0

I have created a RedisClient using go-redis

rdClient := rd.NewClusterClient(rdClusterOpts)

I can do other database operation using the client

out,err := rdClient.Ping(context.TODO()).Result()
PONG

I can also do get set operation using the client. When I try to rebalance the slots, it shows an error.

out, err := rdClient.Do(context.TODO(), "--cluster", "rebalance", "10.244.0.98", "--cluster-use-empty-masters").Result()

It shows the Error

ERR unknown command '--cluster', with args beginning with: 'rebalance' '10.244.0.96:6379' '--cluster-use-empty-masters

Is there any way to perform the Redis Cluster Manager commands using go-redis or any other go redis client ?

Shaad7
  • 51
  • 3

0 Answers0