Am working on AWS cluster re-assigning the replica shard in an AWS ES cluster of node 1. Where i want both primary and replica shards to be reside. But when a run the below command am getting an error
curl -XPOST 'http://AWS-CLuster-name.com/_cluster/allocation/reroute' -d '{ "commands": [{"allocate_replica":{"index": ".kibana", "shard": 0, node: "nodename" "primary": false }'
When run the above command am getting below error.
{"Message":"Your request: '/_cluster/allocation/reroute' is not allowed."}
Does this mean manual shard allocation is not allowed in AWS? Could anyone please clarify.
Thanks
Correct, AWS does not allow you to control shard allocation directly, at least not in the usual way.
I'm hoping it can be done in some other AWS-specific way, as I've got a yellow cluster that I'd really rather be green. :(
[Followup: it seems the Elasticsearch domain eventually realizes it can fix this itself. In our case, because we were getting short on free space, replicas were being left unassigned. We freed up space, and maybe 30 minutes later the shards started replicating all on their own.]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With