-
Notifications
You must be signed in to change notification settings - Fork 193
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
fix: add serial format limit to fix OOM issue when formatting a few disks in parallel in csi-azuredisk-node #2616
Conversation
Hi @umagnus. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
/ok-to-test |
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.
pls also squash all commits, thx
pkg/azuredisk/azuredisk_option.go
Outdated
@@ -103,6 +105,8 @@ func (o *DriverOptions) AddFlags() *flag.FlagSet { | |||
fs.BoolVar(&o.DisableAVSetNodes, "disable-avset-nodes", false, "disable DisableAvailabilitySetNodes in cloud config for controller") | |||
fs.BoolVar(&o.RemoveNotReadyTaint, "remove-not-ready-taint", true, "remove NotReady taint from node when node is ready") | |||
fs.StringVar(&o.Endpoint, "endpoint", "unix://tmp/csi.sock", "CSI endpoint") | |||
fs.Int64Var(&o.MaxConcurrentFormat, "max-concurrent-format", 3, "maximum number of concurrent format exec calls") |
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.
set as 2
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.
done
pkg/azuredisk/azuredisk_option.go
Outdated
@@ -103,6 +105,8 @@ func (o *DriverOptions) AddFlags() *flag.FlagSet { | |||
fs.BoolVar(&o.DisableAVSetNodes, "disable-avset-nodes", false, "disable DisableAvailabilitySetNodes in cloud config for controller") | |||
fs.BoolVar(&o.RemoveNotReadyTaint, "remove-not-ready-taint", true, "remove NotReady taint from node when node is ready") | |||
fs.StringVar(&o.Endpoint, "endpoint", "unix://tmp/csi.sock", "CSI endpoint") | |||
fs.Int64Var(&o.MaxConcurrentFormat, "max-concurrent-format", 3, "maximum number of concurrent format exec calls") | |||
fs.Int64Var(&o.ConcurrentFormatTimeout, "concurrent-format-timeout", 60, "maximum time in seconds duration of a format operation before its concurrency token is released") |
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.
set as 2min
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.
done
/retest |
/retest |
1 similar comment
/retest |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, umagnus 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 |
/cherrypick release-1.31 |
/cherrypick release-1.30 |
@andyzhangx: new pull request created: #2622 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-sigs/prow repository. |
@andyzhangx: new pull request created: #2623 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-sigs/prow repository. |
/cherrypick release-1.29 |
@andyzhangx: #2616 failed to apply on top of branch "release-1.29":
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-sigs/prow repository. |
What type of PR is this?
/king bug
What this PR does / why we need it:
bug: add serial format limit to fix OOM issue when formatting a few disks in parallel in csi-azuredisk-node
add flags
max-concurrent-format
andconcurrent-format-timeout
as default 2 and 2 minutesrelated to change: kubernetes/kubernetes#115379
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: