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

[BUG] Opensearch 1.1.0 ShardBulkDocs Metrics is always empty #77

Closed
pmarjou22 opened this issue Oct 28, 2021 · 3 comments
Closed

[BUG] Opensearch 1.1.0 ShardBulkDocs Metrics is always empty #77

pmarjou22 opened this issue Oct 28, 2021 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest Global event that encourages people to contribute to open-source.

Comments

@pmarjou22
Copy link

pmarjou22 commented Oct 28, 2021

What is the bug?
ShardBulkDocs Metrics is always empty when calling performance Analyzer API. Other metrics are working.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. docker compose enclosed
    docker-compose.txt

  2. Follow step to activate performance analyzer : https://opensearch.org/docs/latest/opensearch/install/docker/#optional-set-up-performance-analyzer

  3. Create test index and POST documents in this index PUT test (see enclosed)
    postdata.txt

  4. while pushing documents, call from your browser : http://localhost:9600/_plugins/_performanceanalyzer/metrics?metrics=ShardBulkDocs,ShardEvents&agg=sum,sum
    you 'll get only ShardEvents numbers and no data on ShardBulkDocs

    {"CkXsbxtMTDisNx2ahHqrIw": {"timestamp": 1635425175000, "data": {"fields":[{"name":"ShardBulkDocs","type":"DOUBLE"},{"name":"ShardEvents","type":"DOUBLE"}],"records":[[0.0,27.0]]}}}

What is the expected behavior?
On previous Open Distro 1.13.1 this call was working

What is your host/environment?

  • Opensearch 1.1.0 Docker
@pmarjou22 pmarjou22 added bug Something isn't working untriaged labels Oct 28, 2021
@pmarjou22
Copy link
Author

I investigated and found out that there are no more metrics from operation : "shardbulk" available from the API

@pmarjou22
Copy link
Author

we have upgraded to 1.2.0, the bug is still here

@kkhatua kkhatua added good first issue Good for newcomers hacktoberfest Global event that encourages people to contribute to open-source. and removed untriaged labels Oct 27, 2022
@systemosyn
Copy link

systemosyn commented Nov 10, 2022

I face a similar issue somehow with have an opensearch cluster of two nodes, (1 hot and 1 warm), and the shardbulkdocs that we received were always equals to 0, receiving only the shardfetch and sharquery operation (there was no shardbulk operation). when I look into the eventLog files. I see an issue which is, only the shabulk started event are written, i was not able to see a single finished event of a shardbulk operation:

1667494070000.txt
1667494060000.txt
1667494065000.txt

As an ugly quick fix I manage to patch my rca agent, by removing the WHERE clause that filter events when they are not finished. I did it in org.opensearch.performanceanalyzer.reader.ShardRequestMetricsSnapshot.fetchLatency() from performance-analyzer-rca replacing lines 177 to 182 by this:

image

But this does not solve the root cause at all.

@rguo-aws @jotok @sruti1312 @kaushalmahi12 , Do you have any suggestion to help me to investigate this issue please? Don't hesitate if you need more information.

Thank you very much for your help.
Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest Global event that encourages people to contribute to open-source.
Projects
None yet
Development

No branches or pull requests

4 participants