-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Segment Replication] Adding segment replication statistics rolled up at index, node and cluster level #9709
Conversation
Gradle Check (Jenkins) Run Completed with:
|
...er/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationIT.java
Outdated
Show resolved
Hide resolved
server/src/internalClusterTest/java/org/opensearch/indices/stats/IndexStatsIT.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/ReplicationStats.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/shard/IndexShard.java
Outdated
Show resolved
Hide resolved
Compatibility status:Checks if related components are compatible with change 3bef3a3 Incompatible componentsSkipped 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/security-analytics.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/opensearch-oci-object-storage.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change c0c20a2 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
Signed-off-by: Poojita Raj <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change 01d4dfe Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
@Poojita-Raj Bwc tests are failing because of wire compatibility of the new field. We need to PR here with 3_0_0, then on the backport to 2.x flip it to 2_10_0, then make another PR to main to flip to 2_10_0. |
Signed-off-by: Poojita Raj <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change 0e64471 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #9709 +/- ##
============================================
- Coverage 71.07% 71.04% -0.04%
- Complexity 57814 57858 +44
============================================
Files 4815 4816 +1
Lines 272709 272763 +54
Branches 39792 39795 +3
============================================
- Hits 193839 193794 -45
- Misses 62622 62690 +68
- Partials 16248 16279 +31
|
Signed-off-by: Rishikesh Pasham <[email protected]>
Compatibility status:Checks if related components are compatible with change 7ad9831 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/neural-search.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git] |
Gradle Check (Jenkins) Run Completed with:
|
|
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-9709-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 aa8367027cddd727cb7da4563187ecfc59dc6ad8
# Push it to GitHub
git push --set-upstream origin backport/backport-9709-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
@Poojita-Raj @mch2 : Seems like we need manual backport for this change. |
… at index, node and cluster level (opensearch-project#9709) * add node stats for segrep Signed-off-by: Poojita Raj <[email protected]> * comment removal Signed-off-by: Poojita Raj <[email protected]> * changelog Signed-off-by: Poojita Raj <[email protected]> * address review comments Signed-off-by: Poojita Raj <[email protected]> * move segrep stats to segments Signed-off-by: Poojita Raj <[email protected]> * fix failures Signed-off-by: Poojita Raj <[email protected]> * uniform response for docrep and segrep segment stats Signed-off-by: Poojita Raj <[email protected]> * remove pri check Signed-off-by: Poojita Raj <[email protected]> * version 3.0 Signed-off-by: Poojita Raj <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]>
… at index, node and cluster level (#9709) (#9741) * [Segment Replication] Adding segment replication statistics rolled up at index, node and cluster level (#9709) * add node stats for segrep Signed-off-by: Poojita Raj <[email protected]> * comment removal Signed-off-by: Poojita Raj <[email protected]> * changelog Signed-off-by: Poojita Raj <[email protected]> * address review comments Signed-off-by: Poojita Raj <[email protected]> * move segrep stats to segments Signed-off-by: Poojita Raj <[email protected]> * fix failures Signed-off-by: Poojita Raj <[email protected]> * uniform response for docrep and segrep segment stats Signed-off-by: Poojita Raj <[email protected]> * remove pri check Signed-off-by: Poojita Raj <[email protected]> * version 3.0 Signed-off-by: Poojita Raj <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]> * Change bwc version to 2.10 from 3.0 Signed-off-by: Suraj Singh <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Signed-off-by: Suraj Singh <[email protected]> Co-authored-by: Poojita Raj <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]>
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.index; |
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.
Sorry didn't catch this - lets move this to indices.replication package?
… at index, node and cluster level (opensearch-project#9709) * add node stats for segrep Signed-off-by: Poojita Raj <[email protected]> * comment removal Signed-off-by: Poojita Raj <[email protected]> * changelog Signed-off-by: Poojita Raj <[email protected]> * address review comments Signed-off-by: Poojita Raj <[email protected]> * move segrep stats to segments Signed-off-by: Poojita Raj <[email protected]> * fix failures Signed-off-by: Poojita Raj <[email protected]> * uniform response for docrep and segrep segment stats Signed-off-by: Poojita Raj <[email protected]> * remove pri check Signed-off-by: Poojita Raj <[email protected]> * version 3.0 Signed-off-by: Poojita Raj <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
… at index, node and cluster level (opensearch-project#9709) * add node stats for segrep Signed-off-by: Poojita Raj <[email protected]> * comment removal Signed-off-by: Poojita Raj <[email protected]> * changelog Signed-off-by: Poojita Raj <[email protected]> * address review comments Signed-off-by: Poojita Raj <[email protected]> * move segrep stats to segments Signed-off-by: Poojita Raj <[email protected]> * fix failures Signed-off-by: Poojita Raj <[email protected]> * uniform response for docrep and segrep segment stats Signed-off-by: Poojita Raj <[email protected]> * remove pri check Signed-off-by: Poojita Raj <[email protected]> * version 3.0 Signed-off-by: Poojita Raj <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
… at index, node and cluster level (opensearch-project#9709) * add node stats for segrep Signed-off-by: Poojita Raj <[email protected]> * comment removal Signed-off-by: Poojita Raj <[email protected]> * changelog Signed-off-by: Poojita Raj <[email protected]> * address review comments Signed-off-by: Poojita Raj <[email protected]> * move segrep stats to segments Signed-off-by: Poojita Raj <[email protected]> * fix failures Signed-off-by: Poojita Raj <[email protected]> * uniform response for docrep and segrep segment stats Signed-off-by: Poojita Raj <[email protected]> * remove pri check Signed-off-by: Poojita Raj <[email protected]> * version 3.0 Signed-off-by: Poojita Raj <[email protected]> --------- Signed-off-by: Poojita Raj <[email protected]> Signed-off-by: Rishikesh Pasham <[email protected]> Co-authored-by: Rishikesh Pasham <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Surfaces existing segment replication statistics -
(1) maxBytesBehind
(2) totalBytesBehind and
(3) maxReplicationLag
at an index, node and cluster level.
Related Issues
Resolves #9417
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.