-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[FLEET] Increase asset size limit for installing ML model packages #115890
[FLEET] Increase asset size limit for installing ML model packages #115890
Conversation
// could be anything, picked this from https://github.com/elastic/elastic-agent-client/issues/17 | ||
const MAX_ES_ASSET_BYTES = 4 * 1024 * 1024; | ||
// Updated to accomodate larger package size in some ML model packages | ||
const ML_MAX_ES_ASSET_BYTES = 50 * 1024 * 1024; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could we use a ONE_BYTE constant to make this more clear:
// could be anything, picked this from https://github.com/elastic/elastic-agent-client/issues/17 | |
const MAX_ES_ASSET_BYTES = 4 * 1024 * 1024; | |
// Updated to accomodate larger package size in some ML model packages | |
const ML_MAX_ES_ASSET_BYTES = 50 * 1024 * 1024; | |
const ONE_BYTE = 1024 * 1024; | |
// could be anything, picked this from https://github.com/elastic/elastic-agent-client/issues/17 | |
const MAX_ES_ASSET_BYTES = 4 * ONE_BYTE; | |
// Updated to accommodate larger package size in some ML model packages | |
const ML_MAX_ES_ASSET_BYTES = 50 * ONE_BYTE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look! 😄 Updated in 2706fd0
7c8e11a
to
d4d56ad
Compare
Pinging @elastic/fleet (Team:Fleet) |
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once CI is green 🚀
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
…lastic#115890) * update size limit for assets to 50mb * use different size limit for ml model * add byte constant for clarity
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Increases asset size limit for ML model packages.
This is a potentially temporary change to accommodate DGA model (which is about 45mb) installation - the 4mb limit is kept for all other asset types as per elastic/elastic-agent-client#17
This could be improved on in the future if necessary by making the limit an option to be passed in or other options discussed in the above issue.
Checklist
Delete any items that are not applicable to this PR.
For maintainers