部署
git clone https://github.com/peter-wow/docker-redis-cluster.git
cd docker-redis-cluster && make build
命令操作
cluster nodes
# 查看节点状态
cluster info
# 查看服务器状态
cluster slots
# 查看 slots 分片情况
Q&A
[root@localhost docker-redis-cluster]# make build
docker-compose build
WARNING: The REDIS_USE_SENTINEL variable is not set. Defaulting to a blank string.
WARNING: The REDIS_USE_STANDALONE variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.redis_exporter.environment contains an invalid type, it should be an object, or an array
make: *** [build] Error 1