-
Notifications
You must be signed in to change notification settings - Fork 818
Got a lot of warn "failed DNS A record lookup" #4952
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
Comments
@budwing can you share your configuration value for |
Thanks for the reply.
Because we are using Envoy to be the proxy of our services, the address "xx.xx.xx.xx:443" is actually the IP of Envoy. So we don't want Cortex to parse the URL to IP address, the connection between Querier and Query-Frontend should be established based on HTTPS. It works well in v1.10.0. But in v1.13.1, it produces the warn logs. Can you confirm whether this warn logs indicate some impacts to the functionality of Querier? Can we just ignore it? |
TL;DR
It does not impact functionality of Querier if you call Querier directly to query your metrics, and not QueryFrontend. Longer answerThe warn log means querier cannot register itself to query-frontend. So if you make a request to QueryFrontend, it won't be able to find a querier to handle a query and the query call would fail. However the warn log would not impact Querier, if you call Querier directly, the query would work. But if you are not using QueryFrontend you would be missing out some feature like caching and query splitting. Things appear to work for you (i.e. no warning log) because in v1.10.0 If you really don't want to use QueryFrontend, you don't have to start QueryFrontend and can leave |
Hi @alvinlin123, Thanks again for the reply. We are using Query Frontend actually, but we configured both My second question is why Querier does not use DNS directly to connect Query-Frontend? In our case, we are using Envoy as proxy of the services. If Cortex Querier uses IP address directly, Envoy can't dispatch the requests, because the request header doesn't contain domain information. If DNS can't be supported, I suggest at least BR//Taylor |
This really depend on what you mean by performance. The Generally, I would recommend use of Also note that you should only configure one of
The end result is that when QueryFrontEnd get a Query:
I understand the above may be unintuitive, but simply put, |
I think I got all the answers and found the solution. Close this issue, thanks a lot for your patience. |
Describe the bug
We upgraded Cortex from 1.10.0 to 1.13.1 recently. All the components run well except Cortex Querier. When I started Cortex Querier, it produced a lot of warn msg as following:
xx.xx.xx.xx is the ip address of our DNS server. Although there's a lot of warn log, Querier behaves well.
To Reproduce
I guess the reason is the address of Cortex Query Frontend configured by
-querier.frontend-address
.Our Query-Frontend address is not an A record, it's a CName.
So maybe when a CName addres of Query-Frontend is specified, the warn log will be reproduced.
Expected behavior
Disable this warn log if it does not impact the functionality of querier.
Maybe it's the same as #4601 which was just fixed in v1.13.0.
The text was updated successfully, but these errors were encountered: