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 1734009: Unidling: minimize iptables lock contention #23426

Merged
merged 5 commits into from Aug 26, 2019
Merged

Bug 1734009: Unidling: minimize iptables lock contention #23426

merged 5 commits into from Aug 26, 2019

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Jul 18, 2019

This PR includes

  • backport of upstream PR 71735, which moves the userspace proxy over to an asynchronous model
  • Changes needed to use that backport
  • A small carry patch that lets us tweak the proxy internals slightly
  • A patch that combines both proxy's sync loops, preventing lock contention

Fixes: BZ 1699341

@openshift-ci-robot
Copy link

@squeed: This pull request references a valid Bugzilla bug. 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.

In response to this:

Bug 1699341: Unidling: minimize iptables lock contention

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 Jul 18, 2019
@squeed
Copy link
Contributor Author

squeed commented Jul 18, 2019

@dcbw PTAL, thanks!

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 18, 2019
@squeed
Copy link
Contributor Author

squeed commented Jul 18, 2019

Uh, unit test failures have nothing to do with this. Is origin broken?

@danwinship
Copy link
Contributor

/hold
This needs to be fixed in master and 4.1 before it can be fixed in 3.11

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 18, 2019
@squeed
Copy link
Contributor Author

squeed commented Jul 18, 2019

This needs to be fixed in master and 4.1 before it can be fixed in 3.11

Yup. I just picked up 3.11 first, since there already was the backport and the sdn repo was being migrated as I started work.

@dcbw
Copy link
Contributor

dcbw commented Jul 18, 2019

@squeed are you sure you want the hybrid-proxy: bump debug level commit? I believe that was just for local debugging to make sure unidling was working.

@dcbw
Copy link
Contributor

dcbw commented Jul 18, 2019

@squeed could also squash these two together:

UPSTREAM: 71735: proxy/userspace: respect minSyncInterval
proxy: consolidate ServicesHandler/EndpointsHandler into ProxyProvider

@dcbw
Copy link
Contributor

dcbw commented Jul 18, 2019

otherwise looks good to me

@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 26, 2019
Proxies should be able to cleanly figure out when endpoints have been synced,
so make all ProxyProviders also implement EndpointsHandler and pass those
through to loadbalancers when required.
@squeed squeed changed the title Bug 1699341: Unidling: minimize iptables lock contention Bug 1734009: Unidling: minimize iptables lock contention Jul 29, 2019
@openshift-ci-robot openshift-ci-robot added bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. and removed bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jul 29, 2019
@openshift-ci-robot
Copy link

@squeed: This pull request references an invalid Bugzilla bug:

  • expected dependent Bugzilla bug to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), but it is POST instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1734009: Unidling: minimize iptables lock contention

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.

@nstielau
Copy link

nstielau commented Aug 6, 2019

Are we good to merge this so we can get it in August 12th 3.11.z?

@squeed
Copy link
Contributor Author

squeed commented Aug 8, 2019

/bugzilla refresh

@openshift-ci-robot
Copy link

@squeed: This pull request references a valid Bugzilla bug. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/bugzilla refresh

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 Aug 8, 2019
@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Aug 8, 2019
@squeed
Copy link
Contributor Author

squeed commented Aug 8, 2019

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 8, 2019
@bparees
Copy link
Contributor

bparees commented Aug 8, 2019

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2019
}

func (proxy *OsdnProxy) OnServiceAdd(service *kapi.Service) {
glog.V(2).Infof("sdn proxy: add svc %s/%s: %v", service.Namespace, service.Name, service)
Copy link
Contributor

Choose a reason for hiding this comment

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

@squeed I guess this is a leftover from my original patches.

@dcbw
Copy link
Contributor

dcbw commented Aug 26, 2019

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, dcbw, squeed

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-merge-robot openshift-merge-robot merged commit 30ff1fa into openshift:release-3.11 Aug 26, 2019
@openshift-ci-robot
Copy link

@squeed: All pull requests linked via external trackers have merged. Bugzilla bug 1734009 has been moved to the MODIFIED state.

In response to this:

Bug 1734009: Unidling: minimize iptables lock contention

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/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. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants