elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.39k stars 24.87k forks source link

ShardCapacity Health Indicator could use dynamic or user-configurable thresholds #116697

Open adrianchen-es opened 1 week ago

adrianchen-es commented 1 week ago

Description

The _health_report API provides a yellow/red status for the shard count within a cluster for the frozen and non-frozen tiers. However, based on this, the shard count checks with the _health_report API is currently static.

This can be insufficient for large deployments that add 20-40 primary shards per hour to their clusters, requiring the users to have an alternate method to perform shard limit health checks despite the existence of an API to perform the checks.

Request

Could the check value become dynamic (percentage-based) or user-configurable via a setting?

elasticsearchmachine commented 1 week ago

Pinging @elastic/es-data-management (Team:Data Management)

mattc58 commented 3 days ago

We discussed this as a team and will probably utilize more of a user-configurable approach, rather than a dynamic setting.