I have a similar question to this post.
I am running a single node cluster for development and I do not want indexes to be trying to allocate replicas. I have templates for my indexes, but the watcher history indexes allocate replica nodes. When I try to set the "index.number_of_replicas" setting in elasticsearch.yml, it is an invalid property.
The goal here is to keep my cluster status green. Is there another way to achieve this?