Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vhf/redis-sentinel-docker-example
https://github.com/vhf/redis-sentinel-docker-example
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vhf/redis-sentinel-docker-example
- Owner: vhf
- Created: 2018-01-04T16:16:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T15:03:39.000Z (over 3 years ago)
- Last Synced: 2024-10-16T19:23:20.937Z (28 days ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 24
- Watchers: 2
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](./docker-compose.yml)
1. Read [sentinel.conf](./sentinel.conf)
1. Read [test.sh](./test.sh)
1. 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.