ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 528 forks source link

Performance with large number of indexes #508

Open sdesse opened 4 years ago

sdesse commented 4 years ago

General information

Issue Description

We have 11k+ indexes and loading the elasticHQ page takes a lot of time. Looking at the logs it seems that it is because it retreives the stats for all the indexes when loading the page.

Would there be a way to not load the indexes, filter the ones that are loaded or to optimize this behavior?

Be Patient

Thanks again!

clintonelston777 commented 4 years ago

3.4K indices here and after loading about 30 seconds later docker crash (looks like jvm) and nothing works after that. Can you stop loading everything on the initial screen maybe?

dekimsey commented 3 years ago

Agreed, there are a few places where it doesn't work well. Another is the query page which tries to load all the indices into the drop-down.

I think loading the data is fine, but maybe that can happen in the background without affecting the UI (if the data is cached a minute or three I don't think that's huge loss).