Skip to content

WiP: Intelligent listener#9773

Closed
lambdai wants to merge 34 commits intoenvoyproxy:masterfrom
lambdai:intellistener
Closed

WiP: Intelligent listener#9773
lambdai wants to merge 34 commits intoenvoyproxy:masterfrom
lambdai:intellistener

Conversation

@lambdai
Copy link
Copy Markdown
Contributor

@lambdai lambdai commented Jan 22, 2020

Description:
Intelligent listener update. Design doc: https://docs.google.com/document/d/1fjud3xSNRxxEwAWR1COsDnViB4FtTKTFgfQVW0IPU0c/edit#

The major risk originates from the fact that many references have subtle life time change.
[x] Happy path review
[ ] Structure review
[ ] readability, risk mitigation
[ ] tests
[ ] how smart the LDS could be

Risk Level: Mid, lifetime issue
Testing: TBD

Very early version: tons of tests are broken

lambdai added 12 commits January 8, 2020 19:59
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@lambdai lambdai requested a review from mattklein123 January 22, 2020 10:49
@mattklein123 mattklein123 self-assigned this Jan 22, 2020
@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Jan 22, 2020

Master thread happy code path
old onListenerWarmed, new onIntelligentListenerWarmed
old addListenerToWorker+drainListener, new addIntelligentListenerToWorker+drainFilterChains

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. I'm starting first with an interface review and then we can go from there. Thank you!

/wait

@stale
Copy link
Copy Markdown

stale bot commented Feb 3, 2020

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 Feb 3, 2020
@stale
Copy link
Copy Markdown

stale bot commented Feb 10, 2020

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 Feb 10, 2020
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Feb 24, 2020

@mattklein123 Thank you for the patience and I am back on this stuff. Could you reopen this PR?

The update:

  1. merged the two flow as required.
  2. rewrite removeUntrackedFilterChains and related TODOs: listener manager provides the filter chains collection to remove
  3. add WIP integration tests: No matter the implementation details are, the goal is to allow connections survive the lds update.

@mattklein123 mattklein123 reopened this Feb 24, 2020
@stale stale bot removed the stale stalebot believes this issue/PR has not been touched recently label Feb 24, 2020
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
lambdai added 2 commits March 3, 2020 01:06
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
lambdai added 5 commits March 4, 2020 04:11
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
lambdai added 2 commits March 11, 2020 23:02
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@mattklein123
Copy link
Copy Markdown
Member

@lambdai I know you are still working on this, but please start to think about how to split this up into multiple PRs. Thank you!

Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Mar 13, 2020

@mattklein123 Could you add this PR to your review queue?

@mattklein123
Copy link
Copy Markdown
Member

@lambdai is this still WIP? Per prior comment this PR is too big. Can you figure out how to split it up please? Thank you.

/wait

@lambdai
Copy link
Copy Markdown
Contributor Author

lambdai commented Mar 21, 2020

Sorry I spent huge time on the another task.

I am splitting this PR into

  1. introducing the factory context impl, which listener filter factory context and network factory context would have separate life time.
  2. New interface to worker and listener manager so that ConnectionHandler could support network filter chain update.
  3. The smart decision at ListenerManagerImpl which is powered by 1 and 2

@stale
Copy link
Copy Markdown

stale bot commented Mar 28, 2020

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 Mar 28, 2020
@stale
Copy link
Copy Markdown

stale bot commented Apr 4, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale stalebot believes this issue/PR has not been touched recently waiting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants