REDIS Playbook
Pull up redis clusters with built-in playbooks
REDIS series Playbook: Define and pull Redis databases in traditional standalone, native, and sentinel clusters.
Playbook | Function | Link |
---|---|---|
redis | Deploying a Redis database in Native/Standalone/Sentinel cluster | src |
redis-remove | Redis cluster/node destruction | src |
redis
Deploy redis instances on nodes.
# init all redis instances on group <cluster>
./redis.yml -l <cluster> # create redis among group <cluster>
# init all redis instances specific node
./redis.yml -l 10.10.10.10 # setup all redis instances on node 10.10.10.10
# init one specific instance 10.10.10.11:6501 (skip redis node)
./redis.yml -l 10.10.10.11 -e redis_port=6501 -t redis
Alias script bin/createredis
wrap above playbook with:
bin/createredis redis-common # init redis cluster redis-common
bin/createredis 10.10.10.10 # init redis node 10.10.10.10
bin/createredis 10.10.10.13 6501 6502 # init redis instance 10.10.10:13:6501 10.10.10:13:6502
redis-remove
Remove redis instances from nodes.
# Remove cluster `redis-test`
redis-remove.yml -l redis-test
# Remove all instance on redis node 10.10.10.13
redis-remove.yml -l 10.10.10.13
# Remove one specific instance 10.10.10.13:6501
redis-remove.yml -l 10.10.10.13 -e redis_port=6501
Last modified 2022-06-04: fii en docs batch 2 (61bf601)