Hi
- I ran into 3 shards un-assigned issue so I ran following elasticsearch command to disable the replica number from 1 to 0.
[root@syslog01 ~]# cat disable_replica.bash
curl -XPUT ‘http://syslog01.test.com:9200/_settings’ -d ‘{“index” : {“number_of_replicas” : 0}}’
[root@syslog01 ~]#
- Now my elasticsearch turned back to green(from yellow).
- This problem is that 0-1-2-3 shards are not balanced across 4 nodes. See following.
- Question 1 is why the shards are not balanced out across when replica setting is “0” ?
- Question 2 is what is the elasticsearch command to spread "0"s to other nodes ?