-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[bitnami/redis] use hostnames in sentinel #7428
Conversation
After deleting different pods x times (to force re-election and try to find potential bugs) :
|
I also tested it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tomislater
Thanks so much for this great contribution!!!
I agree that we shouldn't be use IPs on a Kubernetes environment since they're ephemeral, and we should rely on stable network identifiers such as the hostname. Therefore, I'm fine with your approach.
I'd like @rafariossaa to double-check this, since he has more experience with Redis & Sentinel configuration. He's currently on PTO so please expect a few days delay before he comes back to you.
This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution. |
👋 what about this PR? It works on staging and prod since then and I don’t see any problems. I had one problem because I had not changed masterSet (both deployments had the same masterSet) and two separated sentinels (in different namespaces) were thinking that they are one cluster 🤝, but it is another issue. |
Sorry @tomislater I lost the track of this one!! Please @rafariossaa take a look to this PR when possible. |
Hi, |
It is very hard to reproduce. Only twice I have seen this. Maybe is it something wrong with |
Hi, |
Yeah, please do not merge it. I see that there were some new changes on master. |
Okay, my changes are not required anymore. We can close this PR. Similar changes have been added here: 722dead But, I have noticed the same problems. Auto-discovery seems broken. I am going to create an issue for this. |
Hi, |
Hi @tomislater could you please expand on what you've refered to as:
in your last comment? I am still having some issues from time to time even when using the version containing #7461 thanks |
I referred to this problem: #7428 (comment) but it was visible only on my branch. With current version everything works correctly. https://github.com/bitnami/charts/tree/master/bitnami/redis#redis-sentinel-configuration-parameters remember about |
Description of the change
Because it is a chart for Kubernetes, we should use
hostnames
instead ofIPs
(https://redis.io/topics/sentinel#ip-addresses-and-dns-names). I added more information about my case in #1682 and #5418.Benefits
It should works better in dynamic environment.
Possible drawbacks
I don't know yet. Maybe there is a bug somewhere. I have tested on my clusters and everything works correctly. But still...
Applicable issues
Checklist
Chart.yaml
according to semver.After this change
sentinel.conf
looks like: