Comments (3)
Hi @xjzrc, thank you for pointing out this issue.
I vaguely remember that the usage of SLAVES
was added, because of ECS. I need to investigate a little bit more. Meantime, you should avoid using SLAVES configuration and setup slaves correctly e.g.
version: '3'
services:
master:
image: redis:4.0.10-alpine
slave_1:
image: redis:4.0.10-alpine
command: redis-server --slaveof master 6379
depends_on:
- master
slave_2:
image: redis:4.0.10-alpine
command: redis-server --slaveof master 6379
depends_on:
- master
sentinel_1:
image: s7anley/redis-sentinel-docker:4.0.10
ports:
- 26379:26379
environment:
- MASTER_NAME=mymaster
- QUORUM=2
- MASTER=master
depends_on:
- master
$ docker exec -ti redissentineldocker_sentinel_1_1 redis-cli -p 26379 info sentinel
# Sentinel
sentinel_masters:1
sentinel_tilt:0
sentinel_running_scripts:0
sentinel_scripts_queue_length:0
sentinel_simulate_failure_flags:0
master0:name=mymaster,status=ok,address=172.19.0.2:6379,slaves=2,sentinels=1
from redis-sentinel-docker.
Thanks for your reply!I see you .
from redis-sentinel-docker.
Use-case for SLAVES
is when you Redis instances aren't accessible in single network e.g. in ECS it was not possible to use the IP address of slave, because they were pointing to internal IP address allocated by docker on the single machine, not in the whole cluster.
from redis-sentinel-docker.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-sentinel-docker.