All Projects → vhf → redis-sentinel-docker-example

vhf / redis-sentinel-docker-example

Licence: other
No description, website, or topics provided.

Programming Languages

shell
77523 projects

Redis Sentinel Docker Example

This repo is a demo of a simple Redis high availability setup on Docker, with a few tests.

Prerequisites

  • docker
  • docker-compose
  • /bin/bash

Usage

  1. Read docker-compose.yml

  2. Read sentinel.conf

  3. Read test.sh

  4. Run the tests: ./test.sh:

    Master: 172.22.1.10
    all 3 only write to master tests passed in 25.000s.
    Stopping sentinel_redis1_1 ... done
    New master: 172.22.1.20
    all 3 election works tests passed in 17.000s.
    

Notes

  • sentinel.conf must be writeable and not shared between Sentinel instances. It constantly gets updated by the Sentinel process which writes IPs, ports, and other info to it.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].