I have ELK setup. with elastic search version 2.3.x. ( kibana 4.4.2 and logstash=1:2.2.4-1). I wanted to know how many nodes by default it should create.
I have noticed a weird situation. When I restarted elastic search it started with 3 nodes. There are multiple folder in data path ( /var/lib/elasticsearch/0 , 1 , 2 ,3).
root@KibanaServer:/usr/share/elasticsearch# ls -ld /var/lib/elasticsearch/elasticsearch/nodes/*
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Feb 27 15:16 /var/lib/elasticsearch/elasticsearch/nodes/0
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Feb 25 15:55 /var/lib/elasticsearch/elasticsearch/nodes/1
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Feb 25 15:55 /var/lib/elasticsearch/elasticsearch/nodes/2
drwxr-xr-x 4 elasticsearch elasticsearch 4096 Feb 25 15:55 /var/lib/elasticsearch/elasticsearch/nodes/3
But when I restart it again it took only one node. I wanted to know how it is defining a number of nodes.
curl -s -XGET "http://localhost:9200/_cat/nodes?v"
host ip heap.percent ram.percent load node.role master name
192.168.56.190 192.168.56.190 17 37 0.08 d * Bonita Juarez
Because of this many shared are showing un-assigned due to lack of nodes.
Also, If there is only one node going to create then why all index are having 5primary and replicas shards of each as default setting.