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

[Remote Store] Rate limiter for low priority uploads #14374

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

gbbafna
Copy link
Collaborator

@gbbafna gbbafna commented Jun 15, 2024

Description

We have rate limiter for remote uploads . However we don't have a way to control the low priority upload . In absence of this, our rate limits both high priority as well as low priority uploads. We introduce Rate limiter for low priority uploads to solve this.

Related Issues

Resolves #14373

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.

@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Storage:Remote labels Jun 15, 2024
@gbbafna gbbafna added backport 2.x Backport to 2.x branch and removed enhancement Enhancement or improvement to existing feature or request Storage:Remote labels Jun 15, 2024
@gbbafna gbbafna requested a review from shourya035 June 15, 2024 09:33
@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Storage:Remote labels Jun 15, 2024
Copy link
Member

@shourya035 shourya035 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

❕ Gradle check result for 913b742: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Jun 15, 2024

Codecov Report

Attention: Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.

Project coverage is 71.76%. Comparing base (b15cb0c) to head (aebb7c6).
Report is 441 commits behind head on main.

Files Patch % Lines
...ch/repositories/blobstore/BlobStoreRepository.java 37.50% 5 Missing ⚠️
...va/org/opensearch/index/store/RemoteDirectory.java 42.85% 3 Missing and 1 partial ⚠️
.../org/opensearch/repositories/FilterRepository.java 0.00% 1 Missing ⚠️
...n/java/org/opensearch/repositories/Repository.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14374      +/-   ##
============================================
+ Coverage     71.42%   71.76%   +0.34%     
- Complexity    59978    62114    +2136     
============================================
  Files          4985     5118     +133     
  Lines        282275   291845    +9570     
  Branches      40946    42189    +1243     
============================================
+ Hits         201603   209451    +7848     
- Misses        63999    65094    +1095     
- Partials      16673    17300     +627     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Copy link
Contributor

✅ Gradle check result for bd30dac: SUCCESS

Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
Copy link
Contributor

❕ Gradle check result for aebb7c6: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.gateway.RecoveryFromGatewayIT.testMultipleReplicaShardAssignmentWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@sachinpkale sachinpkale merged commit e22b651 into opensearch-project:main Jun 18, 2024
30 of 32 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 18, 2024
---------
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit e22b651)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
gbbafna pushed a commit that referenced this pull request Jun 19, 2024
---------
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit e22b651)
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>
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Jul 12, 2024
…ect#14374)

---------
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ect#14374) (opensearch-project#14421)

---------
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
(cherry picked from commit e22b651)
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>
Signed-off-by: kkewwei <kkewwei@163.com>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
…ect#14374)

---------
Signed-off-by: Gaurav Bafna <gbbafna@amazon.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 enhancement Enhancement or improvement to existing feature or request Storage:Remote
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Feature Request] Rate limiter for remote store low priority uploads
3 participants