-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Implement ipvs util package #48994
Implement ipvs util package #48994
Conversation
Hi @m1093782566. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: m1093782566 Assign the PR to them by writing Associated issue: 46580 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/ok-to-test |
02870a2
to
f739843
Compare
f739843
to
c44efd1
Compare
aeeb512
to
a03d3b6
Compare
b21865f
to
aa86d0d
Compare
/test pull-kubernetes-kubemark-e2e-gce |
/test pull-kubernetes-kubemark-e2e-gce |
1 similar comment
/test pull-kubernetes-kubemark-e2e-gce |
ping @thockin |
@kubernetes/sig-network-pr-reviews. |
@m1093782566: Reiterating the mentions to trigger a notification: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
) | ||
|
||
// Interface is an injectable interface for running ipvs commands. Implementations must be goroutine-safe. | ||
type Interface interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to a more descriptive name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am so glad to receive your feedback. I just find the name in pkg/util/iptables, pkg/util/ipconfig, pkg/util/dbus is Interface
. I am open to change to a more descriptive name if possible, although I think name Interface
is more consistent with other util packages.
pkg/util/ipvs/ipvs.go
Outdated
Flush() error | ||
// EnsureDummyDevice checks if the specified dummy interface is present and, if not, creates it. If the dummy interface existed, return true. | ||
EnsureDummyDevice(dummyDev string) (exist bool, err error) | ||
// DeleteDummyDevice deletes the specified dummy interface. If the dummy interface existed, return error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if the dummy interface exist, DeleteDummyDevice should delete it instead of returning error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree. Will update the comment message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
aa86d0d
to
a5e2f5a
Compare
Thanks for your review, @feiskyer. I fixed or replied to your comments inline. |
a5e2f5a
to
2e86eaf
Compare
@m1093782566 Can you split Godeps change and imported (/vender) files into a separate commit? That makes the PR easier to review. |
2e86eaf
to
4211794
Compare
4211794
to
887da09
Compare
Thanks for your advice. This PR will always keep 2 commits:
|
/test pull-kubernetes-unit |
/test pull-kubernetes-bazel |
@m1093782566 PR needs rebase |
I am going to close this PR since we are working on #46580 now |
Automatic merge from submit-queue (batch tested with PRs 51377, 46580, 50998, 51466, 49749) Implement IPVS-based in-cluster service load balancing **What this PR does / why we need it**: Implement IPVS-based in-cluster service load balancing. It can provide some performance enhancement and some other benefits to kube-proxy while comparing iptables and userspace mode. Besides, it also support more sophisticated load balancing algorithms than iptables (least conns, weighted, hash and so on). **Which issue this PR fixes** #17470 #44063 **Special notes for your reviewer**: * Since the PR is a bit large, I splitted it and move the commits related to ipvs util pkg to PR #48994. Hopefully can make it easier to review. @thockin @quinton-hoole @kevin-wangzefeng @deepak-vij @haibinxie @dhilipkumars @fisherxu **Release note**: ```release-note Implement IPVS-based in-cluster service load balancing ```
What this PR does / why we need it:
This is a part of work "Implement IPVS-based in-cluster service load balancing"(#46580).
Since PR #46580 is too big to easily review, I split the original PR and group the commits related to ipvs util package and godeps into this PR in order to make it easier to review.
Which issue this PR fixes
#48992
Special notes for your reviewer:
This PR is a part of work #46580 and all comment in #46580 has been fixed to this PR. Reviewer can continue to comment in this PR. THANKS!
@thockin @quinton-hoole @bowei @freehan @kevin-wangzefeng @dhilipkumars
Release note::