-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
unusable hostnames broadcast for inter-node communication #8832
Comments
Dupe of #1008? |
@tamird: Marc asked for a second ticket because of the potential one-way replication issue |
OK. cc @a-robinson to avoid duplication of effort. |
it's a bit more than that. In this case, nodes 2 and 3 joined the cluster properly because they were able to reach node1. However, node 1 could not initiate a connection to the other two, meaning we were stuck with a single-node cluster. This would be needed for other uni-directional cases, not just bad advertised address. eg: a badly configured firewall rule will trivially cause this. |
@tamird, @mberhault We now have the |
@petermattis @mberhault the @mberhault @sploiselle can you clarify? |
It seems like there's still the matter of helping folks who accidentally run into this. There's no real visibility into what's wrong in cases like this. |
This is a UX issue, as @a-robinson said. Nodes join the cluster but will never successfully receive data. Identifying this could be non-obvious to users because everything appears to be working from the CLI. |
Does anyone have a concrete suggestion for how to address this? I'm removing the 1.0 milestone because I wasn't able to come up with a decent idea. Note that there are complaints in the logs about this situation:
|
Might be fixed by #16177. |
When starting cockroach without the
--host
flag, Cockroach chooses the machine's host name, which it broadcasts as the address other nodes in the cluster can use to communicate to it. However, this name isn't necessarily accessible and the only option to change it is to use the--host
flag, which limits the number of interfaces Cockroach listens on.Example
If I called my machine
do-node-2
and start cockroach without the--host
flag, the node broadcasts itself asdo-node-2:26257
. Often times, that name doesn't have requisite DNS entries and is accessible only when the machine refers to itself.Again, resolving this behavior
--host
is not viable in all scenarios because the behavior changes from listening on all interfaces to listening only on a single one.Consequence
--host
flagThe second and third nodes joined the cluster using this command:
Ranges on the first node cannot be replicated to the second and third nodes because the addresses they're broadcasting are unreachable by the first node (i.e., they don't have DNS entries to point to
do-node-2
and3
).The text was updated successfully, but these errors were encountered: