-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Increase segrep pressure checkpoint default limit to 30 #16577
Conversation
4f8107d
to
965595e
Compare
❌ Gradle check result for 965595e: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
965595e
to
b14c7c8
Compare
❌ Gradle check result for b14c7c8: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
b14c7c8
to
3fef8c0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16577 +/- ##
============================================
- Coverage 72.15% 72.07% -0.08%
+ Complexity 65128 65084 -44
============================================
Files 5315 5315
Lines 303573 303573
Branches 43925 43925
============================================
- Hits 219036 218807 -229
- Misses 66565 66773 +208
- Partials 17972 17993 +21 ☔ 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.
@gbbafna - Users who upgrade to this release will have the default value updated without them noticing. Do you think it makes sense to document this as a part of release highlights?
server/src/main/java/org/opensearch/index/SegmentReplicationPressureService.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/SegmentReplicationPressureServiceTests.java
Show resolved
Hide resolved
3fef8c0
to
67bdeaf
Compare
Signed-off-by: Gaurav Bafna <[email protected]>
67bdeaf
to
b2ccfeb
Compare
Signed-off-by: Gaurav Bafna <[email protected]> (cherry picked from commit 10873f1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
) (cherry picked from commit 10873f1) Signed-off-by: Gaurav Bafna <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
The default
segrep.pressure.time.limit
is 5 mins , while defaultsegrep.pressure.checkpoint.limit
is just 4 which only allows for 40 sec lag given the refresh interval of 10 secs . Though the default refresh interval is 1sec, for remote backed clusters, we advice >10 sec due to prohibitive costs and high resource consumption of segment upload every sec. This PR increasessegrep.pressure.checkpoint.limit
to 10 so that both checkpoint limit and time limit equates to same 300 sec and we don't give unnecessary rejections to the user .This relaxation is due to the fact that we don't have multipart download or block level fetches in download part, hence the observed lag on clusters are on a higher side (100s of seconds) during force merges .
Check List
API changes companion pull request created, if applicable.Public documentation issue/PR created, if applicable.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.