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

make worker-threads configurable #175

Merged
merged 1 commit into from
Aug 22, 2019

Conversation

hoyho
Copy link
Contributor

@hoyho hoyho commented Aug 15, 2019

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind api-change
/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test

/kind feature

/kind flake

What this PR does / why we need it:
Currently, external-attacher has a hard coded thread count.
However, when user create lot of Pod and PVC currently.
10 thread is not enough to sync VolumeAttachment and PV or it will take
a bit longer time than expected.
Add a configurable flag so that user can configure a suitable value according to their own cluster scale and situation.

Which issue(s) this PR fixes:

Fixes #172

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Adds a new flag `--worker-threads` to control the number of goroutines for processing VolumeAttachments. The default value is 10 workers.

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 15, 2019
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 15, 2019
Copy link
Contributor

@jsafrane jsafrane left a comment

Choose a reason for hiding this comment

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

Please update also README.md!

cmd/csi-attacher/main.go Outdated Show resolved Hide resolved
@jsafrane
Copy link
Contributor

And please edit the release note - it's a change that worth having there.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 16, 2019
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-none Denotes a PR that doesn't merit a release note. labels Aug 20, 2019
cmd/csi-attacher/main.go Outdated Show resolved Hide resolved
@msau42
Copy link
Collaborator

msau42 commented Aug 20, 2019

I also updated the wording of the release note. ptal

@hoyho
Copy link
Contributor Author

hoyho commented Aug 22, 2019

PTAL @msau42 @jsafrane

@msau42
Copy link
Collaborator

msau42 commented Aug 22, 2019

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 22, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hoyho, msau42

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 22, 2019
@k8s-ci-robot k8s-ci-robot merged commit ea63959 into kubernetes-csi:master Aug 22, 2019
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

Make worker count configurable
4 participants