elastic / elasticsearch

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

Analyze index disk usage API should be asynchronous #111837

Open spinscale opened 3 months ago

spinscale commented 3 months ago

Elasticsearch Version

8.15

Installed Plugins

No response

Java Version

bundled

OS Version

any

Problem Description

When running the Analyze Disk Usage API, it may be rather slow on clusters with slow disks and data at a certain size. On one of our development cluster this API needs six minutes to return data.

I think this endpoint should have an async option, otherwise it cannot be run within Kibana, as it timeouts earlier.

Steps to Reproduce

Run the API on a HDD based system with a decent amount of data.

Logs (if relevant)

No response

elasticsearchmachine commented 3 months ago

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