Skip to content

cluster manager: add optional host predicate to drainConnections()#21074

Merged
mattklein123 merged 4 commits intomainfrom
host-predicate
Apr 29, 2022
Merged

cluster manager: add optional host predicate to drainConnections()#21074
mattklein123 merged 4 commits intomainfrom
host-predicate

Conversation

@mattklein123
Copy link
Member

This will allow EM to selectively drain connections based on hostname(),
for example.

Risk Level: Low
Testing: New integration test
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

This will allow EM to selectively drain connections based on hostname(),
for example.

Signed-off-by: Matt Klein <mklein@lyft.com>
alyssawilk
alyssawilk previously approved these changes Apr 28, 2022
Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

code LGTM but I'd like a bit more testing, either here or in a follow up.

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
alyssawilk
alyssawilk previously approved these changes Apr 28, 2022
Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

thanks!

@mattklein123
Copy link
Member Author

I'm still trying to figure out a unit test but it's not so easy. I might merge this and then do another PR but I will see how it goes.

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123 mattklein123 enabled auto-merge (squash) April 28, 2022 22:17
@mattklein123 mattklein123 merged commit 75aa6b5 into main Apr 29, 2022
@mattklein123 mattklein123 deleted the host-predicate branch May 8, 2022 17:01
ravenblackx pushed a commit to ravenblackx/envoy that referenced this pull request Jun 8, 2022
…nvoyproxy#21074)

This will allow EM to selectively drain connections based on hostname(),
for example.

Signed-off-by: Matt Klein <mklein@lyft.com>
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