forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Memory based trained model task allocation (elastic#75378)
This commit adds memory tracking to trained model tasks. When a trained model deployment is started, we now choose a node that has enough free memory to accommodate the native process that loads the model. The memory usage is calculated as twice the model size plus some overhead. The reason we require twice the model size is that during the loading of the model we store the model once and then another time for the inflated object that represents the model. After that, the process does return the memory needed for storing the model back to the OS. However, if we lowered the memory usage after the loading phase it would cause flopping with the autoscaling service. For this reason, and as an initial implementation, we require twice the model size. In the future, we can avoid this waste by writing the model to disk and inflating it from there instead.
- Loading branch information
1 parent
5bb47e1
commit 63894ca
Showing
12 changed files
with
295 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.