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.

PlaybookFunctionLink
redisDeploying a Redis database in Native/Standalone/Sentinel clustersrc
redis-removeRedis cluster/node destructionsrc

redis

Deploy redis instances on nodes.

  1. # init all redis instances on group <cluster>
  2. ./redis.yml -l <cluster> # create redis among group <cluster>
  3. # init all redis instances specific node
  4. ./redis.yml -l 10.10.10.10 # setup all redis instances on node 10.10.10.10
  5. # init one specific instance 10.10.10.11:6501 (skip redis node)
  6. ./redis.yml -l 10.10.10.11 -e redis_port=6501 -t redis

Alias script bin/createredis wrap above playbook with:

  1. bin/createredis redis-common # init redis cluster redis-common
  2. bin/createredis 10.10.10.10 # init redis node 10.10.10.10
  3. bin/createredis 10.10.10.13 6501 6502 # init redis instance 10.10.10:13:6501 10.10.10:13:6502

Playbook - 图1


redis-remove

Remove redis instances from nodes.

  1. # Remove cluster `redis-test`
  2. redis-remove.yml -l redis-test
  3. # Remove all instance on redis node 10.10.10.13
  4. redis-remove.yml -l 10.10.10.13
  5. # Remove one specific instance 10.10.10.13:6501
  6. redis-remove.yml -l 10.10.10.13 -e redis_port=6501

Playbook - 图2

Last modified 2022-06-04: fii en docs batch 2 (61bf601)