Git Product home page Git Product logo

docker-redis-cluster's People

Contributors

itsmetommy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-redis-cluster's Issues

ClusterDown error when trying set key

I set up your solution once i connected and trying add any key got error

redis-cli -c -p 7000
127.0.0.1:7000> cluster slots
(empty list or set)
127.0.0.1:7000> set foo dsd
(error) CLUSTERDOWN Hash slot not served
127.0.0.1:7000> 

info from docker

127.0.0.1:7000> cluster info
cluster_state:fail
cluster_slots_assigned:0
cluster_slots_ok:0
cluster_slots_pfail:0
cluster_slots_fail:0
cluster_known_nodes:1
cluster_size:0
cluster_current_epoch:0
cluster_my_epoch:0
cluster_stats_messages_sent:0
cluster_stats_messages_received:0

any ideas?

Testing cluster node failure

Hi Tommy,
thanks for your post, very useful!
I had a question regarding a node failure. I was trying to test that with my spring application to check if the reconnection was working.

I removed one node from the cluster

$ docker rm -f docker-redis-cluster_redis-3_1
docker-redis-cluster_redis-3_1

And I recreate it here with the same script

$ docker-compose up --build -d
[...]
Successfully built c42043755120
Successfully tagged redis-cluster-node:latest
docker-redis-cluster_redis-2_1 is up-to-date
docker-redis-cluster_redis-1_1 is up-to-date
docker-redis-cluster_redis-5_1 is up-to-date
docker-redis-cluster_redis-6_1 is up-to-date
docker-redis-cluster_redis-4_1 is up-to-date
Creating docker-redis-cluster_redis-3_1 ... done
Recreating docker-redis-cluster_redis-cluster_1 ... done

The container redis-3_1 is recreated but it seems that it is not able to join the cluster

$ docker exec -ti docker-redis-cluster_redis-1_1 redis-cli -c -p 7001
127.0.0.1:7001> cluster nodes
07c0d54474fa1f1b1737858eca1adb859506e993 10.0.0.14:7004@17004 master - 0 1593791005526 7 connected 10923-16383
162ddfc067889991e8baa8712eb1cb1c8e08f9b7 :0@0 master,fail,noaddr - 1593790908571 1593790906000 3 disconnected
1c5e4ede11e1bbd433f36722670fbfde5c494cd7 10.0.0.15:7005@17005 slave c9370a7af12682bcd1968ce1fdd2b411ad929ba6 0 1593791005526 5 connected
90477f14193fc52596f8f89b6f972e059b368624 10.0.0.16:7006@17006 slave d94176d618dc57c0be1b0eda49d22d1af97b1197 0 1593791005927 2 connected
c9370a7af12682bcd1968ce1fdd2b411ad929ba6 10.0.0.11:7001@17001 myself,master - 0 1593791004000 1 connected 0-5460
d94176d618dc57c0be1b0eda49d22d1af97b1197 10.0.0.12:7002@17002 master - 0 1593791004924 2 connected 5461-10922
$ docker logs docker-redis-cluster_redis-cluster_1
[ERR] Node 10.0.0.11:7001 is not empty. Either the node already knows other nodes (check with CLUSTER NODES) or contains some key in database 0.

Do you have an idea how to solve this situation? Loosing one node, recreating it and adding it back to the cluster.
Thanks for your help,
J.

redis-ruby instance not installed

After installing I get following error on docker-compose logs redis-ruby:

"redis-ruby | standard_init_linux.go:190: exec user process caused "no such file or directory"

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.