Full source can be found at: https://github.com/Grokzen/docker-redis-cluster
Last update: 2017-02-09
Docker image with redis built and installed from source.
The main usage for this container is to test redis cluster code. For example in https://github.com/Grokzen/redis-py-cluster repo.
The cluster is 6 redis instances running with 3 master & 3 slaves, one slave for each master. They run on ports 7000 to 7005.
It also contains 2 standalone instances that is not part of the cluster. They are running on port 7006 & 7007
This image requires at least
Docker version 1.10 but the latest version is recommended.
- latest == 3.2.7
Redis 3.2.x versions:
- 3.2.6 (Build is broken and no image exists)
Redis 3.0.x versions:
Hey, I tried to use this docker image, running it with the following command:
docker run -d -p 7000:7000 -p 7001:7001 -p 7002:7002 -p 7003:7003 -p 7004:7004 -p 7005:7005 -p 7006:7006 -p 7007:7007 --name rcluster grokzen/redis-cluster:4.0-rc2
and also with tag
Unfortunately for both versions I observe the same behavior.
Namely, all cluster starts correctly,
CLUSTER INFO commands return seemingly right data and logs look OK, but when I try to execute
SET <key> 1 from any node the command fails with time-out if the slot is not in the node, where the command is run.
It looks like the slot redirects do not work.
That's helpful, thank you~
没法使用。。。 哎 找个东西好难