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

MultiMaster Mode and Dns Resolve #843

Open
oruchreis opened this issue Jun 11, 2024 · 0 comments
Open

MultiMaster Mode and Dns Resolve #843

oruchreis opened this issue Jun 11, 2024 · 0 comments

Comments

@oruchreis
Copy link

oruchreis commented Jun 11, 2024

Hi,
I'm trying to install keydb as multimaster in a kubernetes environment. Kubernetes has headless service feature, so we can reach pods over dns with balancing and if we execute nslookup on the service it returns all ip addresses of the pods. I want to automatize scaling scenario, but I don't know all ip addresses of the pods at startup, Also pod count may increase or decrease by scaling, so I don't know all pod dns names at startup. One of my question is, the replicaof parameter must be specified for all keydb instances in multimaster mode, or one of them is enough? If I give first keydb instance as replicaof parameter, all instances seem work, but i wasn't sure. The Info displays 1 master and multiple slaves. Other question is that, does keydb use dns name or resolved ip address for replicaof? I mean if I set a dns name for replicaof parameter, and if it resolves and use ip address, I must update replicaof everytime when the replicated instance is restarted which its ip address will change because of nature of kubernetes.

@oruchreis oruchreis changed the title MutliMaster Mode and Dns Resolve MultiMaster Mode and Dns Resolve Jun 11, 2024
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

1 participant