-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
7.7.0 general performance problems, blocking IE11 #62238
Comments
Pinging @elastic/kibana-operations (Team:Operations) |
A couple of statistics about the change from the latest 7.6.2 to this 7.7.0 default distribution Windows zip files;
A lot of the bundle names don't match up between releases. But here's some data on the ones that do;
|
This was a trade off that we decided to take because we really need to get rid of the optimizer in production, and our design to accomplish this included some code duplication that we were expecting. We expected that this might cause initial page load times to be slower, but it also meant that the assets would be more stable, Kibana would be more reliable, run with less memory required server side, and most importantly, be able to remove the loading indicator between apps. In order to get there we needed to increase the side of each bundle. What we didn't know, or expect, was that the size of the bundles would grow so large that IE would stop working. This has surprised us and lead to us pulling some emergency levers to reduce the overall size of the code (#62364) and a few that will reduce the size of the code initially loaded on a page (#62344, #62363, #62403, #62408, #62434, #62487, #62493). I'm also working on reporting improvements so that in the 7.8 timeframe we will be able to analyze how big bundles are, and how changes we are making impacts the size of those bundles. Shortly after that's done we want to tie that into the reporting done on PRs so that PR authors will be confronted with the impact their PR has on the bundle sizes early and we won't be surprised by this down the road. |
Right now we focus on an assumption that memory usage is the bottleneck for IE. |
As long as IE11 is a targeted browser, shouldn't we have a few windows CI nodes with IE11 to at least run some smoke tests on that environment? It seems like we currently have no way to have any idea of the performances / issues of running kibana on that specific browser, which cause the actual issues to be detected extremely late in our testing process, if not by end user themselves. |
Action items from this mornings sync:
|
I am tracking the changes of Javascript assets which are loaded when accessing the home page: https://docs.google.com/spreadsheets/d/16mB-yZAHoMBYgExXC5gdSjNVROrNCs0z6Dt7MEd8ilA/edit#gid=0 |
My quest to dedupe a lot of code by sharing the data plugin and a few others has led to many problems, and we're still unable to use IE reliably with the changes in place, so I'm going to start looking into reverting the new platform build system from 7.7. This change would go directly into 7.7 and not master, and would hopefully not cause many (if any) changes outside of the operations specific code, but will continue building everything in the legacy optimizer for now. This might not work, but it's feeling more and more like an option we need to take more seriously. |
On the latest 7.7.0 snapshot from today COMMIT 797be9e on IE11. I tried to click through everything but didn't have APM data, SIEM data, etc. This is just a list of things I couldn't get to work. Once I hit one of these features and it causes a problem I generally have to close the IE11 browser and re-open it.
|
797be9e is from two days ago and does not include the PR merged yesterday by Spencer. Can you test with the most recent CI run on the 7.7 branch? You can get the tar.gz from the Google Cloud Storage Upload Report: |
I actually did test builds that @spalger provided and they looked much better. Canvas caused IE11 to restart once, but then loaded. And all the other things I knew were broke in IE11 worked. But I'll pull those latest ones and give another go. But, if you have confidence and good code reviews, please don't wait on my testing to merge your fixes. I can already tell from Spalger's builds it's much better than before and we need other UI teams to be able to run their tests on either a snapshot build or new BC. |
I think this is complete now that we've made so many small adjustments to make the bundle smaller, and remove specifically large items from the build. Thanks everyone for the help, but especially @restrry @tylersmalley @mistic @joshdover and @pgayvallet Tyler is still going to look into tree-shaking, but I don't think there's any way we'll get it in during feature freeze. And Tiago might find the reason SIEM/APM bundles have grown so big, but we probably don't need to risk 7.7 any more with more changes here as IE is pretty darn usable as is. |
Kibana version: 7.7.0-snapshot
Elasticsearch version: 7.7.0-snapshot
Server OS version: Windows 10
Browser version: IE11
Browser OS version: Windows 10
Original install method (e.g. download page, yum, from source, etc.): default dist zips
Describe the bug: Changes from 7.6 to 7.7.0 (new platform build?) have caused generally worse performance for Kibana loading and switching between apps in any browser. And it's significant enough to cause IE11 to either not load some apps (such as Canvas) or to frequently quit and reload Kibana.
Steps to reproduce:
Expected behavior: Even though we add features to Kibana we should also try to improve performance.
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
This is very likely to impact Cloud deployments, and Reporting. But not confirmed yet.
The text was updated successfully, but these errors were encountered: