Creating a default template as part of deployment

Hi all,

I'm deploying a new Elasticsearch application, and I'm trying to enforce some settings (such as replica shard count) as part of deployment.

I know that I can create / update a template to set this value, but the problem is that by the time I've done this, other apps may have already started and created indexes with a different value.

What's the correct way to create templates that are in place before the first startup of elasticsearch ?


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