ElasticSearch 7.10.1 Troubleshooting
Having problems with yellow and unassigned shards? Then do the below. Reference https://medium.com/@manis.eren/elasticsearch-issue-unassigned-shards-because-of-max-retry-24421c1d7f9c
STEP 1
curl -X PUT "172.31.31.108:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "none"
}
}
'
STEP 2
curl -X POST "172.31.31.108:9200/_cluster/reroute?retry_failed=true"
STEP 3
curl -X PUT "172.31.31.108:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "all"
}
}
'
STEP 4
curl -XGET '172.31.31.108:9200/_cat/health?v&pretty'
Recent Comments