Make noop template updates be cluster state noops#57851
Make noop template updates be cluster state noops#57851dakrone merged 2 commits intoelastic:masterfrom
Conversation
When updating an existing component or composable template that is identical to the existing template, we now skip doing a cluster state update. Resolves elastic#57662
|
Pinging @elastic/es-core-features (:Core/Features/Indices APIs) |
andreidan
left a comment
There was a problem hiding this comment.
LGTM nice optimisation
When updating an existing component or composable template that is identical to the existing template, we now skip doing a cluster state update. Resolves elastic#57662
|
Maybe we should backport this to 7.8 given the relation to SDH cases. |
Backports the following commits to 7.8:
Make noop template updates be cluster state noops (elastic#57851)
|
It's our understanding this will help out our problem, but Elastic Cloud support seems to think it won't. If our filebeat agents are all set to automatically publish the template, won't this significantly reduce the cluster workload since it won't be trying to update the cluster state after each agent attempts to push a template that isn't changing? |
|
@jhughes-mc it will help with the workload, however, this work only applies to composable and component templates, not legacy templates, so I couldn't say for sure whether this will help you, it would depend on which templates were being used. |
When a legacy template does not change, there is no need to create and publish a new cluster state, rather the update should be a noop. Relates to elastic#57851 Resolves elastic#57662
…4493) When a legacy template does not change, there is no need to create and publish a new cluster state, rather the update should be a noop. Relates to elastic#57851 Resolves elastic#57662
When updating an existing component or composable template that is identical to the existing
template, we now skip doing a cluster state update.
Resolves #57662