[Health API] Abstract data tier diagnoses as node roles (#102466)

We generalise the code that is diagnosing the shard availability when it comes to data tier issues. We make it more extensible, so in serverless we can introduce new roles.

For this reason, we consider a tier as a more specific kind of a role. Then we expose some methods and some diagnosis definitions in the ShardsAvailabilityHealthIndicatorService so they can be extended.
This commit is contained in:
Mary Gouseti 2023-11-22 17:20:10 +02:00 committed by GitHub
parent 5f4fb503ff
commit 9e3d0dbaf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 133 additions and 89 deletions

View file

@ -422,5 +422,9 @@ module org.elasticsearch.server {
org.elasticsearch.index.codec.bloomfilter.ES87BloomFilterPostingsFormat;
provides org.apache.lucene.codecs.DocValuesFormat with ES87TSDBDocValuesFormat;
exports org.elasticsearch.cluster.routing.allocation.shards to org.elasticsearch.shardhealth, org.elasticsearch.serverless.shardhealth;
exports org.elasticsearch.cluster.routing.allocation.shards
to
org.elasticsearch.shardhealth,
org.elasticsearch.serverless.shardhealth,
org.elasticsearch.serverless.apifiltering;
}