Skip to content

[7.x] [Fleet] Improve performance of Fleet setup (#102219)#102559

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-102219
Jun 17, 2021
Merged

[7.x] [Fleet] Improve performance of Fleet setup (#102219)#102559
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-102219

Conversation

@kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

* Remove endpoint from the default packages

* Change the default spinner for the initial load

* Export fleet endpoint package as a constant

* Use constants for special packages

* Simplify type signature of `isRequiredPackage`

* Remove unused types

* Simplify required and default package definitions

* Treat REQUIRED_PACKAGES as independent from DEFAULT_PACKAGES

We want to keep the assumption that the lists contain the same packages
only in `epm/constants.ts`

* Install all default packages, not only the required ones

* Document the purpose of each package list

* Handle auto-update for non-default packages

* Make `endpoint` non-removable

* Make endpoint package be installed by default in tests

* Rename requiredPackages to unremovablePackages

* Fix type check

* Add Endpoint to be installed by default on Fleet tests too

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jun 17, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) June 17, 2021 19:01
@kibanamachine
Copy link
Contributor Author

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 469 470 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1011 1013 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 677.8KB 678.5KB +721.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 437.6KB 438.9KB +1.2KB
Unknown metric groups

API count

id before after diff
fleet 1102 1104 +2

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @afgomez

@kibanamachine kibanamachine merged commit cb18f07 into elastic:7.x Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants