-
Notifications
You must be signed in to change notification settings - Fork 799
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
Using go1.11 breaks memcache DNS lookups #1200
Comments
Found another place where it is used cortex/pkg/alertmanager/peers.go Line 65 in a888416
|
I am trying to use https://github.com/miekg/dns in it's place. |
Looks like I need to update in 1 more place. Thanks @bboreham! |
I don't know about this part of Golang, but would this make this file to be compiled only with go1.8?
|
It means 1.8 and above. See https://golang.org/pkg/go/build/ |
Yes you are right. I should have searched before asking :) |
This is only a problem when running kubernetes |
Having said that bumping up |
|
That's funny, we found similar issue on Thanos as well: thanos-io/thanos#1015 obviously same thing with go 1.12 We consider moving to https://github.com/miekg/dns as it allows much much more flexibility. Have you considered this? |
Awesome, thanks for this link, super useful. |
FYI: We added (basic) miekg's option to Thanos: thanos-io/thanos#1016 |
We decided not to fix this, as we're all on k8s >1.14. |
The net library in
go1.11+
cannot read SRV responses from kube-dnsv1.14.10
or below. This is because kube-dns prior to1.14.11
used to send compressed SRV responses which is against the spec. See: golang/go#27546 for more details.We use it here: https://github.com/cortexproject/cortex/blob/master/pkg/chunk/cache/memcached_client.go#L103
This means that we are right now stuck to go1.10. Upgrading cortex to
go1.11+
would break memcache lookups among others. The fix for this would be to use https://github.com/miekg/dns like Prometheus does./cc @codesome
The text was updated successfully, but these errors were encountered: