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

Bug 1879607: UPSTREAM: 95252: Kube-proxy: Perf-fix: Shrink INPUT chain #425

Merged
merged 1 commit into from Oct 27, 2020

Conversation

tssurya
Copy link

@tssurya tssurya commented Oct 26, 2020

What type of PR is this?

backport for kubernetes#95252

What this PR does / why we need it:

In kubernetes#56164, we had split the reject rules for non-ep existing services
into KUBE-EXTERNAL-SERVICES chain in order to avoid calling KUBE-SERVICES
from INPUT. However in kubernetes#74394 KUBE-SERVICES was re-added into INPUT.

As noted in kubernetes#56164, kernel is sensitive to the size of INPUT chain. This
patch refrains from calling the KUBE-SERVICES chain from INPUT and FORWARD,
instead adds the lb reject rule to the KUBE-EXTERNAL-SERVICES chain which will be
called from INPUT and FORWARD.

Special notes for your reviewer:

Conflicts:
pkg/proxy/iptables/proxier.go
Minor conflict due to 1f7ea16

Needs to be backported to oc-4.4

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Oct 26, 2020
@openshift-ci-robot
Copy link

@tssurya: This pull request references Bugzilla bug 1879607, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1879607: UPSTREAM 95252: Kube-proxy: Perf-fix: Shrink INPUT chain

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Oct 26, 2020
In kubernetes#56164, we had split the reject rules for non-ep existing services
into KUBE-EXTERNAL-SERVICES chain in order to avoid calling KUBE-SERVICES
from INPUT. However in kubernetes#74394 KUBE-SERVICES was re-added into INPUT.

As noted in kubernetes#56164, kernel is sensitive to the size of INPUT chain. This
patch refrains from calling the KUBE-SERVICES chain from INPUT and FORWARD,
instead adds the lb reject rule to the KUBE-EXTERNAL-SERVICES chain which will be
called from INPUT and FORWARD.

Conflicts:
    pkg/proxy/iptables/proxier.go
Minor conflict due to 1f7ea16
@tssurya tssurya changed the title Bug 1879607: UPSTREAM 95252: Kube-proxy: Perf-fix: Shrink INPUT chain Bug 1879607: UPSTREAM: 95252: Kube-proxy: Perf-fix: Shrink INPUT chain Oct 26, 2020
@danwinship
Copy link

/lgtm
though you'll need to look at the failed tests

It looks like other people are doing
/cherry-pick 4.6
for 4.6 backports. I think for 4.5 and 4.4 you should use the older process, where you patch the vendored copy of kubernetes in openshift/origin directly, rather than cherry-picking here first.

@openshift-cherrypick-robot

@danwinship: once the present PR merges, I will cherry-pick it on top of 4.6 in a new PR and assign it to you.

In response to this:

/lgtm
though you'll need to look at the failed tests

It looks like other people are doing
/cherry-pick 4.6
for 4.6 backports. I think for 4.5 and 4.4 you should use the older process, where you patch the vendored copy of kubernetes in openshift/origin directly, rather than cherry-picking here first.

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.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 26, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, tssurya

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 26, 2020
@tssurya
Copy link
Author

tssurya commented Oct 26, 2020

/retest

@tssurya
Copy link
Author

tssurya commented Oct 26, 2020

/lgtm
though you'll need to look at the failed tests

ack, looking into them

It looks like other people are doing
/cherry-pick 4.6

+1

for 4.6 backports. I think for 4.5 and 4.4 you should use the older process, where you patch the vendored copy of kubernetes in openshift/origin directly, rather than cherry-picking here first.

wokay, I'll take a look at how others did this and follow the procedure. thanks once again for the quick approval and response/help as usual :)

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

10 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@tssurya
Copy link
Author

tssurya commented Oct 27, 2020

there is something wrong with the e2e-agnostic-cmd job in general: https://prow.ci.openshift.org/job-history/gs/origin-ci-test/pr-logs/directory/pull-ci-openshift-kubernetes-master-e2e-agnostic-cmd ; doesn't seem related to this patch

/test e2e-agnostic-cmd

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 683b2e3 into openshift:master Oct 27, 2020
@openshift-ci-robot
Copy link

@tssurya: All pull requests linked via external trackers have merged:

Bugzilla bug 1879607 has been moved to the MODIFIED state.

In response to this:

Bug 1879607: UPSTREAM: 95252: Kube-proxy: Perf-fix: Shrink INPUT chain

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.

@openshift-cherrypick-robot

@danwinship: cannot checkout 4.6: error checking out 4.6: exit status 1. output: error: pathspec '4.6' did not match any file(s) known to git

In response to this:

/lgtm
though you'll need to look at the failed tests

It looks like other people are doing
/cherry-pick 4.6
for 4.6 backports. I think for 4.5 and 4.4 you should use the older process, where you patch the vendored copy of kubernetes in openshift/origin directly, rather than cherry-picking here first.

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.

@tssurya
Copy link
Author

tssurya commented Oct 27, 2020

/cherry-pick release-4.6

@openshift-cherrypick-robot

@tssurya: new pull request created: #430

In response to this:

/cherry-pick release-4.6

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants