in /etc/elasticsearch/elasticsearch.yml on my cluster nodes
new indices are not being replicated:
summary | awk '$5 == 0'
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open logstash-2016.02.20 5 0 3536958 0 1gb 1gb
green open logstash-2016.02.21 5 0 3656177 0 1.1gb 1.1gb
green open logstash-2016.02.22 5 0 5557430 0 1.5gb 1.5gb
green open logstash-2016.02.23 5 0 4782864 0 1.1gb 1.1gb
green open logstash-2016.02.24 5 0 3079991 0 853.9mb 853.9mb
Past ones after a manual PUT of replica count as 2 are all 2 up to the 20th.
The elasticsearch cluster nodes has been rebooted several times since the
index.number_of_replicas: 2
was put into elasticsearch.yml weeks ago.
My question is why isn't elasticsearch automatically setting up replicas for the new daily indices?
Hard to say from just this as to what could be causing the issue. In the past when I've come across the same problem its been because I had tagged the index to go to a hot node, and there wasn't enough space any hot nodes to store the data. Have you set node-type on any of your nodes?
I can of course run a script to replicate logstash indexes automatically via cron daily but would like to take the other road if it is even feasible to change the logstash template.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.