We have implemented a standalone ELK stack (A cluster with one node) for Production.
I understand that you assign 2 or more replicas in multiple nodes, which in our case is not applicable. When we go to the monitoring dashboard (from Kibana) it says that our Elasticsearch health is yellow and based from the articles I've read so far - it is due to unassigned replicas. Is there a way we could temporarily disable it just to eliminate the 'warning' status?
Each index has a setting, number_of_replicas, which controls the number of replicas. If you set this to zero then Elasticsearch will not try and allocate any replicas.
Yes, the number of replicas can be set to zero using the following -
curl -X PUT "<>:9200/<>/_settings" -H 'Cont4nt-Type: application/json' -d'
{
"number_of_replicas": 0
}
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.