-
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
[core] avoid doing plugin discovery when bootstrapping the dev server #79037
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
There are already quite a few places disabling different platform functionality based on |
Yea... atm starting the ClusterManager is the last thing we are starting, as the legacy service is one of the last to start. Before we removed we legacy plugin system, the legacy plugin discovery was required to enhance the legacy config, and the legacy discovery had to run after the KP plugins discovery. kibana/src/core/server/legacy/legacy_service.ts Lines 186 to 190 in 0d09cea
Now that this is gone, we could probably improve that. Ideally for that, |
By the way, I took a stab at disabling plugin discovery via |
Closed by #79358 |
reopen as we still need to decouple dev tools and |
I feel like that deserves its own issue personally. |
When running the dev server locally, before the platform code loads up the ClusterManager it runs plugin discovery which loads all the plugin source code. This seems like it might be necessary to get the configuration validated, but shouldn't be necessary just to get the ClusterManager running. Hoping someone on the platform team would be able to take a look at ways we could avoid running plugin discovery when
env.isDevClusterMaster
is true.Skipping plugin discovery would likely allow us to disable the babel-register cache in the parent process of the dev cli or at least would make loading the parent process much faster.
The text was updated successfully, but these errors were encountered: