-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: decrease the reconnect delay of v2 volume nvme initiator #164
Conversation
The current default value for --reconnect-delay is 10 seconds. We can reduce this value to 2 seconds. - Advantages: Faster IO resumption post-upgrade - Disadvantages: Increased frequency of retries Longhorn 9818 Signed-off-by: Derek Su <[email protected]>
WalkthroughThe changes in this pull request involve modifying the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (1)pkg/nvme/nvmecli.go (1)
The reduction of Consider:
Let's verify if there are any other timeouts or delays that might need adjustment to work harmoniously with this change: ✅ Verification successfulBased on the verification results, I can now generate the final response: Verified: Reconnect delay change is safe and isolated The change to
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for related timeout/delay configurations
rg -n '(timeout|delay|tmo).*=.*[0-9]+' --type go
# Search for any existing monitoring of reconnection attempts
rg -n '(reconnect|retry).*metrics?' --type go
Length of output: 694 Script: #!/bin/bash
# Let's search for the usage of defaultReconnectDelay and any related connection parameters
ast-grep --pattern 'defaultReconnectDelay'
# Search for nvme connect command usage and parameters
rg -n 'nvme.*connect.*-.*delay' --type go -A 3 -B 3
# Search for any retry or reconnect logic
rg -n 'func.*(connect|reconnect)' --type go -A 5
Length of output: 34845 Script: #!/bin/bash
# Let's search for any other timeout or delay configurations in the NVMe related code
rg -n '(timeout|delay).*=.*[0-9]+' pkg/nvme/ -A 2 -B 2
# Search for any comments or documentation about reconnection behavior
rg -n 'reconnect' pkg/nvme/ --type go -A 2 -B 2
Length of output: 415 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #164 +/- ##
=======================================
Coverage 22.89% 22.89%
=======================================
Files 34 34
Lines 4813 4813
=======================================
Hits 1102 1102
Misses 3537 3537
Partials 174 174
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
It's ok for me, 2 is also the default value we have in go-spdk-helper
for BdevNvmeAttachController
.
Which issue(s) this PR fixes:
Issue longhorn/longhorn#9818
What this PR does / why we need it:
The current default value for --reconnect-delay is 10 seconds. We can reduce this value to 2 seconds.
Special notes for your reviewer:
Additional documentation or context