Create index pattern page is slow if cluster is busy #24152
Labels
Feature:Kibana Management
Feature label for Data Views, Advanced Setting, Saved Object management pages
performance
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version: 6.4
Elasticsearch version: 6.4
When creating a new index pattern and the Elasticsearch cluster is busy and/or overloaded with too many shards, the query that is used to populate the list of indices can take a long time.
Currently the query looks like:
On a cluster with several thousands of shards this can become expensive and slow.
I was wondering why we aren't using something cheaper like
_cat/indices
, but @pickypg already enlightened me that this would requirecluster monitor
privileges, which a normal Kibana user might not have. Running the agg also ensures that only indices are listed that the user has read access to, which might not be the case on the_cat
API call.From my discussion with @pickypg , we should at least think about setting shard_size on this request.
But I'd like to start a general discussion if there are better ways to get that list of indices the user has read access to.
The text was updated successfully, but these errors were encountered: