Skip to content

udp_proxy: added per packet load balancing possibility#18605

Merged
mattklein123 merged 10 commits intoenvoyproxy:mainfrom
michalmaka:per_packet_udp_load_balancing
Nov 19, 2021
Merged

udp_proxy: added per packet load balancing possibility#18605
mattklein123 merged 10 commits intoenvoyproxy:mainfrom
michalmaka:per_packet_udp_load_balancing

Conversation

@michalmaka
Copy link
Copy Markdown
Contributor

Signed-off-by: Michał Mąka m.maka@partner.samsung.com

Commit Message: udp_proxy: added per packet load balancing possibility which can be enabled via specifying 'use_per_packet_load_balancing' field
Additional Description:
This feature adds possibility to have per packet load balancing in UDP proxy. Currently, there is kind of sticky session, which means that once data was forwarded to specific upstream host, the host is also used for subsequent messages if timeout does not occur.
By default, current behavior is used, but if use_per_packet_load_balancing configuration flag is set to true, on each data receival, new upstream host is selected and receives that data.
Risk Level: Medium
Testing: unit test, manual testing
Docs Changes: Introduced description of the feature and a way it can be enabled
Release Notes: Added to current.rst
Platform Specific Features: N/A

@repokitteh-read-only
Copy link
Copy Markdown

Hi @michalmaka, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #18605 was opened by michalmaka.

see: more, trace.

@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #18605 was opened by michalmaka.

see: more, trace.

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 in general this makes sense to me. Some high level comments to get started. Thank you!

/wait

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.

Looks like it's heading on the right track, thanks. Please merge main and address the template issue and then I can look again.

/wait

Michal Maka added 2 commits November 12, 2021 10:23
Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
…unhealthy host

Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
@michalmaka michalmaka force-pushed the per_packet_udp_load_balancing branch from c58a593 to 0f2efb2 Compare November 12, 2021 09:42
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #18605 was synchronize by michalmaka.

see: more, trace.

Michal Maka added 2 commits November 12, 2021 10:49
…s base class was factored out

Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
Signed-off-by: Michal Maka <m.maka@partner.samsung.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 looking good. A couple of other high level questions.

/wait

Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
Signed-off-by: Michal Maka <m.maka@partner.samsung.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 generally LGTM. Just a few small comments and please revert any change that isn't needed anymore due to the simpler implementation.

/wait

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 one remaining small nit/question.

/wait-any

@mattklein123
Copy link
Copy Markdown
Member

Can you fix DCO?

/wait

Michal Maka added 3 commits November 18, 2021 23:20
Co-authored-by: Matt Klein <mattklein123@gmail.com>

Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
Signed-off-by: Michal Maka <m.maka@partner.samsung.com>
@michalmaka michalmaka force-pushed the per_packet_udp_load_balancing branch from 2047fcf to a0fd8b1 Compare November 18, 2021 22:28
@michalmaka
Copy link
Copy Markdown
Contributor Author

Can you fix DCO?

/wait

Done

@mattklein123
Copy link
Copy Markdown
Member

/retest

@repokitteh-read-only
Copy link
Copy Markdown

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18605 (comment) was created by @mattklein123.

see: more, trace.

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, nice work!

@mattklein123 mattklein123 merged commit 23e5fc2 into envoyproxy:main Nov 19, 2021
@michalmaka
Copy link
Copy Markdown
Contributor Author

thanks!

@michalmaka michalmaka deleted the per_packet_udp_load_balancing branch November 22, 2021 06:43
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.

3 participants