Failed to Modify the Elasticsearch Cluster Specifications
Symptom
I failed to modify the cluster specifications and an error message is displayed on the console.
Possible Causes
The current index replica count is 0, and the backend has intercepted the specification change request. You need to set the replica count first before performing the specification change operation. Otherwise, there is a risk of shard loss.
Solution
PUT /index/_settings
{
"number_of_replicas" : 1 //Number of replicas
}