-
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
[Remote Store] Add total upload and download time from remote store to nodes stats #9454
[Remote Store] Add total upload and download time from remote store to nodes stats #9454
Conversation
Signed-off-by: Shourya Dutta Biswas <[email protected]>
Signed-off-by: Shourya Dutta Biswas <[email protected]>
Compatibility status:Checks if related components are compatible with change 784a473 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/asynchronous-search.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #9454 +/- ##
============================================
- Coverage 71.21% 71.07% -0.14%
+ Complexity 57495 57445 -50
============================================
Files 4778 4778
Lines 270912 270971 +59
Branches 39585 39585
============================================
- Hits 192924 192600 -324
- Misses 61813 62169 +356
- Partials 16175 16202 +27
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/remote/RemoteSegmentStats.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/remote/RemoteSegmentStats.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/store/DirectoryFileTransferTracker.java
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.
Pls make the necessary changes.
Signed-off-by: Shourya Dutta Biswas <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Shourya Dutta Biswas <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
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.
lgtm
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]> (cherry picked from commit c90b6ea)
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]>
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]> Signed-off-by: Gagan Juneja <[email protected]>
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]> Signed-off-by: Kiran Reddy <[email protected]>
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]>
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
…o nodes stats (opensearch-project#9454) --------- Signed-off-by: Shourya Dutta Biswas <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Adding cumulative
total_time_spent
field in both downloading and uploading segments to remote store in NodesStats API output.This follows a similar trend as that of
merges.total_time_in_millis
available as of today: https://opensearch.org/docs/latest/api-reference/nodes-apis/nodes-stats/#indicesAlso, changing field types to Atomic for those which are being tracked on file level because of the upcoming parallel download and the already existing parallel upload logic. This ensures that the stats recording logic is thread-safe
Check List
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.