Code Monkey home page Code Monkey logo

Comments (3)

s7anley avatar s7anley commented on June 2, 2024

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.

xjzrc avatar xjzrc commented on June 2, 2024

Thanks for your reply!I see you .

from redis-sentinel-docker.

s7anley avatar s7anley commented on June 2, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.