1. Home
  2. Docs
  3. 秒杀系统
  4. 服务端架构
  5. Redis集群

Redis集群

部署

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

相关资料

阿里云Alpine 镜像
镜像替换方法
Docker实战之Redis-Cluster集群

Was this article helpful to you? Yes No

How can we help?