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

Increase segrep pressure checkpoint default limit to 30 #16577

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Nov 6, 2024

Description

The default segrep.pressure.time.limit is 5 mins , while default segrep.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 increases segrep.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

  • Functionality includes testing.
  • 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.

@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Nov 6, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

❌ 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?

Copy link
Contributor

github-actions bot commented Nov 6, 2024

❌ 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?

Copy link
Contributor

github-actions bot commented Nov 6, 2024

✅ Gradle check result for 3fef8c0: SUCCESS

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.07%. Comparing base (e688388) to head (b2ccfeb).
Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kotwanikunal kotwanikunal left a 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?

Copy link
Contributor

✅ Gradle check result for 67bdeaf: SUCCESS

@gbbafna gbbafna changed the title Increase segrep pressure checkpoint default limit to 10 Increase segrep pressure checkpoint default limit to 30 Nov 11, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

✅ Gradle check result for b2ccfeb: SUCCESS

@ashking94 ashking94 merged commit 10873f1 into opensearch-project:main Nov 11, 2024
39 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 11, 2024
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>
gbbafna pushed a commit that referenced this pull request Nov 12, 2024
)

(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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants