Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expect 1 Master 2 Slaves with sentinel instead 3 Masters #87

Open
kh411d opened this issue Nov 18, 2019 · 1 comment
Open

expect 1 Master 2 Slaves with sentinel instead 3 Masters #87

kh411d opened this issue Nov 18, 2019 · 1 comment

Comments

@kh411d
Copy link

kh411d commented Nov 18, 2019

I used this configuration below to create a cluster with 1 master 2 slave with 3 sentinels, but it keeps creating 3 master with no slave attached, what did I do wrong here,

version: '2'
services:
  redis-cluster:
    environment:
     IP: '0.0.0.0'
     SENTINEL: 'true'
     MASTERS: 1
     SLAVES_PER_MASTER: 2
    build:
      context: .
      args:
        redis_version: '5.0.5'
    hostname: server
    ports:
      - '7000-7050:7000-7050'
      - '5000-5010:5000-5010'
@Grokzen
Copy link
Owner

Grokzen commented Jan 21, 2020

What i think the issue is that we are using the same variabel for different things where more fine grained variabels would make it better and probably avoid any conflict. Another issue is with the sentinel part of it, as if you check in the logs of the running container it says that is has an issue with starting sentinel nodes and it probably why it wont run down the entire script and start all nodes with the conf that you provided above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants