Hi all,
I have ELK stack that installed on one server. And my elastic health is yellow.
From many post that i saw, i need to make a new elastic to be a new node, so the shard can be allocated which i had problem to found the solution as how to connect two node, and how to allocated the shard.
If i want to make the elastic stand alone, can we make the health status green? What i had learnt that just declare the elastic shard into 0. is it true? and may i know how?
Any help would be greatly appreciated. Thanks in advanced
When you create new node you need to define your cluster name in elasticserach.yml file. Your node will join the cluster automatically to the cluster. Port 9200 and 9300 should be open at your all elasticsearch node.
Yes...You need to set replica value to 0 (zero) for your indexes.
i already did what you said, defining transport.tcp.port and to make the two nodes communicating each other i also need to edit zen.ping (correct me if im wrong) but in my cluster i only see one node.
is this the correct one to define the shard (i added it at elasticsearch.yml)? because my elastic got error after i restart it. and if i only had 2 node, is it possible to have 5 shard? or should i had 5 node to had 5 shard?
This feature support only up ES2.0. In ES>=5.0 you can't use it. If you do it your service will be not start.
Yes, in 2 node cluster also you can have 5 shards. But it will be too large. You should go with 3 shards and use 3 node for cluster to avoid split brain problem. You need to make changes in template to set the value of shards and replica.
You can refer below link to understand what is split brain problem:
i have problem how to configure the the shard. should i changed it via Dev Tools?
and what kind of code should i execute, only for defining the shard? i'm not good at it.
And i already get the point for all the solution you gave above.
Thanks
@Sandy, You can't set shards value to zero. You need at least one shard. You can set replica to zero. If you are using only for testing and learning purpose you can set replica value to zero. But in production you should use 3 node with replica 1.
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.