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

[QUESTION] Why sentinels knows replica with 0 port #9981

Open
mmorel-35 opened this issue Dec 22, 2021 · 2 comments
Open

[QUESTION] Why sentinels knows replica with 0 port #9981

mmorel-35 opened this issue Dec 22, 2021 · 2 comments

Comments

@mmorel-35
Copy link
Contributor

mmorel-35 commented Dec 22, 2021

Hi !
I have set up a sentinel architecture with 3 nodes and 3 sentinels.
I have activated tls on each type (node and sentinels)
When I consult the sentinel.conf I can see this :

# Generated by CONFIG REWRITE
sentinel myid myid1
sentinel config-epoch redis-primary 2
sentinel leader-epoch redis-primary 2
sentinel known-replica redis-primary hostname1 6379
sentinel known-replica redis-primary hostname2 6379
sentinel known-sentinel redis-primary hostname3 26379 myid2
sentinel known-sentinel redis-primary hostname2  26379 myid3
sentinel known-sentinel redis-primary hostname3  **0** myid4

Why is this hostname3 0 knowned by the sentinel as it should not be used in tls ?

I can provide the config but I prefer to not post it here, by email would be preferable.

@hwware
Copy link
Collaborator

hwware commented Dec 23, 2021

@mmorel-35 Could you please send your detail profile to my github email? I could help check this issue. Thanks

@sjpotter
Copy link
Contributor

As an FYI, I recently ran into a similar/same issue, when I converted an existing small test cluster from running in plain text to running just over tls.

It's possible it was because I was converting nodes 1 by 1, that there's a bug that caused it to record a node on port 0 in the process. When I wiped out the logged configuration from my sentinel.conf files and restarted all the sentinels, it came up without the phantom node on port 0.

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

3 participants