Where can I actually set index.allocation.max_retries

(Scott Preddy) #1

I cannot find a way to set the property cluster wide.

The API only allows in on an index, I want to set it for every index and every index created after that.

(George) #2

It's an index setting so I'm pretty sure you can't set it at a cluster level.

I think the only way you'll be able to do this for all indices going forward is to define an index template that matches all index name patterns, and specify the setting in there.

Something like this:

PUT _template/my_default_template
{
  "index_patterns": ["*"],
  "order": 0,
  "settings": {
    "allocation.max_retries": 1
  }
}

Hope this helps.