Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?
Once an index is created, the number of primary shards cannot be changed.
You can run the following command in Kibana to change the number of replicas:
PUT /indexname/_settings
{
"number_of_replicas":1 //Number of replicas
}
![](https://support.huaweicloud.com/eu/css_faq/public_sys-resources/note_3.0-en-us.png)
index specifies the index name. Set this parameter based on site requirements.
Resource Usage and Change FAQs
- How Do I Clear Expired Data to Release Storage Space?
- How Do I Configure a Two-Replica CSS Cluster?
- How Do I Delete Index Resources?
- Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more