Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Egress QoS support #5425

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Egress QoS support #5425

merged 2 commits into from
Oct 26, 2023

Conversation

GraysonWu
Copy link
Contributor

@GraysonWu GraysonWu commented Aug 22, 2023

Fixes #2766

Add rate-limit config to Egress specifying the rate limit of
north-south egress traffic of this Egress. All backend workloads
selected by a rate-limited Egress share the same bandwidth while
sending egress traffic via this Egress. An Egress with rateLimit
specified cannot share EgressIP with any other Egresses.

@GraysonWu GraysonWu requested review from wenyingd and tnqn August 22, 2023 15:47
@GraysonWu GraysonWu force-pushed the egress-qos branch 12 times, most recently from 36eb7ea to e640a44 Compare September 13, 2023 01:59
@GraysonWu GraysonWu changed the title [WIP] Egress QoS support Egress QoS support Sep 13, 2023
@GraysonWu GraysonWu force-pushed the egress-qos branch 3 times, most recently from 3495e11 to 638c0f4 Compare September 13, 2023 21:18
@GraysonWu GraysonWu requested review from Dyanngg and wenyingd and removed request for wenyingd September 13, 2023 22:39
docs/egress.md Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
@luolanzone
Copy link
Contributor

@GraysonWu please help update the PR summary if this PR can resolve the issue #2766

@luolanzone
Copy link
Contributor

luolanzone commented Sep 25, 2023

Hi @GraysonWu please help to resolve the code conflicts and check if possible to improve the patch unit test coverage. Thanks.

@GraysonWu GraysonWu force-pushed the egress-qos branch 5 times, most recently from 6f9c3c1 to 169b417 Compare September 27, 2023 05:11
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM overall

pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
pkg/apis/crd/v1beta1/types.go Outdated Show resolved Hide resolved
pkg/agent/openflow/client_test.go Outdated Show resolved Hide resolved
test/e2e/egress_test.go Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
test/e2e/egress_test.go Outdated Show resolved Hide resolved
test/e2e/egress_test.go Outdated Show resolved Hide resolved
test/e2e/egress_test.go Outdated Show resolved Hide resolved
test/e2e/egress_test.go Show resolved Hide resolved
@GraysonWu GraysonWu force-pushed the egress-qos branch 2 times, most recently from 24676c4 to a2c64d5 Compare October 23, 2023 07:14
Copy link
Member

@tnqn tnqn 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, doc needs update, and the flake of burst should be addressed.

docs/egress.md Outdated Show resolved Hide resolved
docs/egress.md Outdated Show resolved Hide resolved
pkg/agent/controller/egress/egress_controller.go Outdated Show resolved Hide resolved
Comment on lines +1104 to +1105
// Openflow bundle message doesn't support meter. Add meter individually instead of
// calling AddOFEntries function.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you know too @GraysonWu ?

pkg/agent/openflow/client_test.go Outdated Show resolved Hide resolved
pkg/agent/openflow/client_test.go Outdated Show resolved Hide resolved
pkg/agent/openflow/client_test.go Outdated Show resolved Hide resolved
pkg/agent/openflow/client_test.go Outdated Show resolved Hide resolved
pkg/agent/openflow/packetin.go Outdated Show resolved Hide resolved
pkg/agent/openflow/packetin.go Show resolved Hide resolved
test/e2e/egress_test.go Show resolved Hide resolved
@GraysonWu GraysonWu force-pushed the egress-qos branch 2 times, most recently from bca28da to f8460b2 Compare October 24, 2023 03:26
@GraysonWu
Copy link
Contributor Author

/test-all

@GraysonWu
Copy link
Contributor Author

/test-conformance

@GraysonWu
Copy link
Contributor Author

/test-e2e
/test-networkpolicy

@GraysonWu
Copy link
Contributor Author

/test-e2e

tnqn
tnqn previously approved these changes Oct 24, 2023
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM, still a nit, but I'm fine to address it later via another PR if all tests have passed.

docs/egress.md Outdated Show resolved Hide resolved
@tnqn
Copy link
Member

tnqn commented Oct 24, 2023

@antoninbas feel free to merge once it looks good to you.

docs/egress.md Outdated Show resolved Hide resolved
@GraysonWu
Copy link
Contributor Author

/test-all

tnqn
tnqn previously approved these changes Oct 25, 2023
@tnqn
Copy link
Member

tnqn commented Oct 26, 2023

@antoninbas @jianjuns it seems all of your comments have been addressed, could you confirm if the PR looks good to you?

Add `bandwidth` to Egress specifying the rate limit of
north-south egress traffic of this Egress. All backend workloads
selected by a rate-limited Egress share the same bandwidth while
sending egress traffic via this Egress.

Signed-off-by: graysonwu <[email protected]>
Signed-off-by: graysonwu <[email protected]>
@GraysonWu
Copy link
Contributor Author

Fixed merge conflicts.

@GraysonWu
Copy link
Contributor Author

/test-all

@antoninbas antoninbas merged commit ffc6495 into antrea-io:main Oct 26, 2023
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.

Should we need to add QoS policy in Egress feature?
6 participants