-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default search query at "Discover" view is very slow #32328
Comments
Trying to optimize Setting timezone ( |
Pinging @elastic/kibana-app |
I'll close this as a duplicate of #18853. That issue outlines a lot of the reasons and what we can do and what we can't do. Elasticsearch 6.4 actually has performance improvements when you're looking into date ranges not crossing any Daylight Saving Time, so upgrading to 6.4+ should improve the situation. |
Can you please point me to some other issues/info regarding what we can do (except for upgrading to 6.4+ and switching to non-DST timezone)? Thank you. |
Unfortunately the answer to this is "nothing" (as kind of stated in the other issue). Searching data in time zones using daylight saving times, will be significantly slower (see also elastic/elasticsearch#28727). So without the optimization added in 6.4, the only thing you can do is using a timezone, that has no daylight saving time, and such not having those performance penalties. So the two options you pointed out are the only ones that will help to get rid of that issue. |
Hi @timroes, We're also building an Elasticsearch cluster with millions of documents (per index). We're encountering the exact same issue as @pavdmyt, meaning that the discover tab loads awfully long (+-24s in Elasticsearch 7.3). Is there any way to optimize the discover tab? As soon as we filter certain values out, it loads faster. Thanks in advance! |
Kibana version:
Version: 6.3.2
Elasticsearch version:
6.3.2
Server OS version:
Running kibana in docker-image
FROM alpine:3.5
Browser version:
Firefox 65.0 (64-bit) [users with other browsers experience the same issue too]
Browser OS version:
macOS Mojave 10.14.1
Original install method (e.g. download page, yum, from source, etc.):
Both Kibana and Elasticsearch are running inside kubernetes cluster (v1.12.2)
Describe the bug:
Using Kibana to search through log data stored in production Elasticsearch cluster. Default search from "Discover" view takes too long to provide the results. This is caused by the fact that generated search query contains
date_histogram
aggregation which slows the search multiple times.Making default "Last 15 minutes" search at Discover view results in
Query duration: 12623ms
. 4h search takes approx 120s and makes whole cluster unresponsive. Searches for 8h time ranges and more fail with "502 bad gateway" error message.Running default search query generated by kibana w\o
date_histogram
aggregation section makes all above-mentioned searches almost instant.Steps to reproduce:
"profile": true
):The result is as follows:
date_histogram
section:The result is as follows:
116.8s in first case vs 2.5s in second.
Expected behavior:
The default search in Discovery view shouldn't be this slow and affect whole Elasticsearch cluster performance. There should be a way to customize the default search query to avoid building
date_histogram
.The text was updated successfully, but these errors were encountered: