-
Notifications
You must be signed in to change notification settings - Fork 2k
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] Add tracker factory to manage remote store stats trackers #9546
[Remote Store] Add tracker factory to manage remote store stats trackers #9546
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change acf2041 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/asynchronous-search.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/reporting.git] |
0335986
to
7685bda
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change 188c7e2 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/asynchronous-search.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
server/src/main/java/org/opensearch/index/remote/RemoteSegmentTransferTracker.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/remote/RemoteStorePressureSettings.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/remote/RemoteStorePressureService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/indices/cluster/IndicesClusterStateService.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
...a/org/opensearch/action/admin/cluster/remotestore/stats/TransportRemoteStoreStatsAction.java
Outdated
Show resolved
Hide resolved
.../opensearch/action/admin/cluster/remotestore/stats/TransportRemoteStoreStatsActionTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/remote/RemoteSegmentTransferTrackerTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/remote/RemoteStorePressureServiceTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/remote/RemoteStoreStatsTrackerFactoryTests.java
Outdated
Show resolved
Hide resolved
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.
Have requested couple of changes, please take a look.
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.
the diff (since last approval) looks good.
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
…egmentTransferTrackerTests Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
…tory Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
…eSettings Signed-off-by: Bhumika Saini <sabhumik@amazon.com>
a364524
to
cc3884c
Compare
Compatibility status:Checks if related components are compatible with change cc3884c Incompatible componentsIncompatible components: [https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
…ers (opensearch-project#9546) --------- Signed-off-by: Bhumika Saini <sabhumik@amazon.com> Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
…ers (opensearch-project#9546) --------- Signed-off-by: Bhumika Saini <sabhumik@amazon.com> Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
…ers (opensearch-project#9546) --------- Signed-off-by: Bhumika Saini <sabhumik@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
RemoteSegmentTransferTracker
is strongly coupled withRemoteStorePressureService
.RemoteStorePressureService
is the provider of the trackers while it should just be consuming it. This PR decouplesRemoteSegmentTransferTracker
fromRemoteStorePressureService
by introducing the concept of a factory that manages the stats trackers.RemoteSegmentTransferTracker
allows setting a different moving average window size for upload bytes, upload speed, and upload time. These don't add much value and would rather deteriorate the user experience. We change these to apply a single window size for moving average stat calculations.Related Issues
#8311
Check List
Commit changes are listed out in CHANGELOG.md file (See: Changelog)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.