Currently running yarn kbn bootstrap requires about half an hour on a modern computer. A lot of time is spent in the yarn linking process, which involves Kibana dev/testing dependencies like "storybook", etc.
This reflects also in how excruciatingly slow is the development cycle:
yarn start
.... many minutes... (boot, optimisation of a ton of deps...)
interact with Kibana in the browser
modify plugin code
server crashes... back to 1
Is there a way to speed this up? Like, to avoid that yarn links any Kibana testing related dependencies? We only need to load the minimum bare bone Kibana, for the quickest bootstrap and development cycle.
Yes, running Kibana in development is slow, but it should not be as slow as you're experiencing. What machine are you using for development? What configuration?
I wonder if something is wrong with your development environment.
Hi @mattkime, thanks for taking the time to answer this.
I have the latest dell xps 13 2-in-1 7390 with the Intel i7-1065G7 quad core processor.
In the meantime, I was able to greatly improve the situation moving from Windows 10 to Ubuntu 19.10.
I have the feeling that with Windows, processes that access a very large number of files becomes really slow. Any other development process that did not involve node_modules was fast.
@Liza_Katz yeah right? I even took care of disabling all malware scanning witchcraft Microsoft enabled by default (I think it's called Defender). And it's super slow from WSL (version 1), and even native Windows CLI (calling yarn from Powershell).
One more thing I noticed, was that even copying the Kibana project to another directory was slow (no change if I used the linux command cp -r kibana kibana_new from WSL (version1) or the same operation using the native windows file manager GUI).
The thing I did not try is to use WSL2 which uses actual virtualization. Will test it next week and report.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.