Update shard settings on all index templates

(dboss101) #1


Assuming I have a lot of index templates and I want to update the same setting on all of them (change the number of primary or replica shards for example) is there a way to update all of the templates using a simple call to api?

the only way I know for the template update is to get the current template, change what I want and then PUT the updated template with the same name so it will override.

is there a better way?

many thanks!

(Daniel Mitterdorfer) #2


it depends how you have specified your templates but it is possible that multiple index templates match an index. This means you could define a "base template" that matches all indices that you are interested in and then more specific templates that only match certain indices.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.