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

[7.x] Add ingest info to Cluster Stats (#48485) #48661

Merged
merged 6 commits into from
Oct 31, 2019
Merged

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Oct 29, 2019

back-port of #48485.

with an additional fix commit:

The introduction of processor types into IngestStats had a bug.
It was set to null and set as the key to the map. This would
throw a NPE. This commit resolves this by setting all the processor
types from previous versions that are not serializing it out to
_NOT_AVAILABLE.

talevy and others added 2 commits October 29, 2019 14:34
This commit enhances the ClusterStatsNodes response to include global
processor usage stats on a per-processor basis.

example output:

```
...
    "processor_stats": {
      "gsub": {
        "count": 0,
        "failed": 0
        "current": 0
        "time_in_millis": 0
      },
      "script": {
        "count": 0,
        "failed": 0
        "current": 0,
        "time_in_millis": 0
      }
    }
...
```

The purpose for this enhancement is to make it easier to collect stats on how specific processors are being used across the cluster beyond the current per-node usage statistics that currently exist in node stats.

Closes elastic#46146.
The introduction of processor types into IngestStats had a bug.
It was set to `null` and set as the key to the map. This would
throw a NPE. This commit resolves this by setting all the processor
types from previous versions that are not serializing it out to
`_NOT_AVAILABLE`.
@talevy talevy requested a review from martijnvg October 29, 2019 22:49
@talevy
Copy link
Contributor Author

talevy commented Oct 29, 2019

hey @martijnvg, I asked for a review for this backport because of the second commit. I missed this in the original PR. When fetching node stats from pre-7.6 nodes, the type will be null. and that is not a valid key. thanks!

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, LGTM

talevy added a commit to talevy/elasticsearch that referenced this pull request Oct 31, 2019
after backporting elastic#48485 in elastic#48661, version guards in master can
be updated from 8.0 to 7.6 for IngestStats serialization guards
talevy added a commit to talevy/elasticsearch that referenced this pull request Oct 31, 2019
this disables bwc tests for changes made in elastic#48485,
that are being backported in elastic#48661.

This will be reverted once elastic#48768 is merged.
@talevy talevy mentioned this pull request Oct 31, 2019
talevy added a commit that referenced this pull request Oct 31, 2019
this disables bwc tests for changes made in #48485,
that are being backported in #48661.

This will be reverted once #48768 is merged.
@talevy talevy merged commit 4be5440 into elastic:7.x Oct 31, 2019
@talevy talevy deleted the 7x-523cb23 branch October 31, 2019 21:36
talevy added a commit that referenced this pull request Oct 31, 2019
)

* update IngestStats version guards to 7.6

after backporting #48485 in #48661, version guards in master can
be updated from 8.0 to 7.6 for IngestStats serialization guards

* forward port bwc tests in ingeststats

* fix null ingeststats when reading the stream

* re-enable bwc tests
debadair pushed a commit to debadair/elasticsearch that referenced this pull request Nov 13, 2019
this disables bwc tests for changes made in elastic#48485,
that are being backported in elastic#48661.

This will be reverted once elastic#48768 is merged.
debadair pushed a commit to debadair/elasticsearch that referenced this pull request Nov 13, 2019
…stic#48768)

* update IngestStats version guards to 7.6

after backporting elastic#48485 in elastic#48661, version guards in master can
be updated from 8.0 to 7.6 for IngestStats serialization guards

* forward port bwc tests in ingeststats

* fix null ingeststats when reading the stream

* re-enable bwc tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants