Giter Site home page Giter Site logo

Comments (7)

Grokzen avatar Grokzen commented on July 20, 2024 7

@wormding Use the following

$ redis-cli -c -p 7000
redis 127.0.0.1:7000> set foo bar
-> Redirected to slot [12182] located at 127.0.0.1:7002
OK
redis 127.0.0.1:7002> set hello world

you are not using the cluster mode on the redis-cli tool.

from docker-redis-cluster.

wormding avatar wormding commented on July 20, 2024

redis-cli -c -p 7000
127.0.0.1:7000> set foo bar
-> Redirected to slot [12182] located at 172.17.0.2:7002

why will I got 172.17.0.2:7002 this? Thanks, buddy!!

from docker-redis-cluster.

smdmts avatar smdmts commented on July 20, 2024

I'm facing the same issue on docker for mac. Is this docker's network problem in mac?

from docker-redis-cluster.

smdmts avatar smdmts commented on July 20, 2024

I cleared with the similar product, that assigned fixed IP value as 127.0.0.1.

@Grokzen How about IP could be assigned by outside parameter?

from docker-redis-cluster.

Grokzen avatar Grokzen commented on July 20, 2024

@wormding You should really read up on the redis-cluster spec and basic docs before you continue. You can find it here https://redis.io/topics/cluster-tutorial .

I can't help everyone who has basic redis cluster problems that is in no way related to this client lib. For that kind of help you have to ask in other forums/boards.

from docker-redis-cluster.

Grokzen avatar Grokzen commented on July 20, 2024

@smdmts No there is no relation between the problem wormding has and the problem you mentioned. Basically there is a difference between the IP address you connect to the cluster with, and the IP address that redis internally tracks each node with.

from docker-redis-cluster.

wormding avatar wormding commented on July 20, 2024

I have already fixed it out. @Grokzen thanks a lot~

from docker-redis-cluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.