Fix Redis cluster hostname announcement using FQDN#100
Open
fonsecas72 wants to merge 1 commit intoOT-CONTAINER-KIT:masterfrom
Open
Fix Redis cluster hostname announcement using FQDN#100fonsecas72 wants to merge 1 commit intoOT-CONTAINER-KIT:masterfrom
fonsecas72 wants to merge 1 commit intoOT-CONTAINER-KIT:masterfrom
Conversation
1b4aea1 to
fb6205d
Compare
Signed-off-by: Hugo Fonseca <hugo.fonseca@betvictor.com>
fb6205d to
b5e8e58
Compare
Collaborator
|
It fixed by OT-CONTAINER-KIT/redis-operator#1489 which use |
Author
|
thanks @drivebyer it wasn't clear for me. I'll give the last version a try |
Author
|
Getting this with the default redis v7.0.15 After changing to redis v7.4.5... i'm getting At first (sometimes) and then it fixes by itself. Same behaviour i was having with this PR and why i put the loop in it. Do you have any suggestion on how to fix it? Maybe some param i might not be setting? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redis cluster nodes were announcing themselves with short hostnames (e.g.,
my-redis-leader-0) instead of FQDNs, preventing proper cluster communication.Changed
POD_HOSTNAME=$(hostname)toPOD_HOSTNAME=$(hostname -f)in the Redis entrypoint script to use the fully qualified domain name (e.g.,my-redis-leader-0.my-redis-leader-headless.my-redis-namespace.svc.cluster.local).Redis cluster nodes can now discover and communicate with each other regardless of namespace