Skip to content

[9.4] chore: lazy-load server plugin modules (security-solution) (#266619)#267701

Merged
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-266619
May 5, 2026
Merged

[9.4] chore: lazy-load server plugin modules (security-solution) (#266619)#267701
kibanamachine merged 1 commit intoelastic:9.4from
kibanamachine:backport/9.4/pr-266619

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…66619)

## Summary

Lazy-load server plugin implementations via `await import('./plugin')`
(and related entrypoint adjustments) from `server/index.ts`, consistent
with elastic#170856.

The migration in elastic#170856 reduced **startup time by ~4 seconds** in
measured scenarios. **Memory savings were not quantified but are
expected.**

## CODEOWNERS

- `indices_metadata` → @elastic/security-solution

## Follow-up

- elastic#171080 — add an ESLint rule
so new plugins follow this pattern.

---

**Disclaimer:** This PR was prepared with AI assistance (Cursor /
Claude); please review thoroughly.

(cherry picked from commit 0834546)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label May 5, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) May 5, 2026 11:22
@kibanamachine
Copy link
Copy Markdown
Contributor Author

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @afharo

@kibanamachine kibanamachine merged commit a60378a into elastic:9.4 May 5, 2026
28 checks passed
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