-
Notifications
You must be signed in to change notification settings - Fork 107
Metrictank does not rediscover cassandra node IPs correctly #1566
Comments
you mean, when the configured hostname resolves to new ip's, MT should resolve the hostname again right? |
@Dieterbe yes, it will have to do another DNS lookup |
First, review Gocql changes and try to update. |
Do we want to implement this fix in Metrictank or gocql? |
i had a quick look over the gocql code, and from what i could see it appears that there is intent for gocql to already do this. ie, gocql continually retries to connect to nodes, if all nodes are down it is supposed to try and reconnect to the address that was first passed in. The problem is that during initialization, gocql resolves the passed hosts to IP addresses. It then uses these addresses in the reconnect code. So personally, i think we should fix this in gocql and have it resolve the passed hostnames when retying and not just at startup. |
Yeah, I was reading over some of the tickets as well. As I started to implement the fix in Metrictank it seemed like adding a lot of complexity for one small thing, and then Florian suggested that we should just change it in gocql. I'll start looking at implementing it there instead. |
Updating it in GoCQL turned out to be more work than what is required to update it in Metrictank. For now we will update it in Metrictank, and when it is fixed in GoCQL we can revert the PR and update GoCQL again. |
In a scenario where the cassandra cluster temporarily becomes unavailable and then comes back with different IPs Metrictank does not re-discover the IPs, so it needs to be restarted.
This might possibly involve updating gocql.
The text was updated successfully, but these errors were encountered: