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

add knobs for overriding qps / burst #3632

Merged
merged 3 commits into from
Jul 18, 2020

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Jul 18, 2020

Addresses #3591

Proposed Changes

  • Add flags for configuring the client qps / burst rates.

Release Note

- 🎁 Add new feature
Add two flags to broker to control rest client QPS / Burst. Defaults to same as before.

Docs

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 18, 2020
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 18, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vaikas

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 18, 2020
Comment on lines 31 to 32
clientQPS := flag.Float64("clientQPS", 5.0, "Overrides rest.Config.DefaultQPS.")
clientBurst := flag.Int("clientBurst", 10.0, "Overrides rest.Config.Burst.")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
clientQPS := flag.Float64("clientQPS", 5.0, "Overrides rest.Config.DefaultQPS.")
clientBurst := flag.Int("clientBurst", 10.0, "Overrides rest.Config.Burst.")
// TODO(https://github.com/knative/eventing/issues/3591): switch back to sharedmain.Main
clientQPS := flag.Float64("clientQPS", rest.DefaultQPS, "Overrides rest.Config.QPS.")
clientBurst := flag.Int("clientBurst", rest.DefaultBurst, "Overrides rest.Config.Burst.")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do this, but I think it would still be useful to expose some of these knobs for tuning things?

Copy link
Member

Choose a reason for hiding this comment

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

In the context here, we are exposing the knobs to raise the limits due to that linked issue, which is why I thought it most relevant here.

I agree the knobs are useful, but they probably belong in sharedmain, and ideally this would go back to being a fairly thin invocation of that.

cmd/mtchannel_broker/main.go Show resolved Hide resolved
@vaikas
Copy link
Contributor Author

vaikas commented Jul 18, 2020

Thanks, PTAL. I don't understand the unnecessary import by sockpuppet.

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 18, 2020
@knative-test-reporter-robot

The following jobs failed:

Test name Triggers Retries
pull-knative-eventing-integration-tests 2020-07-18 19:26:00.39 +0000 UTC 1/3

Automatically retrying due to test flakiness...
/test pull-knative-eventing-integration-tests

@knative-prow-robot knative-prow-robot merged commit 239f7fc into knative:master Jul 18, 2020
@vaikas vaikas deleted the config-qps branch July 19, 2020 01:17
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants