Adding replica settings not working

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 -
http://www.elasticsearch.org/guide/reference/index-modules/allocation/

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

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.

On Sat, Jun 1, 2013 at 6:19 PM, Ban Mido banmidobeyondtime@gmail.com
wrote:

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

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.