Skip to content

Introduce new config option for DNS over TCP - #8588

Merged
htuch merged 30 commits into
envoyproxy:masterfrom
nezdolik:dns-over-tcp
Dec 4, 2019
Merged

htuch merged 30 commits into
envoyproxy:masterfrom
nezdolik:dns-over-tcp

Conversation

@nezdolik

@nezdolik nezdolik commented Oct 11, 2019 •

Copy link
Copy Markdown
Member

Signed-off-by: Kateryna Nezdolii [email protected]

Description: Adding property use_tcp_for_dns_lookups to bootstrap and cds config, which will instruct dns resolvers to use tcp for DNS queries.

Risk Level: Medium/Low
Testing:
Docs Changes:
Release Notes:
Fixes #7965

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #8588 was opened by nezdolik.

see: more, trace.

Comment thread api/envoy/api/v2/cds.proto Resolved
@htuch htuch assigned htuch and unassigned snowp Oct 13, 2019
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
@htuch

htuch commented Oct 22, 2019

Copy link
Copy Markdown
Member

@nezdolik are you waiting for any further feedback or are you still working on this? This PR looks mostly good; it looks like there is some TODOs you still have in there, CI tests need to pass and you should probably add some test to verify that TCP is actually used.

@htuch htuch added the waiting label Oct 22, 2019
@nezdolik

Copy link
Copy Markdown
Member Author

@htuch, apologies, I was on vacation. Am still working on this, thanks for the feedback. I usually remove 'WIP' prefix and ping reviewers when PR is ready for review.

@stale

stale Bot commented Oct 30, 2019

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@stale stale Bot added the stale stalebot believes this issue/PR has not been touched recently label Oct 30, 2019
Kateryna Nezdolii added 2 commits November 4, 2019 13:29
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
@stale stale Bot removed the stale stalebot believes this issue/PR has not been touched recently label Nov 4, 2019
@nezdolik

nezdolik commented Nov 4, 2019

Copy link
Copy Markdown
Member Author

still working on tests

@htuch htuch added the waiting label Nov 4, 2019
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
@nezdolik nezdolik changed the title [WIP] Introduce new config option for DNS over TCP Introduce new config option for DNS over TCP Nov 10, 2019
@htuch htuch added the waiting label Nov 19, 2019
Signed-off-by: Kateryna Nezdolii <[email protected]>
Kateryna Nezdolii added 5 commits November 25, 2019 01:08
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #8588 was synchronize by nezdolik.

see: more, trace.

@htuch htuch added the waiting label Nov 26, 2019
Signed-off-by: Kateryna Nezdolii <[email protected]>
Comment thread source/common/network/dns_impl.cc Resolved
Signed-off-by: Kateryna Nezdolii <[email protected]>
@nezdolik
nezdolik requested a review from htuch November 29, 2019 09:55

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo remaining comments, thanks!
/wait

TEST_F(ClusterManagerImplTest, OriginalDstLbRestriction2) {
const std::string yaml = R"EOF(
static_resources:
static_resources:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come we have these gratuitous whitespace changes in this file?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@htuch for me is result of invoking tools/check_format.py fix in local dev environment. Could manually revert format changes later today.

factory_.tls_.shutdownThread();
}

TEST_F(ClusterManagerImplTest, UseTcpWithCustomDnsResolver) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a 1-2 line // above each of the new TEST_F cases and describe what the test does?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Signed-off-by: Kateryna Nezdolii <[email protected]>
Signed-off-by: Kateryna Nezdolii <[email protected]>

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@repokitteh-read-only repokitteh-read-only Bot removed the api label Dec 3, 2019
@htuch
htuch merged commit b78fc4e into envoyproxy:master Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When performing many DNS lookups in Kubernetes, Envoy becomes "stuck" to one DNS pod

3 participants