-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cluster: support host names when available, via CLUSTER SLOTS #2826
Comments
Additional complexity for bonus points: (part of) the cluster might be hidden behind a proxy / load balancer requiring SNI, i.e. all (some) hostnames resolve to the same IP. |
Side note: some of this may already be shimmable by individual callers, if they already know how they want things to connect: the |
I got a response from the team providing "redis as a service"... the summary is as follows:
The output of
Could you see a possible future for SE.R supporting such a topology / configuration? |
Well, we're making progress, at least. Yes, there is potential for us to migrate to But: this is at least actionable and makes reasonable sense. I don't think I can have much influence on the provider, but I suspect they may have similar problems with several client libraries, at least the cluster-aware ones, but: this seems pragmatic and I'm not going to fight making such a change. We might need to think about the possible matrix of server versions, host/IP configs, etc - the law of unintended consequences means that any such change that fixes some people: may also break others. /Cc @philon-msft in case using hosts instead of IP routing might be useful, if/when we do this. |
See edit for my proposal |
Yes,
Side note: in my case, all hostnames resolve to the same routable IP and require SNI. |
Situation:
Proposal:
Was: "Lookup by endpoint should check IP and host"
Currently, only exact endpoint matches are considered. However, specially in the case of CLUSTER, a node may have both host and IP evidently. Further,
-MOVED
may return the unexpected option, leading to additional connections.We should:
CLUSTER NODES
responseContext: dotnet/aspnetcore#59211
Auxiliary consideration: should cluster routing be limited to IP, as current? Should there be a "use host routing" option? Or should we try IP and use host if that fails?
The text was updated successfully, but these errors were encountered: