I am trying to add replica to an index.
But its not working.
As a matter of fact , none of the shard moving , adding or allocating to a
node operations are not working.
I think you ended up with a confusing state of allocation. remove all allocation level settings (like include or exclude), unless you really need it (don't see why based on the description, seem to be driven by confusion on how to add a replica).
regarding replicas, you simple using th update setting API and change the number of replicas to the number of replicas you want the index to have.
Hi ,
ES version - 0.90.1
Cluster - 5 nodes
Shards - 4
I am trying to add replica to an index.
But its not working.
As a matter of fact , none of the shard moving , adding or allocating to a
node operations are not working.
I did a shard allocation execution using this - Elasticsearch Platform — Find real-time answers at scale | Elastic
After this none of the below operation has any effect.
curl -XPUT 'localhost:9200/index/_settings' -d '
{
"index" : {
"routing.allocation.total_shards_per_node" : 2
}
}'
curl -XPUT 'localhost:9200/index/_settings' -d '
{
"index" : {
"number_of_replicas" : 1
}
}
'
(Here replicas are shown as unassigned but it never gets assigned)
curl -XPUT localhost:9200/index/_settings -d '{
"index.routing.allocation.include._ip" : "192.168.1.23"
}'
( I have tried all include/exclude/require actions here)
Thanks
Vineeth
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.