forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Decouple ML template versioning from product version
The ML index templates used to be versioned using the product version. This won't work in serverless, so needs to be changed. Most plugins have a separate version constant for their index templates that started at 1 and is incremented manually when any template changes. For ML, we've got used to _not_ having to worry about index template versions, only mappings versions. To try to continue this approach as far as possible, the new strategy for ML index template versions is: - Start with 10000000. This is because 8.11.0's ID is 8110099, and whatever new scheme we use must generate numbers bigger than this. - Add on the mappings version constants for all index mappings for which we use index templates. This means that incrementing the mappings version is still sufficient to cause the templates to be reinstalled. It's only necessary to increment the base template version if something changes in a template that's _not_ in the mappings, such as priority. This should be very rare. So the risk of forgetting to update the template versions when updating mappings is removed.
- Loading branch information
1 parent
0a91c24
commit a589f00
Showing
4 changed files
with
35 additions
and
13 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