We’re using Elastic and Kibana 6.1.0.
I have a simple Kibana dashboard with 2 visualizations - a coordinate map and a stacked bar graph.
The map take about 4 secs to load. If I remove the bar graph from the dashboard the map loads instantly (<1sec). If I filter the data to a smaller set, the map loads faster. If I add additional visualizations to the dashboard, loading of the map gets progressively slower.
I have checked the response times of the ES queries and they are fast (15-50mS), so it looks like it's something internal to Kibana.
(Attached is the network trace showing the map tile loading times when I have the bar graph included on the dashboard)
Here is the ES response - it took just 39ms:
{"responses":[{"took":39,"timed_out":false,"_shards":{"total":15,"successful":15,"skipped":0,"failed":0},"hits":{"total":16945,"max_score":0.0,"hits":},"aggregations":{"filter_agg":{"doc_count":449,"2":{"buckets":[{"key":"r3gx22","doc_count":219,"3":{"location":{"lat":-33.88062902726233,"lon":151.1886139959097},"count":219}},{"key":"r3grm5","doc_count":42,"3":{"location":{"lat":-33.86477700434625,"lon":151.0441299341619},"count":42}},{"key":"r3grmc","doc_count":35,"3":{"location":{"lat":-33.87268503662199,"lon":151.0835239570588},"count":35}},
<...snip...>
,"status":200}]}
If I add a filter to the data, the map tiles load pretty much instantly (less than 1 sec):
(Attached is the network trace showing the map tile loading times with filter added. )
The ES response:
{"responses":[{"took":40,"timed_out":false,"_shards":{"total":15,"successful":15,"skipped":0,"failed":0},"hits":{"total":10407,"max_score":0.0,"hits":},"aggregations":{"filter_agg":{"doc_count":40,"2":{"buckets":[{"key":"r3gqqk","doc_count":8,"3":{"location":{"lat":-34.03450103010982,"lon":151.10156893730164},"count":8}},{"key":"r3gqz7","doc_count":6,"3":{"location":{"lat":-33.948447005823255,"lon":151.1391789559275},"count":6}},{"key":"r6584z","doc_count":4,"3":{"location":{"lat":-33.70954901911318,"lon":151.29493097774684},"count":4}},{"key":"r3gx22","doc_count":4,"3":{"location":{"lat":-33.88062902726233,"lon":151.1886139959097},"count":4}},{"key":"r3gpxn","doc_count":3,"3":{"location":{"lat":-33.799500041641295,"lon":150.77999998815358},"count":3}},
<... snip ...>
,"status":200}]}
It appears that loading of the tiles is somehow related to either the amount of data or visualizations in the dashboard. As mentioned above, I can’t see any issue with the ES queries (they are fast!), the problem just manifests itself in the loading of the map tiles. To me, it looks like it's something internal.
The issue is compounded when more visualizations are added and can take >20 seconds, rendering the dashboard almost unusable.