-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add support for impact_areas to health impacts #85830
Conversation
This adds an `impact_areas` section to the impacts returned by the health API. eg. the `shards_availability` indicator might be returning: ``` "impacts": [ { "severity": 1, "description":"Cannot add data to 1 index [red-index]. Searches might return incomplete results.", "impact_areas": [ "ingest","search" ] }, { "severity": 2, "description": "Searches might return slower than usual. Fewer redundant copies of the data exist on 2 indices [.ds-logslogslogs-2022.04.12-000001, my-index-000001].", "impact_areas": [ "search" ] } ] ```
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @andreidan, I've created a changelog YAML for you. |
@@ -258,7 +259,7 @@ public List<HealthIndicatorImpact> getImpacts() { | |||
indicesWithUnavailableReplicasOnly.size() == 1 ? "index" : "indices", | |||
getTruncatedIndicesString(indicesWithUnavailableReplicasOnly, clusterMetadata) | |||
); | |||
impacts.add(new HealthIndicatorImpact(3, impactDescription)); |
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.
Was the priority an intentional change? The description of #84773 has unassigned replicas as a 3.
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.
Yes. The description was not updated to reflect that we ended up having only 2 impacts.
@@ -241,7 +242,7 @@ public List<HealthIndicatorImpact> getImpacts() { | |||
primaries.indicesWithUnavailableShards.size() == 1 ? "index" : "indices", | |||
getTruncatedIndicesString(primaries.indicesWithUnavailableShards, clusterMetadata) | |||
); | |||
impacts.add(new HealthIndicatorImpact(1, impactDescription)); | |||
impacts.add(new HealthIndicatorImpact(1, impactDescription, List.of(ImpactArea.INGEST, ImpactArea.SEARCH))); |
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.
I'm not sure what the use case for the impact areas is, but do "ingest" and "search" capture the impact areas of a missing primary? Should there be one like "cluster instability" or "data loss"? Calling missing data a search problem might not alert users enough.
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.
We'll iterate on this as we go along (and keep track with the UI development). For now I think this would suffice (and we need to keep the language high level as it's impacts related)
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
…n/elasticsearch into datastream-reuse-pipeline-source * 'datastream-reuse-pipeline-source' of github.com:weizijun/elasticsearch: (28 commits) Add JDK 19 to Java testing matrix [ML] add nlp config update serialization tests (elastic#85867) [ML] A text categorization aggregation that works like ML categorization (elastic#80867) [ML] Fix serialisation of text embedding updates (elastic#85863) TSDB: fix wrong initial value of tsidOrd in TimeSeriesIndexSearcher (elastic#85713) Enforce external id uniqueness during DesiredNode construction (elastic#84227) Fix Intellij integration (elastic#85866) Upgrade Azure SDK to version 12.14.4 (elastic#83884) [discovery-gce] Fix initialisation of transport in FIPS mode (elastic#85817) Remove unnecessary docs/changelog/85534.yaml Prevent ThreadContext header leak when sending response (elastic#68649) Add support for impact_areas to health impacts (elastic#85830) Reduce port range re-use in tests (elastic#85777) Fix TranslogTests#testStats (elastic#85828) Remove hppc from cat allocation api (elastic#85842) Fix BuildTests serialization (elastic#85827) Use urgent priority for node shutdown cluster state update (elastic#85838) Remove Task classes from HLRC (elastic#85835) Remove unused migration classes (elastic#85834) Remove uses of Charset name parsing (elastic#85795) ...
This adds an
impact_areas
section to the impacts returned by thehealth API.
eg. the
shards_availability
indicator might be returning:Resolves #85829