How to recursively upload a folder to S3 using AWS CLI?
July 3, 2023Stream Processing vs. Message Processing: What’s the Difference?
July 17, 2023By default shards should be automatically allocated to nodes. But in extreme cases where you had to add or remove nodes to the cluster or after several results your server might be in a non green status and you could have shards that are not allocated.
Solution
cluster.routing.allocation.enable is a cluster level property and it is a dynamic property. Set this to all at the cluster and monitor the cluster to see whether the error goes away.
In most cases below should fix the issue.
curl -XPUT 'localhost:9200/_cluster/settings' -d '{ "transient" : { "cluster.routing.allocation.enable" : "all" } }'