-
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
Adds latency metrics for ClusterState Appliers and Listeners #12333
Adds latency metrics for ClusterState Appliers and Listeners #12333
Conversation
Compatibility status:Checks if related components are compatible with change 985b048 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git] |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12333 +/- ##
============================================
- Coverage 71.42% 71.39% -0.03%
- Complexity 59978 60284 +306
============================================
Files 4985 5011 +26
Lines 282275 283693 +1418
Branches 40946 41117 +171
============================================
+ Hits 201603 202543 +940
- Misses 63999 64373 +374
- Partials 16673 16777 +104 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/cluster/service/ClusterApplierService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterApplierService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/service/ClusterApplierService.java
Outdated
Show resolved
Hide resolved
...test/java/org/opensearch/action/bulk/TransportBulkActionIndicesThatCannotBeCreatedTests.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/action/bulk/TransportBulkActionIngestTests.java
Outdated
Show resolved
Hide resolved
test/framework/src/main/java/org/opensearch/test/ClusterServiceUtils.java
Show resolved
Hide resolved
ac76c80
to
edc7ff8
Compare
❌ Gradle check result for ac76c80: 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? |
❌ Gradle check result for edc7ff8: 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? |
@gargharsh3134 - please add testing details. |
Let's finish this PR. So that we can pick this change as well in the performance testing. Thanks! |
❌ Gradle check result for 9e01686: 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? |
❌ Gradle check result for 3f8acdd: 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? |
server/src/main/java/org/opensearch/cluster/routing/allocation/AllocationService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/ClusterManagerMetrics.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Harsh Garg <[email protected]>
Signed-off-by: Harsh Garg <[email protected]>
❌ Gradle check result for d1fd5c6: null 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? |
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.
Re-triggering the gradle build |
@gargharsh3134 Can you check why these |
* Adds latency metrics for ClusterState Appliers and Listeners Signed-off-by: Harsh Garg <[email protected]> (cherry picked from commit a254aa9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…art of opensearch-project#12333 Signed-off-by: Harsh Garg <[email protected]>
…art of #12333 (#13926) * Retaining the old constructors for classes marked as API changed as part of #12333 --------- Signed-off-by: Harsh Garg <[email protected]> Co-authored-by: Harsh Garg <[email protected]>
…rch-project#12333) * Adds latency metrics for ClusterState Appliers and Listeners Signed-off-by: Harsh Garg <[email protected]>
…art of opensearch-project#12333 (opensearch-project#13926) * Retaining the old constructors for classes marked as API changed as part of opensearch-project#12333 --------- Signed-off-by: Harsh Garg <[email protected]> Co-authored-by: Harsh Garg <[email protected]>
…rch-project#12333) * Adds latency metrics for ClusterState Appliers and Listeners Signed-off-by: Harsh Garg <[email protected]>
…art of opensearch-project#12333 (opensearch-project#13926) * Retaining the old constructors for classes marked as API changed as part of opensearch-project#12333 --------- Signed-off-by: Harsh Garg <[email protected]> Co-authored-by: Harsh Garg <[email protected]>
…rch-project#12333) * Adds latency metrics for ClusterState Appliers and Listeners Signed-off-by: Harsh Garg <[email protected]>
…art of opensearch-project#12333 (opensearch-project#13926) * Retaining the old constructors for classes marked as API changed as part of opensearch-project#12333 --------- Signed-off-by: Harsh Garg <[email protected]> Co-authored-by: Harsh Garg <[email protected]>
…art of opensearch-project#12333 (opensearch-project#13926) * Retaining the old constructors for classes marked as API changed as part of opensearch-project#12333 --------- Signed-off-by: Harsh Garg <[email protected]> Co-authored-by: Harsh Garg <[email protected]>
Description
Publish Otel Histogram type metrics to track latencies of:
cluster.state.appliers.latency
inms
with dimensionOperation
as the invoking applier.cluster.state.listeners.latency
inms
with dimensionOperation
as the invoking listener.allocation.reroute.latency
in ms.cluster.state.new.compute.latency
inms
with dimensionOperation
as the invoking taskExecutor.cluster.state.publish.success.latency
inms
.Related Issues
Resolves #[12332]
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.