Skip to content

dns: adjust DNS refresh rate respecting to record TTL#6975

Merged
mattklein123 merged 34 commits intoenvoyproxy:masterfrom
yxue:feature/dnsttl-2
Jul 1, 2019
Merged

dns: adjust DNS refresh rate respecting to record TTL#6975
mattklein123 merged 34 commits intoenvoyproxy:masterfrom
yxue:feature/dnsttl-2

Conversation

@yxue
Copy link
Copy Markdown
Member

@yxue yxue commented May 16, 2019

Signed-off-by: Yan Xue yxyan@google.com

Description: Querying record TTL when resolving the host name and adjust DNS refresh rate respecting to record TTL.
Risk Level: Medium
Testing: unit test
Docs Changes: https://github.com/envoyproxy/envoy/pull/6975/files#diff-cc6a4f8b8abf46253b0f3e14392ca6e9

Release Notes: https://github.com/envoyproxy/envoy/pull/6975/files#diff-d8d3e33358b55e6c0466dd1bb5f40c79
Fixes #Issue: #6876

Signed-off-by: Yan Xue <yxyan@google.com>
@mattklein123
Copy link
Copy Markdown
Member

@crazyxy thanks for this. I haven't reviewed this, but a quick drive by that this definitely needs to be configurable and also needs documentation and release notes. Thank you!

Signed-off-by: Yan Xue <yxyan@google.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. 2 big questions to get started.

/wait

yxue added 5 commits May 17, 2019 12:40
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
@yxue
Copy link
Copy Markdown
Member Author

yxue commented May 17, 2019

@crazyxy thanks for this. I haven't reviewed this, but a quick drive by that this definitely needs to be configurable and also needs documentation and release notes. Thank you!

Add configurable, documentation and release notes.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks. I still would like to hear from @htuch on the general approach to this change. Given how scary this change is IMO, I wonder if we should runtime guard this new code and allow reverting to the old path (or maybe only do the new code version if the user requests TTL usage)? @htuch WDYT?

/wait

Signed-off-by: Yan Xue <yxyan@google.com>
Copy link
Copy Markdown
Contributor

@lambdai lambdai left a comment

Choose a reason for hiding this comment

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

Have some comments in case you select not to change at upstream

yxue added 2 commits May 20, 2019 12:03
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
@stale
Copy link
Copy Markdown

stale bot commented May 29, 2019

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 May 29, 2019
@stale
Copy link
Copy Markdown

stale bot commented Jun 5, 2019

This pull request has been automatically closed because it has not had activity in the last 14 days. 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 closed this Jun 5, 2019
@htuch
Copy link
Copy Markdown
Member

htuch commented Jun 7, 2019

Looks like c-ares/c-ares#259 has some progress..

@yxue
Copy link
Copy Markdown
Member Author

yxue commented Jun 7, 2019

Looks like c-ares/c-ares#259 has some progress..

Not actually. c-ares/c-ares#257 hasn't been merged. 😟

Signed-off-by: crazyxy <yxyan@google.com>
yxue added 2 commits June 24, 2019 16:33
Signed-off-by: crazyxy <yxyan@google.com>
Signed-off-by: crazyxy <yxyan@google.com>
@yxue
Copy link
Copy Markdown
Member Author

yxue commented Jun 25, 2019

@mattklein123 @htuch I created another small pr to switch to ares_getaddrinfo. I will send the second one after the first one is merged. PTAL, thanks!

htuch pushed a commit that referenced this pull request Jun 27, 2019
Upgrade c-ares. Part of #6975

Description: Upgrade c-ares. Switch from ares_gethostbyname to ares_getaddrinfo
Risk Level: Med
Testing: Unit test
Docs Changes: N/A
Release Notes:

Signed-off-by: crazyxy <yxyan@google.com>
yxue added 2 commits June 27, 2019 16:03
Signed-off-by: crazyxy <yxyan@google.com>
Signed-off-by: crazyxy <yxyan@google.com>
@yxue
Copy link
Copy Markdown
Member Author

yxue commented Jun 28, 2019

@mattklein123 @htuch I merged the pr from the upstream to upgrade c-ares and updated this pr. Could you please take a look? Thanks!

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Implementation LGTM, I'll leave coverage of tests and final merge to @mattklein123. Thanks!

Signed-off-by: crazyxy <yxyan@google.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM with some small comments. Great work!

/wait

Signed-off-by: crazyxy <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
yxue added 3 commits July 1, 2019 10:08
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Signed-off-by: Yan Xue <yxyan@google.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mattklein123 mattklein123 merged commit e0e7628 into envoyproxy:master Jul 1, 2019
@yxue yxue deleted the feature/dnsttl-2 branch July 14, 2019 02:25
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.

4 participants